Участник:TheOneAndMightyRed/Sandbox/Template:TGMC AttachmentImage: различия между версиями
imported>TheOneAndMightyRed Нет описания правки |
imported>TheOneAndMightyRed Нет описания правки |
||
Строка 7: | Строка 7: | ||
| scope_slavic= File:Unknown.png | | scope_slavic= File:Unknown.png | ||
| scope_pmc= File:Unknown.png | | scope_pmc= File:Unknown.png | ||
| scope2_mini = File:TGMC_scope_mini.png | |||
| File:TGMC_{{{attachmentName}}}.png }}</includeonly><noinclude> | | File:TGMC_{{{attachmentName}}}.png }}</includeonly><noinclude> | ||
This Template is part of the [[User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentSlot]] Template Tree. | This Template is part of the [[User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentSlot]] Template Tree. |
Версия от 19:54, 30 апреля 2020
This Template is part of the User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentSlot Template Tree.
This Template is used to get a specific Image of a particular Attachment in TGMC. This template automatically tried to get a .png of the attachment listed in the switch. If you want to add a png then simply upload a .png to the wiki using the sidebar and name it TGMC_<name>.png where <name> is replaced by the DEV attachment name path (e.g. /attachment/scope/mini becomes scope_mini or attachment/attached_gun/flamer becomes attached_gun_flamer). So if the new attachment you upload is called "/attachment/scope/big/mercenary" then please name the file TGMC_scope_big_mercenary.png. The same goes for the .gif format however you have to manually specify the File path name in the switch on this page to make it appear as a .gif on the site you are trying to get the picture from.
To use this template simply type [[{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=name}]]} in your page to get the Image in either a .png or .gif format of the specified attachment.
{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=flashlight}}
File:TGMC_flashlight.gif
[[{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=flashlight}}]]