Участник:TheOneAndMightyRed/Sandbox/Template:TGMC AttachmentImage: различия между версиями
imported>TheOneAndMightyRed Нет описания правки |
imported>TheOneAndMightyRed Нет описания правки |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 4: | Строка 4: | ||
| attached_gun_flamer = File:TGMC_attached_gun_flamer.gif | | attached_gun_flamer = File:TGMC_attached_gun_flamer.gif | ||
| bipod = File:TGMC_bipod.gif | | bipod = File:TGMC_bipod.gif | ||
| scope_mini_m4ra = File:Unknown.png | |||
| scope_m42a = File:Unknown.png | |||
| scope_slavic = File:Unknown.png | |||
| scope_pmc = 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. | ||
Строка 13: | Строка 17: | ||
<nowiki> | <nowiki>{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=flashlight}}</nowiki><br> | ||
{{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=flashlight}} | {{User:TheOneAndMightyRed/Sandbox/Template:TGMC_AttachmentImage|attachmentName=flashlight}} | ||
Текущая версия от 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}}]]