Template:Name: Difference between revisions

304 bytes added ,  15:00, 19 September 2019
supports plural and possessive as a second argument
mNo edit summary
(supports plural and possessive as a second argument)
Line 1: Line 1:
<includeonly>{{#var:name|{{PAGENAME}}}}</includeonly><noinclude>[[Category:Shorthand Templates]]
<includeonly>{{#switch:{{{2|_NULL_}}}| plural={{#invoke:HTMLParse| pluralize |html={{#var:name|{{PAGENAME}}}} }} | possessive={{#invoke:HTMLParse| make_possessive |html={{#var:name|{{PAGENAME}}}} }}|{{#var:name|{{PAGENAME}}}} }}</includeonly><noinclude>[[Category:Shorthand Templates]]
For use in conjuction with QBE. After defining a name variable via <code><nowiki>{{#vardefine:name|{{qud text|(name)}}}}</nowiki></code>, call this template to return the colorized name of the item/character.</noinclude>
For use in conjuction with QBE. After defining a name variable via <code><nowiki>{{#vardefine:name|{{qud text|(name)}}}}</nowiki></code>, call this template to return the colorized name of the item/character.
 
This also takes one argument:
 
{|class="wikitable"
! plural
| makes plural
|-
! possessive
| makes possessive
|}
</noinclude>