Template:Msg

From Erights

(Difference between revisions)
Jump to: navigation, search
(not working)
(avoid swallowing whitespace)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
[[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]]<noinclude>
+
[[:Category:Message {{{1}}}|{{{1}}}]][[Category:Message {{{1}}}]]<noinclude>
-
 
+
<!-- Version using #if: [[Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}]][[:Category:Message {{#if:{{{2|}}}|{{{1}}}/{{{2}}}|{{{1}}}}}|{{{1}}}]] -->
-
{{XXX|This template isn't working. Does the wiki not have #if: enabled? Review.}}
+
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:
-
{{{msg|messageVerb/messageArity}}} (shows arity)
+
* <nowiki>{{{msg|messageVerb/messageArity}}}</nowiki> (shows arity)
-
{{{msg|messageVerb|messageArity}}} (does not show arity)
+
* <nowiki>{{{msg|messageVerb|messageArity}}}</nowiki> (does not show arity) {{XXX|Not available until the wiki has #if: support}}
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>

Latest revision as of 20:02, 28 January 2011

[[:Category:Message {{{1}}}|{{{1}}}]][[Category:Message {{{1}}}]]

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

Usage:

  • {{{msg|messageVerb/messageArity}}} (shows arity)
  • {{{msg|messageVerb|messageArity}}} (does not show arity) XXX Not available until the wiki has #if: support

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

Personal tools
more tools