Name – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Protected "Template:Name": High traffic page: Naming convention control center supporting several other templates ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
m (Added Arma 3 DEV)
Line 248: Line 248:
     |short=Arma 2:ACR
     |short=Arma 2:ACR
     |#default=Arma 2: Army of the Czech Republic}}
     |#default=Arma 2: Army of the Czech Republic}}
|a3d
|a3dev
|arma3dev
|a3devbranch
|arma3devbranch
|armathreedevbranch
|a3developmentbranch
|arma3developmentbranch={{#switch:{{lc:{{{2}}}}}
    |img=arma3dev
    |image=arma3dev
    |short=Arma 3 DEV
    |#default=Arma 3 Development Branch}}
|a3
|a3
|arma3={{#switch:{{lc:{{{2}}}}}
|arma3={{#switch:{{lc:{{{2}}}}}

Revision as of 03:25, 17 October 2014


Please add any switch cases omitted, or if unsure about how to do it, leave a message on the talk page.

Usage

Takes two parameters
The first parameter is the input string to be verified or corrected.
The second (optional) parameter is the format request.
Either "img" or "image", "short" or "long". The long name is returned by default if this parameter is omitted.

Will return the input string linked to Naming Conventions if no matches are found.

e.g. {{Name|wjhbvkwfk}} produces "wjhbvkwfk".

Examples

  • {{Name|ArmA 2|img}} produces "arma2"
  • {{Name|arma:arc|short}} produces "Arma 2:ACR" and correctly interprets a possible typo.
  • {{Name|ArmA 2: OFP: E}} produces "Operation Flashpoint: Elite"
  • {{Name|A1 Zues}} produces "Arma 3: Zeus" even though both "Zeus" is spelled incorrectly and is an Arma 3 DLC!
etc. - You get the idea :-)

In other words, it takes a multitude of possible (slightly and wildly incorrect) interpretations (including several possible typos) of how BI games should be named, and returns the conventionally correct version required, depending on circumstance.

Handling

The following naming conventions are handled (so far)
Full Name Short Name Image Link Prefix
Bohemia Interactive BI bi
Operation Flashpoint OFP ofp
Operation Flashpoint: Resistance OFP:R ofpr
Operation Flashpoint: Elite OFP:E ofpe
Armed Assault Arma arma
Arma 2 Arma 2 arma2
Arma 2: Operation Arrowhead Arma 2:OA arma2oa
Arma 2: British Armed Forces Arma 2:BAF arma2baf
Arma 2: Private Military Company Arma 2:PMC arma2pmc
Arma 2: Army of the Czech Republic Arma 2:ACR arma2acr
Arma 3 Arma 3 arma3
Arma 3: Zeus Zeus zeus
Take On Helicopters TKOH TKOH
Take On Mars TKOM TKOM
Australians in Vietnam AiV aiv
Virtual Battlespace 1 VBS1 vbs1
Virtual Battlespace 2 VBS2 vbs2
Virtual Battlespace 3 VBS3 vbs3