Name – Template

From Bohemia Interactive Community
Revision as of 04:22, 29 April 2014 by Fred Gandt (talk | contribs) (Specifically for use in {{Command}} and {{Function}} to fix imperfect additions. Will act to replace multiple templates and provide greater functionality and ease of maintenance. >> Needs peer review of short and long game names please <<)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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".