Name – Template

From Bohemia Interactive Community
Revision as of 05:59, 29 April 2014 by Fred Gandt (talk | contribs) (Correcting case for TKOH and TKOM which contrary to apparently all other short names, should be upper case.)
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.

Can be expanded to suit future and possible present needs, not currently included i.e. returning correctly formatted correct case short names like "Arma 2:OA" etc.

Please add any switch cases omitted, or if unsure about how to do it, leave a message on the talk page.

Usage

Takes one parameter in the form of either short=name, which returns the correct short name in lower case.

Or

long=name, which returns the correct long name in correct case.

And

Returns the correct game name, even if the input isn't correct.

i.e. {{Game name|long=toh}} will return "Template:Game name" even though the input should have been "TKOH".

And

{{Game name|short=ArmA 2: OA}} will return "Template:Game name".