Template:Name: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#var:name|{{PAGENAME}}}}</includeonly><noinclude>[[Category:Shorthand Templates]] | <includeonly>{{#switch:{{{1|_NULL_}}} | ||
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> | | 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}}}} }} | |||
| caps={{#invoke:HTMLParse| capitalize |html={{#var:name|{{PAGENAME}}}} }} | |||
| pluralcaps={{#invoke:HTMLParse| pluralize | html={{#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. | |||
This also takes one argument: | |||
{|class="wikitable" | |||
! plural | |||
| makes plural | |||
|- | |||
! possessive | |||
| makes possessive | |||
|- | |||
! capitalize | |||
| capitalizes | |||
|- | |||
! caps | |||
| capitalizes | |||
|- | |||
! pluralcaps | |||
| makes plural and capitalizes | |||
|} | |||
</noinclude> |
Latest revision as of 19:55, 28 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 |
capitalize | capitalizes |
caps | capitalizes |
pluralcaps | makes plural and capitalizes |