Name – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Switched parameters for ease of use. Second (format request) is now optional, defaulting to "long")
(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))
Line 11: Line 11:
     |short=BI
     |short=BI
     |#default=Bohemia Interactive}}
     |#default=Bohemia Interactive}}
|ofp
|aofp
|a1ofp
|a2ofp
|a3ofp
|armaofp
|arma1ofp
|arma2ofp
|arma3ofp
|operationflashpoint
|aoperationflashpoint
|a1operationflashpoint
|a2operationflashpoint
|a3operationflashpoint
|armaoperationflashpoint
|arma1operationflashpoint
|arma2operationflashpoint
|arma3operationflashpoint={{#switch:{{lc:{{{2}}}}}
    |img=ofp
    |image=ofp
    |short=OFP
    |#default=Operation Flashpoint}} <!-- Cold War Crisis -->
|ofpr
|aofpr
|a1ofpr
|a2ofpr
|a3ofpr
|armaofpr
|arma1ofpr
|arma2ofpr
|arma3ofpr
|ofpresistance
|aofpresistance
|a1ofpresistance
|a2ofpresistance
|a3ofpresistance
|armaofpresistance
|arma1ofpresistance
|arma2ofpresistance
|arma3ofpresistance
|operationflashpointr
|aoperationflashpointr
|a1operationflashpointr
|a2operationflashpointr
|a3operationflashpointr
|armaoperationflashpointr
|arma1operationflashpointr
|arma2operationflashpointr
|arma3operationflashpointr
|operationflashpointresistance
|aoperationflashpointresistance
|a1operationflashpointresistance
|a2operationflashpointresistance
|a3operationflashpointresistance
|armaoperationflashpointresistance
|arma1operationflashpointresistance
|arma2operationflashpointresistance
|arma3operationflashpointresistance={{#switch:{{lc:{{{2}}}}}
    |img=ofpr
    |image=ofpr
    |short=OFP:R
    |#default=Operation Flashpoint: Resistance}}
|ofpe
|aofpe
|a1ofpe
|a2ofpe
|a3ofpe
|armaofpe
|arma1ofpe
|arma2ofpe
|arma3ofpe
|ofpelite
|aofpelite
|a1ofpelite
|a2ofpelite
|a3ofpelite
|armaofpelite
|arma1ofpelite
|arma2ofpelite
|arma3ofpelite
|operationflashpointe
|aoperationflashpointe
|a1operationflashpointe
|a2operationflashpointe
|a3operationflashpointe
|operationflashpointelite
|armaoperationflashpointe
|arma1operationflashpointe
|arma2operationflashpointe
|arma3operationflashpointe
|aoperationflashpointelite
|a1operationflashpointelite
|a2operationflashpointelite
|a3operationflashpointelite
|armaoperationflashpointelite
|arma1operationflashpointelite
|arma2operationflashpointelite
|arma3operationflashpointelite={{#switch:{{lc:{{{2}}}}}
    |img=ofpe
    |image=ofpe
    |short=OFP:E
    |#default=Operation Flashpoint: Elite}}
<!-- Operation Flashpoint: Gold Edition -->
<!-- Operation Flashpoint: GOTY Edition -->
|a
|a
|a1
|a1
Line 27: Line 131:
     |image=arma
     |image=arma
     |short=Arma
     |short=Arma
     |#default=Armed Assault}}
     |#default=Armed Assault}} <!-- Combat Operations -->
<!-- Arma: Queen's Gambit -->
|a2
|a2
|arma2={{#switch:{{lc:{{{2}}}}}
|arma2={{#switch:{{lc:{{{2}}}}}
Line 34: Line 139:
     |short=Arma 2
     |short=Arma 2
     |#default=Arma 2}}
     |#default=Arma 2}}
|a3
<!-- Arma 2: Firing Range -->
|arma3={{#switch:{{lc:{{{2}}}}}
<!-- Arma 2: Combined Operations -->
    |img=arma3
<!-- Arma 2: Reinforcements -->
    |image=arma3
    |short=Arma 3
    |#default=Arma 3}}
|zeus
|zues
|azeus
|a1zeus
|a2zeus
|a3zeus
|azues
|a1zues
|a2zues
|a3zues
|armazeus
|armazues
|arma1zeus
|arma2zeus
|arma3zeus
|arma1zues
|arma2zues
|arma3zues={{#switch:{{lc:{{{2}}}}}
    |img=zeus
    |image=zeus
    |short=Zeus
    |#default=Arma 3: Zeus}}
|aiv
|aaiv
|a1aiv
|a2aiv
|a3aiv
|armaaiv
|arma1aiv
|arma2aiv
|arma3aiv
|austriansinvietnam
|aaustriansinvietnam
|a1austriansinvietnam
|a2austriansinvietnam
|a3austriansinvietnam
|australiansinvietnam
|aaustraliansinvietnam
|armaaustriansinvietnam
|a1australiansinvietnam
|a2australiansinvietnam
|a3australiansinvietnam
|arma1austriansinvietnam
|arma2austriansinvietnam
|arma3austriansinvietnam
|armaaustraliansinvietnam
|arma1australiansinvietnam
|arma2australiansinvietnam
|arma3australiansinvietnam={{#switch:{{lc:{{{2}}}}}
    |img=aiv
    |image=aiv
    |short=AiV
    |#default=Australians in Vietnam}}
|oa
|oa
|aoa
|aoa
Line 198: Line 247:
     |image=arma2acr
     |image=arma2acr
     |short=Arma 2:ACR
     |short=Arma 2:ACR
     |#default=Arma 2: Army of Czech Republic}}
     |#default=Arma 2: Army of Czech Republic}} <!-- Army of THE Czech Republic -->
|ofp
|a3
|aofp
|arma3={{#switch:{{lc:{{{2}}}}}
|a1ofp
    |img=arma3
|a2ofp
    |image=arma3
|a3ofp
    |short=Arma 3
|armaofp
    |#default=Arma 3}}
|arma1ofp
|zeus
|arma2ofp
|zues
|arma3ofp
|azeus
|operationflashpoint
|a1zeus
|aoperationflashpoint
|a2zeus
|a1operationflashpoint
|a3zeus
|a2operationflashpoint
|azues
|a3operationflashpoint
|a1zues
|armaoperationflashpoint
|a2zues
|arma1operationflashpoint
|a3zues
|arma2operationflashpoint
|armazeus
|arma3operationflashpoint={{#switch:{{lc:{{{2}}}}}
|armazues
     |img=ofp
|arma1zeus
     |image=ofp
|arma2zeus
     |short=OFP
|arma3zeus
     |#default=Operation Flashpoint}}
|arma1zues
|ofpe
|arma2zues
|aofpe
|arma3zues={{#switch:{{lc:{{{2}}}}}
|a1ofpe
     |img=zeus
|a2ofpe
     |image=zeus
|a3ofpe
     |short=Zeus
|armaofpe
     |#default=Arma 3: Zeus}}
|arma1ofpe
<!-- Carrier Command: Gaea Mission -->
|arma2ofpe
<!-- Arma Tactics -->
|arma3ofpe
|toh
|ofpelite
|tkoh
|aofpelite
|atoh
|a1ofpelite
|a1toh
|a2ofpelite
|a2toh
|a3ofpelite
|a3toh
|armaofpelite
|atkoh
|arma1ofpelite
|a1tkoh
|arma2ofpelite
|a2tkoh
|arma3ofpelite
|a3tkoh
|operationflashpointe
|armatoh
|aoperationflashpointe
|armatkoh
|a1operationflashpointe
|arma1toh
|a2operationflashpointe
|arma2toh
|a3operationflashpointe
|arma3toh
|operationflashpointelite
|arma1tkoh
|armaoperationflashpointe
|arma2tkoh
|arma1operationflashpointe
|arma3tkoh
|arma2operationflashpointe
|takeonhelicopters
|arma3operationflashpointe
|atakeonhelicopters
|aoperationflashpointelite
|a1takeonhelicopters
|a1operationflashpointelite
|a2takeonhelicopters
|a2operationflashpointelite
|a3takeonhelicopters
|a3operationflashpointelite
|armatakeonhelicopters
|armaoperationflashpointelite
|armatakeonhelicopters
|arma1operationflashpointelite
|arma1takeonhelicopters
|arma2operationflashpointelite
|arma2takeonhelicopters
|arma3operationflashpointelite={{#switch:{{lc:{{{2}}}}}
|arma3takeonhelicopters
     |img=ofpe
|arma1takeonhelicopters
     |image=ofpe
|arma2takeonhelicopters
     |short=OFP:E
|arma3takeonhelicopters={{#switch:{{lc:{{{2}}}}}
     |#default=Operation Flashpoint: Elite}}
     |img=TKOH
|ofpr
     |image=TKOH
|aofpr
     |short=TKOH
|a1ofpr
     |#default=Take On Helicopters}}
|a2ofpr
<!-- Take On Helicopters: Hinds -->
|a3ofpr
|tom
|armaofpr
|tkom
|arma1ofpr
|atom
|arma2ofpr
|a1tom
|arma3ofpr
|a2tom
|ofpresistance
|a3tom
|aofpresistance
|atkom
|a1ofpresistance
|a1tkom
|a2ofpresistance
|a2tkom
|a3ofpresistance
|a3tkom
|armaofpresistance
|armatom
|arma1ofpresistance
|armatkom
|arma2ofpresistance
|arma1tom
|arma3ofpresistance
|arma2tom
|operationflashpointr
|arma3tom
|aoperationflashpointr
|arma1tkom
|a1operationflashpointr
|arma2tkom
|a2operationflashpointr
|arma3tkom
|a3operationflashpointr
|takeonmars
|armaoperationflashpointr
|atakeonmars
|arma1operationflashpointr
|a1takeonmars
|arma2operationflashpointr
|a2takeonmars
|arma3operationflashpointr
|a3takeonmars
|operationflashpointresistance
|armatakeonmars
|aoperationflashpointresistance
|armatakeonmars
|a1operationflashpointresistance
|arma1takeonmars
|a2operationflashpointresistance
|arma2takeonmars
|a3operationflashpointresistance
|arma3takeonmars
|armaoperationflashpointresistance
|arma1takeonmars
|arma1operationflashpointresistance
|arma2takeonmars
|arma2operationflashpointresistance
|arma3takeonmars={{#switch:{{lc:{{{2}}}}}
|arma3operationflashpointresistance={{#switch:{{lc:{{{2}}}}}
    |img=TKOM
     |img=ofpr
    |image=TKOM
     |image=ofpr
    |short=TKOM
     |short=OFP:R
    |#default=Take On Mars}}
     |#default=Operation Flashpoint: Resistance}}
|aiv
|aaiv
|a1aiv
|a2aiv
|a3aiv
|armaaiv
|arma1aiv
|arma2aiv
|arma3aiv
|austriansinvietnam
|aaustriansinvietnam
|a1austriansinvietnam
|a2austriansinvietnam
|a3austriansinvietnam
|australiansinvietnam
|aaustraliansinvietnam
|armaaustriansinvietnam
|a1australiansinvietnam
|a2australiansinvietnam
|a3australiansinvietnam
|arma1austriansinvietnam
|arma2austriansinvietnam
|arma3austriansinvietnam
|armaaustraliansinvietnam
|arma1australiansinvietnam
|arma2australiansinvietnam
|arma3australiansinvietnam={{#switch:{{lc:{{{2}}}}}
     |img=aiv
     |image=aiv
     |short=AiV
     |#default=Australians in Vietnam}}
|vbs
|vbs
|vbs1
|vbs1
Line 340: Line 419:
     |image=vbs1
     |image=vbs1
     |short=VBS1
     |short=VBS1
     |#default=Virtual Battlespace 1}}
     |#default=Virtual Battlespace}}
|vbs2
|vbs2
|avbs2
|avbs2
Line 362: Line 441:
     |image=vbs2
     |image=vbs2
     |short=VBS2
     |short=VBS2
     |#default=Virtual Battlespace 2}}
     |#default=Virtual Battlespace}}
|vbs3
|vbs3
|avbs3
|avbs3
Line 384: Line 463:
     |image=vbs3
     |image=vbs3
     |short=VBS3
     |short=VBS3
     |#default=Virtual Battlespace 3}}
     |#default=Virtual Battlespace}}
|toh
<!-- DayZ -->
|tkoh
|atoh
|a1toh
|a2toh
|a3toh
|atkoh
|a1tkoh
|a2tkoh
|a3tkoh
|armatoh
|armatkoh
|arma1toh
|arma2toh
|arma3toh
|arma1tkoh
|arma2tkoh
|arma3tkoh
|takeonhelicopters
|atakeonhelicopters
|a1takeonhelicopters
|a2takeonhelicopters
|a3takeonhelicopters
|armatakeonhelicopters
|armatakeonhelicopters
|arma1takeonhelicopters
|arma2takeonhelicopters
|arma3takeonhelicopters
|arma1takeonhelicopters
|arma2takeonhelicopters
|arma3takeonhelicopters={{#switch:{{lc:{{{2}}}}}
    |img=TKOH
    |image=TKOH
    |short=TKOH
    |#default=Take On Helicopters}}
|tom
|tkom
|atom
|a1tom
|a2tom
|a3tom
|atkom
|a1tkom
|a2tkom
|a3tkom
|armatom
|armatkom
|arma1tom
|arma2tom
|arma3tom
|arma1tkom
|arma2tkom
|arma3tkom
|takeonmars
|atakeonmars
|a1takeonmars
|a2takeonmars
|a3takeonmars
|armatakeonmars
|armatakeonmars
|arma1takeonmars
|arma2takeonmars
|arma3takeonmars
|arma1takeonmars
|arma2takeonmars
|arma3takeonmars={{#switch:{{lc:{{{2}}}}}
    |img=TKOM
    |image=TKOM
    |short=TKOM
    |#default=Take On Mars}}
|#default='''[[Bohemia_Interactive_Community:Naming_Conventions|{{{1}}}]]'''}}</includeonly><noinclude>
|#default='''[[Bohemia_Interactive_Community:Naming_Conventions|{{{1}}}]]'''}}</includeonly><noinclude>


{{Important|Not currently in use. Awaiting peer review and feedback, before including in {{Template|Command}} and {{Template|Function}} to correct badly formed entries.
{{Important|Awaiting peer review and feedback, before including in {{Template|Command}} and {{Template|Function}} to correct badly formed entries.


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


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


[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Revision as of 18:01, 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