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

Материал из DarkStation Wiki
https://wiki.ss220.space>Rerik
м (Пример использования и переменные шаблона)
https://wiki.ss220.space>Gevron
м (Документация нахер)
Строка 1: Строка 1:
<noinclude>This is the page that controls species templates. Please don't edit this template unless you know what you're doing.
It is designed with single line input in mind and double-lined input will stylistically impact the template and mess up all the spacing.
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;">
<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: #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>
Строка 62: Строка 40:
{{!}}-}}
{{!}}-}}
|}
|}
</div></div></div></includeonly>
</div></div></div></includeonly><noinclude>
{{/док}}</noinclude>

Версия от 12:24, 13 апреля 2023