Template:Guntable: Difference between revisions
Jump to navigation
Jump to search
imported>Gohunt001 another test |
imported>Gohunt001 test again since previewing templates is not easy reee |
||
Line 76: | Line 76: | ||
{{#switch: {{{end|}}} | {{#switch: {{{end|}}} | ||
| true = {{!}}} | | true = {{!}}} | ||
| | | | ||
}} | }} | ||
Revision as of 11:15, 6 February 2021
A template for the TGMC wiki's marine equipment section, specifically the guns. Using this effectively requires the addition of {| and |} before and after the {{guntable}}. Using this, multiple tables can be stacked as long as it's between the brackety thingies. such as: {| {{guntable}} {{guntable}} |}
|-
|style="width:150px; border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"|
You forgot to set the name
|style="border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"| You forgot the gun description
You forgot the ammo description |
Attachments: | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Rail | ||||||||||||||
Muzzle | ||||||||||||||
Underbarrel | style="padding:5px" | Nothing | |||||||||||||
Stock | style="padding:5px" | Fixed |
Variables:
- imagefile: put your image file name here
- gunanchorname: name of the gun's anchor
- name: name of the gun
- desc: description of the gun
- ammofile: put your ammo image file name here
- ammoanchorname: name of the ammo's anchor
- ammoname: name of the ammo
- ammodesc: description of the ammo