Template:label/documentation: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
No edit summary
Line 9: Line 9:
==Usage==
==Usage==


  {{tempn|label|kil|intrans|with preposition "le"}}
  {{tempn|label|kil|intrans}}


Generates:
Generates:
: {{label|kil|intrans|with preposition "le"|nocat=1}}
: {{label|kil|intrans|nocat=1}}


and automatically adds the category [[:Category:Kilitic intransitive verbs]].
and automatically adds the category [[:Category:Kilitic intransitive verbs]].
Line 25: Line 25:
; {{para|nocat}}
; {{para|nocat}}
: 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 ==
=== Wordlinks ===
Using <code>"quotation marks"</code> in a parameter will create a wordlink.
{{tempn|label|kil|intrans|with preposition "le"}}
: {{label|kil|intrans|with preposition "le"|nocat=1}}
=== 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.
{{tempn|label|rad|most commonly|intrans}}
: {{label|rad|most commonly|intrans|nocat=1}}
{{tempn|label|rad|most commonly|_intrans}}
: {{label|rad|most commonly|_intrans|nocat=1}}
{{tempn|label|rad|intrans|or|trans}}
: {{label|rad|intrans|or|trans|nocat=1}}
=== Slash functionality ===
Using <code>/</code> will automatically override commas and spacing:
{{tempn|label|rad|intrans|/|trans}}
: {{label|rad|intrans|/|trans|nocat=1}}
=== 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.
{{tempn|label|rad|intrans, trans}}
: {{label|rad|intrans, trans|nocat=1}}
{{tempn|label|rad|intrans or trans}}
: {{label|rad|intrans or trans|nocat=1}}
{{tempn|label|rad|intrans/trans}}
: {{label|rad|intrans/trans|nocat=1}}
{{tempn|label|kil|intrans, with preposition "le"}}
: {{label|kil|intrans, with preposition "le"|nocat=1}}
{{tempn|label|rad|refl, with "dzist"/"dzisk"}}
: {{label|rad|refl, with "dzist"/"dzisk"|nocat=1}}