Template:Msg

From Erights

(Difference between revisions)
Jump to: navigation, search
(avoid swallowing whitespace)
Line 1: Line 1:
-
[[:Category:Message {{{1}}}|{{{1}}}]][[Category:Message {{{1}}}]]<noinclude>
+
[[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}}}|{{{1}}}]]<noinclude>
-
<!-- Version using #if: [[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]] -->
+
Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category.
Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category.
Usage:
Usage:
-
* <nowiki>{{{msg|messageVerb/messageArity}}}</nowiki> (shows arity)
+
{{{msg|messageVerb/messageArity}}} (shows arity)
-
* <nowiki>{{{msg|messageVerb|messageArity}}}</nowiki> (does not show arity) {{XXX|Not available until the wiki has #if: support}}
+
{{{msg|messageVerb|messageArity}}} (does not show arity)
For N-ary messages (e.g. __makeList.run), use "*" for the arity.</noinclude>
For N-ary messages (e.g. __makeList.run), use "*" for the arity.</noinclude>

Revision as of 12:21, 30 August 2009

[[Category:Message {{#if:|{{{1}}}/{{{2}}}}}]][[:Category:Message {{#if:|{{{1}}}/{{{2}}}}}|{{{1}}}]]

Use for mentions of particular messages (verb+arity). Automatically links to the category and puts it in the category.

Usage:

messageVerb/messageArity (shows arity)
messageVerb (does not show arity)

For N-ary messages (e.g. __makeList.run), use "*" for the arity.

Personal tools
more tools