Template:Name: Difference between revisions
Jump to navigation
Jump to search
(capitalize...) |
No edit summary |
||
Line 3: | Line 3: | ||
| possessive={{#invoke:HTMLParse| make_possessive |html={{#var:name|{{PAGENAME}}}} }} | | possessive={{#invoke:HTMLParse| make_possessive |html={{#var:name|{{PAGENAME}}}} }} | ||
| capitalize={{#invoke:HTMLParse| capitalize |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]] | |{{#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. | ||
Line 14: | Line 16: | ||
! possessive | ! possessive | ||
| makes possessive | | makes possessive | ||
|- | |||
! capitalize | |||
| capitalizes | |||
|- | |||
! caps | |||
| capitalizes | |||
|- | |||
! pluralcaps | |||
| makes plural and capitalizes | |||
|} | |} | ||
</noinclude> | </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 |