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

Материал из DarkStation Wiki
https://wiki.ss220.space>Rerik
м (Пример использования и переменные шаблона)
м (12 версий импортировано: импорт)
 
(не показаны 4 промежуточные версии 1 участника)
Строка 1: Строка 1:
<noinclude>This is the page that controls species templates. Please don't edit this template unless you know what you're doing.
<includeonly>
 
{|class="infobox race-summary" style="box-shadow: 0 0 .3em #999;border-radius: .2em; margin: 0 0 1.3em 1.4em;width: 18em; float: right;"
It is designed with single line input in mind and double-lined input will stylistically impact the template and mess up all the spacing.
! colspan="2" class="header-big" style="background: #AC9BDB; border-radius: .2em; color: #FFF; padding: .4em; font-size: 1.2em;"|<span style="float:left;">[[file:Goldpin.png|24px|link=]]</span>{{{name|{{{назв|{{PAGENAME}}}}}}}}<span style="float:right;">[[file:Goldpin.png|24px|link=]]</span>
 
tl;dr don't write long strings that break onto multiple lines due to width restrictions. Thanks. -Shadeykins
 
P.S.
Переменные:
<table>
<tr align=left><th>|name=</th><td>Имя расы</td></tr>
<tr align=left><th>|image=</th><td>Иконка расы</td></tr>
<tr align=left><th>|homeworld=</th><td>Родной мир</td></tr>
<tr align=left><th>|language=</th><td>Язык</td></tr>
<tr align=left><th>|system=</th><td>Система</td></tr>
<tr align=left><th>|height=</th><td>Рост</td></tr>
<tr align=left><th>|weight=</th><td>Вес</td></tr>
<tr align=left><th>|lifespan=</th><td>Время жизни</td></tr>
<tr align=left><th>|breathes=</th><td>Дыхание</td></tr>
</table>
Пример:<pre>{{SpeciesInfo| name      = Бургеры| image      = Burger.png| homeworld  = Бургогес| system    = Икар| language  = Их| height    = 123| weight = 122| lifespan  = 5 лет| breathes  = Всё}}</pre> Даст:
{{SpeciesInfo| name      = Бургеры| image      = Burger.png| homeworld  = Бургогес| system    = Икар| language  = Их| height    = 123| weight = 122| lifespan  = 5 лет| breathes  = Всё}}
</noinclude>
<includeonly><div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 0 0 0.5em 0; padding: 1px; width: 18em; margin-left: 1.4em; margin-bottom: 0.5em; float: right;">
<div style="background: #AC9BDB; border-radius: .2em; color: #FFF; padding: .4em .4em .4em; font-size: 1.2em;"><center>[[file:Goldpin.png|left|24px|link=]]'''{{{name}}}'''[[file:Goldpin.png|right|24px|link=]]</center></div>
<div style="background: white;">
 
<div style="padding: 0.2em 0 0.2em 0;">
<center>[[File:{{{image}}}]]</center>
</div>
 
<div style="background: #AC9BDB; border-radius: .2em; color: #FFF;"><center>'''Основная информация'''</center></div>
<div style="padding: 0 0.3em; line-height:1.8em; font-size: .9em;">
 
{|
|'''Родной мир:'''
| {{{homeworld}}}
|-
|-
|'''Язык:'''
! colspan="2"|[[File:{{{image|{{{изобр|{{{name|{{{назв|{{PAGENAME}}}}}}}}.png}}}}}}]]
| {{{language}}}
|-
|-
|'''Система:'''
!colspan="2" class="header-small" style="background: #AC9BDB; border-radius: .2em; color: #FFF;"| Основная информация
| {{{system}}}
|}
 
</div>
 
<div style="background: #AC9BDB; border-radius: .2em; color: #FFF;"><center>'''Физиология'''</center></div>
<div style="padding: 0 0.3em; line-height:1.8em; font-size: .9em;">
 
{|
| style="width: 8em;" | '''Рост:'''
| {{{height}}}
|-
|-
{{#if:{{{weight|}}}|{{!}}'''Вес:'''
! style="padding: 0em 0.3em; font-size: .9em; text-align:left; width:50%"| Родной мир
{{!}} {{{weight}}}
| {{{homeworld|{{{родной мир}}}}}}
|-
! style="padding: 0em 0.3em; font-size: .9em; text-align:left;"| Язык
| {{{language|{{{язык}}}}}}
|-
! style="padding: 0em 0.3em; font-size: .9em; text-align:left;"| Система
| {{{system|{{{система}}}}}}
|-
!colspan="2" class="header-small" style="background: #AC9BDB; border-radius: .2em; color: #FFF;"| Основная информация
|-
! style="padding: 0em 0.3em; font-size: .9em; text-align:left;"| Средний рост
| {{{height|{{{рост}}}}}}
|-
{{#if:{{{weight|{{{вес|}}}}}}|! style{{=}}"padding: 0em 0.3em; font-size: .9em; text-align:left;" {{!}} Средний вес
{{!}} {{{weight|{{{вес}}}}}}
{{!}}-}}
{{#if:{{{lifespan|{{{срок жизни|}}}}}}|! style{{=}}"padding: 0em 0.3em; font-size: .9em; text-align:left;" {{!}} Время жизни
{{!}} {{{lifespan|{{{срок жизни}}}}}}
{{!}}-}}
{{#if:{{{breathes|{{{дыхание|}}}}}}|! style{{=}}"padding: 0em 0.3em; font-size: .9em; text-align:left;" {{!}} Дыхание
{{!}} {{{breathes|{{{дыхание}}}}}}
{{!}}-}}
{{#if:{{{features|}}}{{{boons|}}}{{{maluses|}}}{{{особенности|}}}{{{плюсы|}}}{{{минусы|}}}|! colspan{{=}}"2" class{{=}}"header-big" style{{=}}"background: #606D89; border-radius: .2em; color: #FFF; padding: .4em; font-size: 1.2em;"{{!}}Игровые Механики
{{!}}-
{{!}}colspan{{=}}"2" style{{=}}"padding: 0.4em 0.3em; line-height:1.8em; font-size: .9em;"{{!}}
{{{features|{{{особенности}}}}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{lifespan|}}}|{{!}}'''Время жизни:'''
{{#if:{{{boons|{{{плюсы|}}}}}}|!colspan{{=}}"2" class{{=}}"header-small" style{{=}}"background: #48B584; border-radius: .2em; color: #FFF;"{{!}} Плюсы
{{!}} {{{lifespan}}}
{{!}}-
{{!}}colspan{{=}}"2" style{{=}}"padding: 0.4em 0.3em; line-height:1.8em; font-size: .9em;"{{!}}
{{{boons|{{{плюсы}}}}}}
{{!}}-}}
{{!}}-}}
{{#if:{{{breathes|}}}|{{!}}'''Дыхание:'''
{{#if:{{{maluses|{{{минусы|}}}}}}|!colspan{{=}}"2" class{{=}}"header-small" style{{=}}"background: #A54747; border-radius: .2em; color: #FFF;"{{!}} Минусы
{{!}} {{{breathes}}}
{{!}}-
{{!}}colspan{{=}}"2" style{{=}}"padding: 0.4em 0.3em; line-height:1.8em; font-size: .9em;"{{!}}
{{{maluses|{{{минусы}}}}}}
{{!}}-}}
{{!}}-}}
|}
|}</includeonly><noinclude>
</div></div></div></includeonly>
{{/док}}</noinclude>

Текущая версия от 19:33, 12 июля 2023