Name – Template
Jump to navigation
Jump to search
Fred Gandt (talk | contribs) (Switched parameters for ease of use. Second (format request) is now optional, defaulting to "long") |
Fred Gandt (talk | contribs) (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}} | ||
<!-- Arma 2: Firing Range --> | |||
<!-- Arma 2: Combined Operations --> | |||
<!-- Arma 2: Reinforcements --> | |||
|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 --> | ||
| | |a3 | ||
| | |arma3={{#switch:{{lc:{{{2}}}}} | ||
| | |img=arma3 | ||
| | |image=arma3 | ||
| | |short=Arma 3 | ||
| | |#default=Arma 3}} | ||
| | |zeus | ||
| | |zues | ||
| | |azeus | ||
| | |a1zeus | ||
| | |a2zeus | ||
| | |a3zeus | ||
| | |azues | ||
| | |a1zues | ||
| | |a2zues | ||
| | |a3zues | ||
| | |armazeus | ||
| | |armazues | ||
|img= | |arma1zeus | ||
|image= | |arma2zeus | ||
|short= | |arma3zeus | ||
|#default= | |arma1zues | ||
|arma2zues | |||
|arma3zues={{#switch:{{lc:{{{2}}}}} | |||
| | |img=zeus | ||
| | |image=zeus | ||
| | |short=Zeus | ||
| | |#default=Arma 3: Zeus}} | ||
| | <!-- Carrier Command: Gaea Mission --> | ||
| | <!-- Arma Tactics --> | ||
| | |toh | ||
| | |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 | |||
|img= | |arma1takeonhelicopters | ||
|image= | |arma2takeonhelicopters | ||
|short= | |arma3takeonhelicopters={{#switch:{{lc:{{{2}}}}} | ||
|#default= | |img=TKOH | ||
| | |image=TKOH | ||
| | |short=TKOH | ||
| | |#default=Take On Helicopters}} | ||
| | <!-- Take On Helicopters: Hinds --> | ||
| | |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 | ||
|img= | |image=TKOM | ||
|image= | |short=TKOM | ||
|short= | |#default=Take On Mars}} | ||
|#default= | |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 | |#default=Virtual Battlespace}} | ||
|vbs2 | |vbs2 | ||
|avbs2 | |avbs2 | ||
Line 362: | Line 441: | ||
|image=vbs2 | |image=vbs2 | ||
|short=VBS2 | |short=VBS2 | ||
|#default=Virtual Battlespace | |#default=Virtual Battlespace}} | ||
|vbs3 | |vbs3 | ||
|avbs3 | |avbs3 | ||
Line 384: | Line 463: | ||
|image=vbs3 | |image=vbs3 | ||
|short=VBS3 | |short=VBS3 | ||
|#default=Virtual Battlespace | |#default=Virtual Battlespace}} | ||
<!-- DayZ --> | |||
|#default='''[[Bohemia_Interactive_Community:Naming_Conventions|{{{1}}}]]'''}}</includeonly><noinclude> | |#default='''[[Bohemia_Interactive_Community:Naming_Conventions|{{{1}}}]]'''}}</includeonly><noinclude> | ||
{{Important| | {{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 | ! Full Name !! Short Name !! Image Link Prefix | ||
|- | |- | ||
| Bohemia Interactive | | 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: Operation Arrowhead || Arma 2:OA || arma2oa | ||
|- | |- | ||
| Arma 2: British Armed Forces | | 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: 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 | | Virtual Battlespace || VBS1 || vbs1 | ||
|- | |- | ||
| | | Virtual Battlespace || VBS2 || vbs2 | ||
|- | |- | ||
| | | Virtual Battlespace || VBS3 || vbs3 | ||
|} | |} | ||
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude> | [[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude> |
Revision as of 18:01, 5 May 2014
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
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 |