Template:ItemPost: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(extend template so that by=<username&date> and text=<text of post> are preferred variables, old syntax works, but 2nd param should be specifically delcared as 2=<text of post>)
(add syntax instructions, reflecting new usage)
Line 3: Line 3:
</td></tr><tr><td style="background-color:#e0eee0; border:1px solid #d0d0d0; padding: 0 0 .3em 2em">
</td></tr><tr><td style="background-color:#e0eee0; border:1px solid #d0d0d0; padding: 0 0 .3em 2em">
{{{text|{{{2}}}}}}
{{{text|{{{2}}}}}}
</td></tr></table><noinclude><br>
</td></tr></table><noinclude>
<br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]
<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #1188ff; padding: 1em 1em 1em 1em; background-color:#ffdddd">
<center><big>'''Syntax and usage'''</big></center>
 
This template is used to post a message (item) on the [[CW:BB|Bulletin board]], and it can also be used to post items on talk pages.
 
'''To post a message in an existing topic, such as:
<table width="100%" frame="below">
<tr><td width=95%><font style="font-size:150%">Looking for works in Quenya</font></td><td>[<font color=blue>edit</font>]</td></tr></table>
 
simply click on the blue <font color=blue>edit</font> link, go to the last posted message in the topic, start a new line, and use the '''[[Template:ItemPost]]''' in the format ('''note the <font color=red>new syntax</font>'''):
 
<tt><nowiki>{{ItemPost</nowiki><br><nowiki>|by=<your name & date></nowiki><br><nowiki>|text=<your message></nowiki><br><nowiki>}}</nowiki></tt>
 
The easiest way to [[ChoralWiki:Signatures|sign and date]] your message is to type four tildes ('''<tt><nowiki>~~~~</nowiki></tt>''') for <your name & date>.  Thus, for example, typing
 
<tt><nowiki>{{ItemPost</nowiki><br>
<nowiki>|by=~~~~</nowiki><br>
<nowiki>|text=</nowiki><br>
Here is a sample message<br>
spread<br>
over<br>
several lines.<nowiki><br></nowiki><br>
 
It even has more than one paragraph.<br>
}}</tt>
 
resulted in:
 
{{ItemPost
|by=[[User:CHGiffen|Chuck]][[User talk:CHGiffen|<sub><small>'''talk'''</small></sub>]]&nbsp;[[User:Charles H. Giffen|Giffen]][[Charles H. Giffen|<sub>'''♫'''</sub>]] 01:58, 28 July 2008 (PDT)
|text=
Here is a sample message
spread
over
several lines.<br>
 
It even has more than one paragraph.
}}
 
'''N.B.''' The old syntax for Template:ItemPost still works but is now deprecated in favor of the new syntax, which allows for nested replies using [[Template:Reply]].
</div>
<br>
</noinclude>

Revision as of 08:58, 28 July 2008

  • Posted by: unsigned (see History)

{{{2}}}



Syntax and usage

This template is used to post a message (item) on the Bulletin board, and it can also be used to post items on talk pages.

To post a message in an existing topic, such as:

Looking for works in Quenya[edit]

simply click on the blue edit link, go to the last posted message in the topic, start a new line, and use the Template:ItemPost in the format (note the new syntax):

{{ItemPost
|by=<your name & date>
|text=<your message>
}}

The easiest way to sign and date your message is to type four tildes (~~~~) for <your name & date>. Thus, for example, typing

{{ItemPost
|by=~~~~
|text=
Here is a sample message
spread
over
several lines.<br>

It even has more than one paragraph.
}}

resulted in:

Here is a sample message spread over several lines.

It even has more than one paragraph.

N.B. The old syntax for Template:ItemPost still works but is now deprecated in favor of the new syntax, which allows for nested replies using Template:Reply.