Участник:TheOneAndMightyRed/Sandbox/Template:TGMC AttachmentImage: различия между версиями

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>TheOneAndMightyRed
Нет описания правки
imported>TheOneAndMightyRed
Нет описания правки
 
(не показана 1 промежуточная версия этого же участника)
Строка 5: Строка 5:
| bipod = File:TGMC_bipod.gif
| bipod = File:TGMC_bipod.gif
| scope_mini_m4ra = File:Unknown.png
| scope_mini_m4ra = File:Unknown.png
| scope_slavic= File:Unknown.png
| scope_m42a = File:Unknown.png
| scope_pmc= File:Unknown.png
| scope_slavic = File:Unknown.png
| scope2_mini = File:TGMC_scope_mini.png
| scope_pmc = File:Unknown.png
| scope3_mini_m4ra = File:Unknown.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.

Текущая версия от 21:45, 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}}]]