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

imported>Neocloudy
(Changes for size, and add some descriptions)
imported>NyoomVoyager
мНет описания правки
 
(не показаны 4 промежуточные версии 2 участников)
Строка 1: Строка 1:
=={{{job|}}} Skills==
<div>
{{{premsg|}}}
{| class="wikitable"style="float:right; margin-left:10px"
 
|+ [[TGMC:Skills|More information about skills]]
[[TGMC:Skills|Skills Information]]
| colspan="2" width={{{sizeoverride|200}}} style="background-color:{{{color|#90c9de}}}"; |<center>'''{{{tabletitle|{{{job|}}}|}}} Skills'''</center>
{| class="wikitable"
| colspan="2" width={{{sizeoverride|200}}} style="background-color:{{{color|#90c9de}}}; |<center>'''{{{tabletitle|{{{job|}}}|}}} Skillset'''</center>
|-
|-
|<center>Medical</center>
|<center>Medical</center>
| width="30%" |<center>{{{medical|0}}}/5</center>
| width="40%" |<center>{{{medical|0}}}/5</center>
|-
|-
|<center>Surgery</center>
|<center>Surgery</center>
Строка 17: Строка 15:
|<center>Construction</center>
|<center>Construction</center>
|<center>{{{construction|0}}}/5</center>
|<center>{{{construction|0}}}/5</center>
|-
|<center>CQC</center>
|<center>{{{cqc|0}}}/5</center>
|-
|-
|<center>Police</center>
|<center>Police</center>
Строка 29: Строка 24:
|<center>Leadership</center>
|<center>Leadership</center>
|<center>{{{lead|0}}}/4</center>
|<center>{{{lead|0}}}/4</center>
|-
|<center>CQC</center>
|<center>{{{cqc|0}}}</center>
|-
|-
|<center>Smartgun</center>
|<center>Smartgun</center>
Строка 38: Строка 36:
|<center>Firearms</center>
|<center>Firearms</center>
|<center>{{{firearms|0}}}</center>
|<center>{{{firearms|0}}}</center>
|-
|<center>Stamina</center>
|<center>{{{stamina|0}}}</center>
|-
|}
|}
<noinclude>
<noinclude>
</div>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"job": {
"job": {
"description": "The job title, leave blank and the header and tabletitle [if applicable] will read \"Skills\" and \"Skillset\"",
"description": "The job title, leave blank for heading and table title [if also left blank] to default to Skills",
"required": true
"required": true
},
},
Строка 53: Строка 56:
"cqc": {},
"cqc": {},
"melee": {},
"melee": {},
"stamina": {},
"surgery": {},
"surgery": {},
"medical": {},
"medical": {},
Строка 62: Строка 66:
"lead": {},
"lead": {},
"sizeoverride": {
"sizeoverride": {
"description": "The width for the entire table to try and reach, adjust if the title is too big for the table",
"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"
"default": "200"
},
},
"color": {
"color": {
"description": "Color override, leave blank for light blue"
"description": "Color override in HTML (#______), leave blank for light blue,"
},
},
"tabletitle": {
"tabletitle": {
"description": "The title override, leave blank to use the regular title"
"description": "The title override. If blank, falls back to job or reads Skills if both are blank"
},
        "format": {
"description": "The type of text for the title, defaults to == if blank"
}
}
},
},
Строка 75: Строка 82:
}
}
</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. Example usage:
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
|color=#90dec4
|color=#Cbb7f3
|sizeoverride=250
|sizeoverride=225
|job=Early Synthetic Differences &
|job=Spatial Agent
|tabletitle=Early Synthetic
|tabletitle=Spatial
|premsg=Real
|format====
|cqc=0
|premsg=The Spatial Agent skillset has maximum of every skill.
|police=0
|cqc=5
|melee=0
|police=2
|medical=0
|melee=2
|surgery=0
|stamina=5
|engineering=0
|medical=5
|construction=0
|surgery=5
|firearms=0
|engineering=5
|powerloader=0
|construction=5
|lead=0
|firearms=2
|sg
|powerloader=4
|lead=4
|sg=2
}}
}}
</pre>
</pre>
Returns:
Returns:
{{Template:TGMC-Skills
{{TGMC-Skills
|color=#90dec4
|color=#Cbb7f3
|sizeoverride=250
|sizeoverride=225
|job=Early Synthetic Differences &
|job=Spatial Agent
|tabletitle=Early Synthetic
|tabletitle=Spatial
|premsg=Real
|format====
|cqc=0
|premsg=The Spatial Agent skillset has maximum of every skill.
|police=0
|cqc=5
|melee=0
|police=2
|medical=0
|melee=2
|surgery=0
|stamina=5
|engineering=0
|medical=5
|construction=0
|surgery=5
|firearms=0
|engineering=5
|powerloader=0
|construction=5
|lead=0
|firearms=2
|sg
|powerloader=4
|lead=4
|sg=2
}}
}}
</noinclude>
</noinclude>

Текущая версия от 16:31, 23 марта 2024

More information about skills
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
Stamina
0

<templatedata> { "params": { "job": { "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" }, "police": {}, "cqc": {}, "melee": {}, "stamina": {}, "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. 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" },

       "format": {

"description": "The type of text for the title, defaults to == if blank" } }, "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.

  • 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
|format====
|premsg=The Spatial Agent skillset has maximum of every skill.
|cqc=5
|police=2
|melee=2
|stamina=5
|medical=5
|surgery=5
|engineering=5
|construction=5
|firearms=2
|powerloader=4
|lead=4
|sg=2
}}

Returns:

More information about skills
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
Stamina
5