Шаблон: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= | | colspan="2" width={{{sizeoverride|200}}} style="background-color:{{{color|#90c9de}}}; |<center>'''{{{tabletitle|{{{job|}}}|}}} Skillset'''</center> | ||
|- | |- | ||
|<center>Medical</center> | |<center>Medical</center> | ||
| width= | | width="30%" |<center>{{{medical|0}}}/5</center> | ||
|- | |- | ||
|<center>Surgery</center> | |<center>Surgery</center> | ||
Строка 44: | Строка 44: | ||
"params": { | "params": { | ||
"job": { | "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": {}, | "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. | 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= | |sizeoverride=250 | ||
|job=Early Synthetic Differences & | |||
|tabletitle=Early Synthetic | |||
|premsg=Real | |premsg=Real | ||
|cqc=0 | |cqc=0 | ||
Строка 81: | Строка 96: | ||
}} | }} | ||
</pre> | </pre> | ||
Returns: | |||
{{Template:TGMC-Skills | {{Template:TGMC-Skills | ||
|color=#90dec4 | |color=#90dec4 | ||
|job= | |sizeoverride=250 | ||
|job=Early Synthetic Differences & | |||
|tabletitle=Early Synthetic | |||
|premsg=Real | |premsg=Real | ||
|cqc=0 | |cqc=0 |
Версия от 13:58, 6 августа 2023
Skills
<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