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

Материал из SS220
Перейти к навигации Перейти к поиску
imported>Rootoo
Нет описания правки
imported>Rootoo
(Converts backgrounds to transparent)
Строка 1: Строка 1:
<noinclude><code>
{|style="width:100%; cellspacing:0; cellpadding:2;"
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
|colspan=2 style=" background-color:rgba({{{headerbgcolor|0, 168, 103}}}); text-align:center; color:{{{headerfontcolor|white}}}; border-radius: 10px 10px 0 0;"|'''<span style="text-transform:uppercase;">{{{species|UNDEFINED}}}</span>'''
|bgcolor="{{{headerbgcolor|#00a867}}}" align="center" colspan=2|<font color="{{{headerfontcolor|white}}}">'''<span style="text-transform:uppercase;">{{{species|UNDEFINED}}}</span>'''</font>
|-
|-
|width = 150 align=center bgcolor="{{{imagebgcolor|#d6fced}}}"| [[File:{{{img}}}|{{{species}}}]] <br> '''{{{species|Species}}}'''
|style="width:150px; text-align:center; background-color:rgba({{{headerbgcolor|0, 168, 103}}},0.25); border-radius: 0 0 0 10px;"| [[File:{{{img}}}|{{{species}}}]] <br> '''{{{species|Species}}}'''
|'''Physical Characteristics:'''<br> {{#if: {{{height|}}} | - '''Height''': {{{height|}}}<br> | }}{{#if: {{{weight|}}} | - '''Weight''': {{{weight|}}}<br> | }}{{#if: {{{length|}}} | - '''Length''': {{{length|}}}<br> | }}{{#if: {{{lifespan|}}} | - '''Lifespan''': {{{lifespan|}}}<br> | }} '''Origin:'''<br> {{#if: {{{system|}}} | - '''System''': {{{system|}}}<br> | }}{{#if: {{{planet|}}} | - '''Planet''': {{{planet|}}}<br> | }} {{#if: {{{relatedlore|}}} |'''Related Lore''': {{{relatedlore|}}}| }}
|'''Physical Characteristics:'''<br> {{#if: {{{height|}}} | - '''Height''': {{{height|}}}<br> | }}{{#if: {{{weight|}}} | - '''Weight''': {{{weight|}}}<br> | }}{{#if: {{{length|}}} | - '''Length''': {{{length|}}}<br> | }}{{#if: {{{lifespan|}}} | - '''Lifespan''': {{{lifespan|}}}<br> | }} '''Origin:'''<br> {{#if: {{{system|}}} | - '''System''': {{{system|}}}<br> | }}{{#if: {{{planet|}}} | - '''Planet''': {{{planet|}}}<br> | }} {{#if: {{{relatedlore|}}} |'''Related Lore''': {{{relatedlore|}}}| }}
|}
|}
Строка 12: Строка 11:
== Meaning of parameters ==
== Meaning of parameters ==


'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color. By default, it is teal.<br>
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark, ideally high-saturation color. By default, it is teal. The same color is used at 25% opacity for the image background.<br>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
'''imagebgcolor''' is the background color of the space behind the image and the job title. this should be a light color as the job title is always dark. By default, it is light teal.<br>
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)<br>
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)<br>
'''species''' is the name of the species.<br>
'''species''' is the name of the species.<br>
Строка 28: Строка 26:
|headerbgcolor
|headerbgcolor
|headerfontcolor
|headerfontcolor
|imagebgcolor
|species = Skrell
|species = Skrell
|height = 5'10" to 6'2"
|height = 5'10" to 6'2"
Строка 34: Строка 31:
|system = Qerr'valis
|system = Qerr'valis
|planet = Qerr'Balak
|planet = Qerr'Balak
|relatedlore = [[Skrell Roleplay Guide]] ∙ [[Skrell Biology]] ∙ [[Skrell Castes]] ∙ [[Skrell Crime]] ∙ [[Skrell Culture]] ∙ [[Skrell Family and Education]] ∙ [[Skrell Language]] ∙ [[Skrell Military]] ∙ [[Skrell Politics and Economics]] ∙ Planets ([[Qerr'balak|Qerr'Balak]])
|relatedlore = [[Skrell Roleplay Guide]] ∙ [[Skrell Biology]] ∙ [[Skrell Castes]] ∙ [[Skrell Crime]] ∙ [[Skrell Culture]] ∙ [[Skrell Family and Education]] ∙ [[Skrell Language]] ∙ [[Skrell Military]] ∙ [[Skrell Politics and Economics]] ∙ Planets ([[Qerr'Balak]])
}}
}}


Строка 42: Строка 39:
|headerbgcolor
|headerbgcolor
|headerfontcolor
|headerfontcolor
|imagebgcolor
|species = Skrell
|species = Skrell
|img = skrell.png
|img = skrell.png
Строка 51: Строка 47:
|system = Qerr'valis
|system = Qerr'valis
|planet = Qerr'Balak
|planet = Qerr'Balak
|relatedlore = [[Skrell Roleplay Guide]] ∙ [[Skrell Biology]] ∙ [[Skrell Castes]] ∙ [[Skrell Crime]] ∙ [[Skrell Culture]] ∙ [[Skrell Family and Education]] ∙ [[Skrell Language]] ∙ [[Skrell Military]] ∙ [[Skrell Politics and Economics]] ∙ Planets ([[Qerr'balak|Qerr'Balak]])
|relatedlore = [[Skrell Roleplay Guide]] ∙ [[Skrell Biology]] ∙ [[Skrell Castes]] ∙ [[Skrell Crime]] ∙ [[Skrell Culture]] ∙ [[Skrell Family and Education]] ∙ [[Skrell Language]] ∙ [[Skrell Military]] ∙ [[Skrell Politics and Economics]] ∙ Planets ([[Qerr'Balak]])
}}
}}


<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]</noinclude>

Версия от 17:10, 2 мая 2023

UNDEFINED
[[File:{{{img}}}|{{{species}}}]]
Species
Physical Characteristics:
Origin:

This template is intended to be at the top of each of the species pages to provide a basic overview of each species.

Meaning of parameters

headerbgcolor is the background color of the upper part which spans the entire width of the screen. This should be a dark, ideally high-saturation color. By default, it is teal. The same color is used at 25% opacity for the image background.
headerfontcolor is the font color of the same part as headerbgcolor
img is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
species is the name of the species.
height, weight, length, lifespan, system, and planet are self-explanatory. All only display if a value is entered.
relatedlore is a list of any wiki pages related to the species, to be linked here. It only displays if a value is entered.

Usage

Example of the finished product. Check the source code for the code that generated the thing below. Please document any changes you make to the template code in the parameters and usage sections.

No image defined:

Skrell
[[File:{{{img}}}|Skrell]]
Skrell
Physical Characteristics:
- Height: 5'10" to 6'2"
- Weight: 75lbs to 180lbs
Origin:
- System: Qerr'valis
- Planet: Qerr'Balak
Related Lore: Skrell Roleplay GuideSkrell BiologySkrell CastesSkrell CrimeSkrell CultureSkrell Family and EducationSkrell LanguageSkrell MilitarySkrell Politics and Economics ∙ Planets (Qerr'Balak)


Image defined:

Skrell
Skrell
Skrell
Physical Characteristics:
- Height: 5'10" to 6'2"
- Weight: 75lbs to 180lbs
Origin:
- System: Qerr'valis
- Planet: Qerr'Balak
Related Lore: Skrell Roleplay GuideSkrell BiologySkrell CastesSkrell CrimeSkrell CultureSkrell Family and EducationSkrell LanguageSkrell MilitarySkrell Politics and Economics ∙ Planets (Qerr'Balak)