Template:Abbrgame: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(create)
 
(NationsGame)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{#titleparts:{{{1}}}}}}}
<includeonly>{{#switch:{{lc:{{#titleparts:{{{1}}}}}}}
|cn = Cyber Nations
|ns
|nationstates = {{#ifeq:{{{2}}}|full|NationStates|NS}}
|cn
|cybernations
|cybernations
|cyber nations = {{#ifeq:{{{2}}}|full|Cyber Nations|CN}}
|cyber nations = {{#ifeq:{{{2}}}|full|Cyber Nations|CN}}
|ns = NationStates
|torn = Torn
|nationstates = {{#ifeq:{{{2}}}|full|NationStates|NS}}
|lw
|#default = <span class="error">invalid game name or abbreviation</span>
|lunarwars
|lunar wars = {{#ifeq:{{{2}}}|full|Lunar Wars|LW}}
|or
|originsreturn
|origins return = {{#ifeq:{{{2}}}|full|Origins Return|OR}}
|pt
|projectterra
|project terra = {{#ifeq:{{{2}}}|full|Project Terra|PT}}
|ae
|astroempires
|astro empires = {{#ifeq:{{{2}}}|full|Astro Empires|AE}}
|eve
|eveo
|eveonline
|eve online = {{#ifeq:{{{2}}}|full|EVE Online|EVE}}
|pn
|pixelnations
|pixel nations = {{#ifeq:{{{2}}}|full|Pixel Nations|PN}}
|ng
|nations
|nations game
|nationsgame = {{#ifeq:{{{2}}}|full|NationsGame|NG}}
|pw
|pnw
|p&w
|politicsandwar
|politics&war
|politics and war
|politics & war = {{#ifeq:{{{2}}}|full|Politics & War|PW}}
|#default = {{error|invalid game name or abbreviation}}
}}</includeonly><noinclude>{{documentation}}</noinclude>
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 17:00, 3 September 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.