Template:label/documentation: Difference between revisions

m
No edit summary
Line 27: Line 27:
: When specified as true (e.g. {{para|nocat|1}}) then no categories will be automatically added to the page.
: When specified as true (e.g. {{para|nocat|1}}) then no categories will be automatically added to the page.


== Funky formatting ==
=== Funky formatting ===
=== Wordlinks ===
==== Wordlinks ====
Using <code>"quotation marks"</code> in a parameter will create a wordlink.  
Using <code>"quotation marks"</code> in a parameter will create a wordlink.  
  {{tempn|label|kil|intrans|with preposition "le"}}
  {{tempn|label|kil|intrans|with preposition "le"}}
: {{label|kil|intrans|with preposition "le"|nocat=1}}
: {{label|kil|intrans|with preposition "le"|nocat=1}}


=== Comma overriding ===
==== Comma overriding ====
Using <code>_</code> at the start of a parameter will override comma delimiting. Note that some words, such as <code>mostly</code>, <code>and</code>, <code>or</code> and <code>with</code>, automatically override commit delimiting.
Using <code>_</code> at the start of a parameter will override comma delimiting. Note that some words, such as <code>mostly</code>, <code>and</code>, <code>or</code> and <code>with</code>, automatically override commit delimiting.
  {{tempn|label|rad|most commonly|intrans}}
  {{tempn|label|rad|most commonly|intrans}}
Line 42: Line 42:
: {{label|rad|intrans|or|trans|nocat=1}}
: {{label|rad|intrans|or|trans|nocat=1}}


=== Slash functionality ===
==== Slash functionality ====
Using <code>/</code> will automatically override commas and spacing:
Using <code>/</code> will automatically override commas and spacing:
  {{tempn|label|rad|intrans|/|trans}}
  {{tempn|label|rad|intrans|/|trans}}
: {{label|rad|intrans|/|trans|nocat=1}}
: {{label|rad|intrans|/|trans|nocat=1}}


=== Parameter splitting ===
==== Parameter splitting ====
Using commas within a parameter can also be used to divide variables. Note that slash functionality and wordlinks can be used multiple times within a parameter, and all automatic comma overriding will still take place.
Using commas within a parameter can also be used to divide variables. Note that slash functionality and wordlinks can be used multiple times within a parameter, and all automatic comma overriding will still take place.
  {{tempn|label|rad|intrans, trans}}
  {{tempn|label|rad|intrans, trans}}