Шаблон:TGMC-Skills: различия между версиями

imported>Neocloudy
м (Width fix?)
imported>Neocloudy
(Changes for size, and add some descriptions)
Строка 4: Строка 4:
[[TGMC:Skills|Skills Information]]
[[TGMC:Skills|Skills Information]]
{| class="wikitable"
{| class="wikitable"
| colspan="2" width=175 style="background-color:{{{color|#90c9de}}}; |<center>'''{{{job|Skillset}}}'''</center>
| colspan="2" width={{{sizeoverride|200}}} style="background-color:{{{color|#90c9de}}}; |<center>'''{{{tabletitle|{{{job|}}}|}}} Skillset'''</center>
|-
|-
|<center>Medical</center>
|<center>Medical</center>
| width=50 |<center>{{{medical|0}}}/5</center>
| width="30%" |<center>{{{medical|0}}}/5</center>
|-
|-
|<center>Surgery</center>
|<center>Surgery</center>
Строка 44: Строка 44:
"params": {
"params": {
"job": {
"job": {
"suggested": true
"description": "The job title, leave blank and the header and tabletitle [if applicable] will read \"Skills\" and \"Skillset\"",
"required": true
},
"premsg": {
"description": "The message above the skills table, leave blank to disable"
},
},
"premsg": {},
"police": {},
"police": {},
"cqc": {},
"cqc": {},
Строка 57: Строка 60:
"powerloader": {},
"powerloader": {},
"firearms": {},
"firearms": {},
"lead": {}
"lead": {},
"sizeoverride": {
"description": "The width for the entire table to try and reach, adjust if the title is too big for the table",
"default": "200"
},
"color": {
"description": "Color override, leave blank for light blue"
},
"tabletitle": {
"description": "The title override, leave blank to use the regular title"
}
},
},
"description": "This is a template for showing a marine role's skills on the TGMC wiki."
"description": "This is a template for showing a marine role's skills on the TGMC wiki."
}
}
</templatedata>
</templatedata>
This is a template for use with skills on the TGMC marine pages. Getting skills is sort of dependent on code diving. Blank skills will return as ''0'' or '''-4''' for SG. The arguments:
This is a template for use with skills on the TGMC marine pages. Getting skills is sort of dependent on code diving. Blank skills will return as ''0'' or '''-4''' for SG. Example usage:
<pre>
<pre>
{{Template:TGMC-Skills
{{Template:TGMC-Skills
|color=#90dec4
|color=#90dec4
|job=Squad Marine
|sizeoverride=250
|job=Early Synthetic Differences &
|tabletitle=Early Synthetic
|premsg=Real
|premsg=Real
|cqc=0
|cqc=0
Строка 81: Строка 96:
}}
}}
</pre>
</pre>
Will return:
Returns:
{{Template:TGMC-Skills
{{Template:TGMC-Skills
|color=#90dec4
|color=#90dec4
|job=Squad Marine
|sizeoverride=250
|job=Early Synthetic Differences &
|tabletitle=Early Synthetic
|premsg=Real
|premsg=Real
|cqc=0
|cqc=0

Версия от 13:58, 6 августа 2023

Skills

Skills Information

Skillset
Medical
0/5
Surgery
0/5
Engineering
0/5
Construction
0/5
CQC
0/5
Police
0/2
Powerloader
0/4
Leadership
0/4
Smartgun
-4
Melee
0
Firearms
0

<templatedata> { "params": { "job": { "description": "The job title, leave blank and the header and tabletitle [if applicable] will read \"Skills\" and \"Skillset\"", "required": true }, "premsg": { "description": "The message above the skills table, leave blank to disable" }, "police": {}, "cqc": {}, "melee": {}, "surgery": {}, "medical": {}, "engineering": {}, "construction": {}, "sg": {}, "powerloader": {}, "firearms": {}, "lead": {}, "sizeoverride": { "description": "The width for the entire table to try and reach, adjust if the title is too big for the table", "default": "200" }, "color": { "description": "Color override, leave blank for light blue" }, "tabletitle": { "description": "The title override, leave blank to use the regular title" } }, "description": "This is a template for showing a marine role's skills on the TGMC wiki." } </templatedata> This is a template for use with skills on the TGMC marine pages. Getting skills is sort of dependent on code diving. Blank skills will return as 0 or -4 for SG. Example usage:

{{Template:TGMC-Skills
|color=#90dec4
|sizeoverride=250
|job=Early Synthetic Differences &
|tabletitle=Early Synthetic
|premsg=Real
|cqc=0
|police=0
|melee=0
|medical=0
|surgery=0
|engineering=0
|construction=0
|firearms=0
|powerloader=0
|lead=0
|sg
}}

Returns:

Early Synthetic Differences & Skills

Real

Skills Information

Early Synthetic Skillset
Medical
0/5
Surgery
0/5
Engineering
0/5
Construction
0/5
CQC
0/5
Police
0/2
Powerloader
0/4
Leadership
0/4
Smartgun
-4
Melee
0
Firearms
0