User:TheOneAndMightyRed/Sandbox/Template:TGMC AttachmentName: Difference between revisions
imported>TheOneAndMightyRed Created page with "<includeonly>{{#switch: {{{attachmentName}}} | suppressor = Suppressor | bayonet = Bayonet | extended_barrel = Extended Barrel | heavy_barrel = Barrel Charger | compensator = ..." |
imported>TheOneAndMightyRed No edit summary |
||
Line 66: | Line 66: | ||
To use this template simply type '''<nowiki>{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=name}}</nowiki>''' in your page to get a Display name of the specified attachment. | To use this template simply type '''<nowiki>{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=name}}</nowiki>''' in your page to get a Display name of the specified attachment. | ||
<nowiki>{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=flashlight}}</nowiki><br> | |||
{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=flashlight}} |
Revision as of 15:06, 30 April 2020
This Template is part of the User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentSlot Template Tree.
This Template is used to get a specific Display Name of a particular Attachment in TGMC. To add your own attachment to the list please add a new case in the switch statement with the DEV attachment name path (e.g. /attachment/scope/mini becomes scope_mini or attachment/attached_gun/flamer becomes attached_gun_flamer) and a display name suited for the Attachment.
To use this template simply type {{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=name}} in your page to get a Display name of the specified attachment.
{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentName|attachmentName=flashlight}}
Rail Flashlight