Template:Name: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(capitalize...)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|_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]]
<includeonly>{{#switch:{{{1|_NULL_}}}
| plural={{#invoke:HTMLParse| pluralize |html={{#var:name|{{PAGENAME}}}} }}  
| possessive={{#invoke:HTMLParse| make_possessive |html={{#var:name|{{PAGENAME}}}} }}
| capitalize={{#invoke:HTMLParse| capitalize |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.
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.



Revision as of 00:46, 5 January 2021

For use in conjuction with QBE. After defining a name variable via {{#vardefine:name|{{qud text|(name)}}}}, call this template to return the colorized name of the item/character.

This also takes one argument:

plural makes plural
possessive makes possessive