Template:Post: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(tweaked include and noinclude, reorg of the template page elements)
 
(34 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{obsolete}}}|y|yes|true={{obsolete}}|}}
{| border="2" width="1000" 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}}}'', on the play.net forums.
| 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>
[[Category:Templates|{{PAGENAME}}]]</noinclude>
{{Post
|t=
|d=
|n=
|a=
|f=
|p=
|sub=
}}
</pre>

==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!''

{| class="wikitable"
| 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.
|}
{{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.