Template:Post: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added automatic includion into Category:Forum Posts)
(tweaked include and noinclude, reorg of the template page elements)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{obsolete}}}|y|yes|true={{obsolete}}|}}
{| border="2" width="100%" align="center"
{| class="wikitable" width="100%" align="center"
! align="center" | <u>{{{t|?}}}</u> · on {{{d|?}}} !! align="center" width="7%" | {{{n|?}}}
! align="center" | <u>{{{t|?}}}</u> · on {{#if:{{{d|}}}|[[posted on::{{{d}}}]]|?}} !! align="center" width="7%" | {{{n|?}}}[[page type is::post| ]]
|-
|-
| colspan=2 | {{{1|Empty Post!}}}
| colspan="2" style="text-align:left; padding: 1em;" | {{{p|Empty Post!}}}
|-
|-
| colspan=2 | This message was originally posted in ''{{{f|an unknown folder}}}'', by '''{{{a|an unknown author}}}''' on the play.net forums.{{cat|Forum Posts}}
| colspan=2 | This message was originally posted in ''{{{f|an unknown folder}}}'', by '''{{#if:{{{a|}}}|[[posted by::{{{a}}}]]|an unknown author}}''' on the play.net forums.{{#switch:{{{obsolete}}}|y|yes|true=|{{#if:{{{list|}}}|[[Category:Forum posts|{{{list}}}]]|{{cat|Forum posts}}}}{{#if:{{{c|}}}|{{#arraymaptemplate:{{{c}}}|Template:PostType|,|}}|[[missing::categorization| ]]}}{{#if:{{{sub|}}}|{{#arraymap:{{{sub}}}|,|@@@@|[[post relates to::@@@@| ]]| }}}}}}
|}<noinclude>
|}</includeonly><noinclude>
<pre>

{{Post
|t=
|d=
|n=
|a=
|f=
|p=
|sub=
}}
</pre>


==Usage Documentation==
==Usage Documentation==
This is a template for replicating play.net forum posts to retain information against their eventual purge.<br />
This is a template for replicating play.net forum posts to retain information against their eventual purge.


''Be sure to refer to the [[Elanthipedia:Manual_of_Style/Posts]] before using this template!''
{| border="1"

{| class="wikitable"
| t || Title of the post
| t || Title of the post
|-
|-
Line 22: Line 35:
| a || Author of the post (play.net account)
| a || Author of the post (play.net account)
|-
|-
| c || The type of post this is. Valid options are m (mechanics), r (game lore), e (events), l (logs), d (development), p (policy), and/or o (obsolete). Multiple types should be separated by ,s.
| &nbsp; || The first non-named variable should contain the body of the post.
|-
| p || Contains the body of the post.
|-
| sub || Subjects the post talks about. Used to automatically populate to [[Template:RefAl]].
|-
| list || If the name is odd, you can optionally add where it will be listed in [[:Category:Forum Posts]] with this variable.
|-
| obsolete || if set to yes or true, will prevent category inclusion.
|}
|}
{{cat|Templates}}</noinclude>
{{cat|Templates}}
</noinclude>

Latest revision as of 11:32, 14 April 2022

{{Post
|t=
|d=
|n=
|a=
|f=
|p=
|sub=
}}

Usage Documentation

This is a template for replicating play.net forum posts to retain information against their eventual purge.

Be sure to refer to the Elanthipedia:Manual_of_Style/Posts before using this template!

t Title of the post
d Date and time of the post
n Number of the post
f Is the forum folder where it was posted
a Author of the post (play.net account)
c The type of post this is. Valid options are m (mechanics), r (game lore), e (events), l (logs), d (development), p (policy), and/or o (obsolete). Multiple types should be separated by ,s.
p Contains the body of the post.
sub Subjects the post talks about. Used to automatically populate to Template:RefAl.
list If the name is odd, you can optionally add where it will be listed in Category:Forum Posts with this variable.
obsolete if set to yes or true, will prevent category inclusion.