Name – Template

From Bohemia Interactive Community
Revision as of 03:09, 30 April 2014 by Fred Gandt (talk | contribs) (Fixed examples broken by move)
Jump to navigation Jump to search


Not currently in use. 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 format request. Either "img", "short" or "long" (the long name is returned by default).
The second parameter is the input string to be verified or corrected.

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

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

Examples

  • {{Name|img|ArmA 2}} produces "arma2"
  • {{Name|short|arma:arc}} produces "Arma 2:ACR" and correctly interprets a possible typo.
  • {{Name|long|ArmA 2: OFP: E}} produces "Operation Flashpoint: Elite"
  • {{Name|doesn't actually matter if we want the long name|A1 Zues}} produces "Arma 3: Zeus" even though "Zeus" is both 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
Full Name Short Name Image Link Prefix
Bohemia Interactive BI bi
Armed Assault Arma arma
Arma 2 Arma 2 arma2
Arma 3 Arma 3 arma3
Australians in Vietnam AiV aiv
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 Czech Republic Arma 2:ACR arma2acr
Arma 3: Zeus Zeus zeus
Operation Flashpoint OFP ofp
Operation Flashpoint: Elite OFP:E ofpe
Operation Flashpoint: Resistance OFP:R ofpr
Virtual Battlespace 1 VBS1 vbs1
Virtual Battlespace 2 VBS2 vbs2
Virtual Battlespace 3 VBS3 vbs3
Take On Helicopters TKOH TKOH
Take On Mars TKOM TKOM