Template:Abbrgame: Difference between revisions
Jump to navigation
Jump to search
(error template) |
(PW instead of P&W) |
||
Line 34: | Line 34: | ||
|politics&war | |politics&war | ||
|politics and war | |politics and war | ||
|politics & war = {{#ifeq:{{{2}}}|full|Politics & War| | |politics & war = {{#ifeq:{{{2}}}|full|Politics & War|PW}} | ||
|#default = {{error|invalid game name or abbreviation}} | |#default = {{error|invalid game name or abbreviation}} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 03:05, 6 August 2020
Documentation [edit]
This template is used to get the abbreviation or full name for any game covered on the wiki. This is often useful for templates using abbreviations or taking user input.
See also NPOWiki:Policies#Articles for guidelines related to formatting of game names.
Parameters
- first unnamed parameter: the abbreviation, nickname, or full name to look up.
- second unnamed parameter: if set to "full", the template will return the full name of the game. Otherwise (by default), it will return the abbreviation for the game.
Examples
{{abbrgame|Cyber Nations}}
produces: CN{{abbrgame|CN|full}}
produces: Cyber Nations{{abbrgame|CN}}
produces: CN
The above documentation is transcluded from Template:Abbrgame/doc.