Name – Template
Fred Gandt (talk | contribs) m (Fred Gandt moved page Template:Game name to Template:Name: Originally created to handle less. It's possible uses now being greater should be served by a more ambiguous name.) |
Fred Gandt (talk | contribs) m (Fixed examples broken by move) |
||
| Line 450: | Line 450: | ||
:The second parameter is the input string to be verified or corrected. | :The second parameter is the input string to be verified or corrected. | ||
Will return the input string linked to [[Bohemia_Interactive_Community:Naming_Conventions|Naming Conventions]] if no matches are found. | Will return the input string linked to [[Bohemia_Interactive_Community:Naming_Conventions|Naming Conventions]] if no matches are found. | ||
:''e.g.'' {{Inline code|<nowiki>{{ | :''e.g.'' {{Inline code|<nowiki>{{Name|long|wjhbvkwfk}}</nowiki>}} produces "{{Name|long|wjhbvkwfk}}". | ||
===Examples=== | ===Examples=== | ||
*{{Inline code|<nowiki>{{ | *{{Inline code|<nowiki>{{Name|img|ArmA 2}}</nowiki>}} produces "{{Name|img|ArmA 2}}" | ||
*{{Inline code|<nowiki>{{ | *{{Inline code|<nowiki>{{Name|short|arma:arc}}</nowiki>}} produces "{{Name|short|arma:arc}}" and correctly interprets a possible typo. | ||
*{{Inline code|<nowiki>{{ | *{{Inline code|<nowiki>{{Name|long|ArmA 2: OFP: E}}</nowiki>}} produces "{{Name|long|ArmA 2: OFP: E}}" | ||
*{{Inline code|<nowiki>{{ | *{{Inline code|<nowiki>{{Name|doesn't actually matter if we want the long name|A1 Zues}}</nowiki>}} produces "{{Name|doesn't actually matter if we want the long name|A1 Zues}}" even though "Zeus" is both spelled incorrectly and is an Arma 3 DLC! | ||
:''etc.'' - You get the idea :-) | :''etc.'' - You get the idea :-) | ||
Revision as of 03:09, 30 April 2014
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
| 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 |