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

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>TheOneAndMightyRed
(Created page with "<noinclude><code> {| {{#switch: {{{table_start}}} | yes | yes = {| style="border: 2px solid black; ! style="background-color:#808080;"|'''Weapon:''' ! style="background-colo...")
 
imported>TheOneAndMightyRed
Нет описания правки
 
(не показано 15 промежуточных версий этого же участника)
Строка 1: Строка 1:
<noinclude><code>
{{#if: {{{table_start|}}} |{{{!}}
{|
  ! style="background-color:#808080; border: 2px solid black;"{{!}}'''Weapon:'''
{{#switch: {{{table_start}}} | yes | yes = {| style="border: 2px solid black;
  ! style="background-color:#808080; border: 2px solid black;"{{!}}'''Description:'''}}
  ! style="background-color:#808080;"|'''Weapon:'''
  ! style="background-color:#808080;"|'''Description:''' | }}
|-
|-
|style="width:150px; border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"|[[file:{{{image|TGMC_fix.png}}}|{{{image_size|128px}}}]]
|style="width:150px; border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"|[[file:{{{image|TGMC_fix.png}}}|{{{image_size|128px}}}]]
Строка 11: Строка 9:
{| border="2"
{| border="2"
|+ style="text-align:left;"|'''Ammo:'''
|+ style="text-align:left;"|'''Ammo:'''
|width=150|[[File:{{{mag_image|TGMC_fix.png}}}|{{{mag_image_size|64px}}}]]
|style="width=150px"|[[File:{{{mag_image|TGMC_fix.png}}}|{{{mag_image_size|64px}}}]]
[[#{{{mag_anchor|UNDEFINED}}}|'''{{{mag_name}}}''']]
[[#{{{mag_anchor|UNDEFINED}}}|'''{{{mag_name}}}''']]
|{{{mag_desc|Holds X number of boolets, make you go 'Ow'.}}}
|{{{mag_desc|Holds X number of boolets, make you go 'Ow'.}}}
|}
|}
{{#switch: {{{table_end}}} | yes | yes = |} | }}
|-
|}
{{#if: {{{table_end|}}} | {{!}}} | }}
</noinclude></code>
<noinclude>
 
== Example ==
 
{{TGMC-Guntemplate
|table_start = yes
|table_end = yes
|image = T12AR.png
|name = Exmaplar gun
|desc = This better work
|mag_image = T12AR_mag.png
|mag_desc = Fingers crossed
}}
 
== Meaning of Parameters ==
'''table_start''' adds the coloumbs for the table if the variable is set to 'yes', should only be used at the start of tables
<br>'''table_end''' adds a |} if the variable is set to 'yes', means formatting won't have to be done manually
<br>'''image''' is the icon for the gun
<br>'''image_size''' is the size of the gun icon, 128px by default
<br>'''name''' name of the weaon
<br>'''anchor''' anchor point for linking
<br>'''desc''' description for the weapon
<br>'''mag_image''' icon the for magainze
<br>'''mag_image_size''' icon size for the magainze, 64px by default
<br>'''mag_name''' name for the magazine
<br>'''mag_anchor''' anchor for the mag
<br>'''mag_desc''' description for the magazine

Текущая версия от 03:56, 12 июля 2020

|- |style="width:150px; border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"| Gun name |style="border: 3px solid black; border-bottom: 3px solid black; padding: 6px;"| Looks like someone failed to write a description

Ammo:

{{{mag_name}}}

Holds X number of boolets, make you go 'Ow'.

|-


Example[править | править код]

Code broke

Stuff is kinda broke atm, we know; don't use it till it gets fixed



Weapon: Description:

Exmaplar gun

This better work

Ammo:

{{{mag_name}}}

Fingers crossed


Meaning of Parameters[править | править код]

table_start adds the coloumbs for the table if the variable is set to 'yes', should only be used at the start of tables
table_end adds a |} if the variable is set to 'yes', means formatting won't have to be done manually
image is the icon for the gun
image_size is the size of the gun icon, 128px by default
name name of the weaon
anchor anchor point for linking
desc description for the weapon
mag_image icon the for magainze
mag_image_size icon size for the magainze, 64px by default
mag_name name for the magazine
mag_anchor anchor for the mag
mag_desc description for the magazine