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

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>Neocloudy
Нет описания правки
imported>Neocloudy
(template arguments changed)
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
=={{{job|}}} Skills==
=={{{job|}}} Skills==
{{{premsg|}}}


[[TGMC:Skills|Skills Information]]
[[TGMC:Skills|Skills Information]]
{|
{| class="wikitable"
{{{premsg|}}}
| colspan="2" width={{{sizeoverride|200}}} style="background-color:{{{color|#90c9de}}}"; |<center>'''{{{tabletitle|{{{job|}}}|}}} Skills'''</center>
 
|-
|  
|<center>Medical</center>
'''Police:''' {{{police|Untrained}}} / '''CQC:''' {{{cqc|Untrained}}} / '''Melee:''' {{{melee|Untrained}}}  
| width="30%" |<center>{{{medical|0}}}/5</center>
 
|-
'''Surgery:''' {{{surgery|Untrained}}} / '''Medical:''' {{{medical|Untrained}}}  
|<center>Surgery</center>
 
|<center>{{{surgery|0}}}/5</center>
'''Engineering:''' {{{engineering|Untrained}}} / '''Construction:''' {{{construction|Untrained}}}  
|-
 
|<center>Engineering</center>
'''Smartgun:''' {{{sg|Untrained}}} / '''Powerloader:''' {{{powerloader|Untrained}}} / '''Firearms:''' {{{firearms|Untrained}}}  
|<center>{{{engineering|0}}}/5</center>
 
|-
'''Leadership:''' {{{lead|Untrained}}}
|<center>Construction</center>
|<center>{{{construction|0}}}/5</center>
|-
|<center>Police</center>
|<center>{{{police|0}}}/2</center>
|-
|<center>Powerloader</center>
|<center>{{{powerloader|0}}}/4</center>
|-
|<center>Leadership</center>
|<center>{{{lead|0}}}/4</center>
|-
|<center>CQC</center>
|<center>{{{cqc|0}}}</center>
|-
|<center>Smartgun</center>
|<center>{{{sg|-4}}}</center>
|-
|<center>Melee</center>
|<center>{{{melee|0}}}</center>
|-
|<center>Firearms</center>
|<center>{{{firearms|0}}}</center>
|}
|}
<noinclude>
<noinclude>
Строка 21: Строка 44:
"params": {
"params": {
"job": {
"job": {
"suggested": true
"description": "The job title, leave blank for heading and table title [if also left blank] to default to Skills",
"required": true
},
"premsg": {
"description": "The message above the skills table, leave blank to disable"
},
},
"premsg": {},
"police": {},
"police": {},
"cqc": {},
"cqc": {},
Строка 34: Строка 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. Number column will try to take up 30% of the table",
"default": "200"
},
"color": {
"description": "Color override in HTML (#______), leave blank for light blue,"
},
"tabletitle": {
"description": "The title override. If blank, falls back to job or reads Skills if both are blank"
}
},
},
"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 ''Untrained''. The arguments:
This is a template for use with skills on the TGMC marine pages. Getting skills is sort of dependent on code diving.  
* Size override should be left over 200 for most pages.
* Colors look best relatively light as it also translates properly into dark mode.
Example usage:
<pre>
<pre>
{{Template:TGMC-Skills
{{TGMC-Skills
|job=Squad Marine
|color=#Cbb7f3
|premsg=Real
|sizeoverride=225
|cqc=0
|job=Spatial Agent
|police=0
|tabletitle=Spatial
|melee=0
|premsg=The Spatial Agent skillset has maximum of every skill.
|medical=0
|cqc=5
|surgery=0
|police=2
|engineering=0
|melee=2
|construction=0
|medical=5
|firearms=0
|surgery=5
|powerloader=0
|engineering=5
|lead=0
|construction=5
|sg=0
|firearms=2
|powerloader=4
|lead=4
|sg=2
}}
}}
</pre>
</pre>
Will return:
Returns:
{{Template:TGMC-Skills
{{TGMC-Skills
|job=Squad Marine
|color=#Cbb7f3
|premsg=Real
|sizeoverride=225
|cqc=0
|job=Spatial Agent
|police=0
|tabletitle=Spatial
|melee=0
|premsg=The Spatial Agent skillset has maximum of every skill.
|medical=0
|cqc=5
|surgery=0
|police=2
|engineering=0
|melee=2
|construction=0
|medical=5
|firearms=0
|surgery=5
|powerloader=0
|engineering=5
|lead=0
|construction=5
|sg=0
|firearms=2
|powerloader=4
|lead=4
|sg=2
}}
}}
</noinclude>
</noinclude>

Текущая версия от 20:18, 6 августа 2023

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

Skills Information

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

This is a template for showing a marine role's skills on the TGMC wiki.

Параметры шаблона[Править данные шаблона]

ПараметрОписаниеТипСтатус
jobjob

The job title, leave blank for heading and table title [if also left blank] to default to Skills

Неизвестнообязательный
premsgpremsg

The message above the skills table, leave blank to disable

Неизвестнонеобязательный
policepolice

без описания

Неизвестнонеобязательный
cqccqc

без описания

Неизвестнонеобязательный
meleemelee

без описания

Неизвестнонеобязательный
surgerysurgery

без описания

Неизвестнонеобязательный
medicalmedical

без описания

Неизвестнонеобязательный
engineeringengineering

без описания

Неизвестнонеобязательный
constructionconstruction

без описания

Неизвестнонеобязательный
sgsg

без описания

Неизвестнонеобязательный
powerloaderpowerloader

без описания

Неизвестнонеобязательный
firearmsfirearms

без описания

Неизвестнонеобязательный
leadlead

без описания

Неизвестнонеобязательный
sizeoverridesizeoverride

The width for the entire table to try and reach, adjust if the title is too big for the table. Number column will try to take up 30% of the table

По умолчанию
200
Неизвестнонеобязательный
colorcolor

Color override in HTML (#______), leave blank for light blue,

Неизвестнонеобязательный
tabletitletabletitle

The title override. If blank, falls back to job or reads Skills if both are blank

Неизвестнонеобязательный

This is a template for use with skills on the TGMC marine pages. Getting skills is sort of dependent on code diving.

  • Size override should be left over 200 for most pages.
  • Colors look best relatively light as it also translates properly into dark mode.

Example usage:

{{TGMC-Skills
|color=#Cbb7f3
|sizeoverride=225
|job=Spatial Agent
|tabletitle=Spatial
|premsg=The Spatial Agent skillset has maximum of every skill.
|cqc=5
|police=2
|melee=2
|medical=5
|surgery=5
|engineering=5
|construction=5
|firearms=2
|powerloader=4
|lead=4
|sg=2
}}

Returns:

Spatial Agent Skills[править код]

The Spatial Agent skillset has maximum of every skill.

Skills Information

Spatial Skills
Medical
5/5
Surgery
5/5
Engineering
5/5
Construction
5/5
Police
2/2
Powerloader
4/4
Leadership
4/4
CQC
5
Smartgun
2
Melee
2
Firearms
2