Name – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added (hidden for now) more titles to handle. Still hoping for feedback, and input before this could be considered "complete" (obviously Arma 4 will need adding at some point))
m (>.<)
Line 247: Line 247:
     |image=arma2acr
     |image=arma2acr
     |short=Arma 2:ACR
     |short=Arma 2:ACR
     |#default=Arma 2: Army of Czech Republic}} <!-- Army of THE Czech Republic -->
     |#default=Arma 2: Army of the Czech Republic}}
|a3
|a3
|arma3={{#switch:{{lc:{{{2}}}}}
|arma3={{#switch:{{lc:{{{2}}}}}

Revision as of 19:03, 5 May 2014


Awaiting peer review and feedback, before including in {{Command}} and {{Function}} to correct badly formed entries.

Eventually this should replace multiple templates, providing a simple way to organise game naming convention.

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 VBS1 vbs1
Virtual Battlespace VBS2 vbs2
Virtual Battlespace VBS3 vbs3