Шаблон:Item: различия между версиями
Перейти к навигации
Перейти к поиску
(Новая страница: «{| style="border: 1px solid {{{bgcolor2|#bbbbbb}}}; margin: 1em 0em;" {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}{{{description|}}}{{{contents|}}}|width="10...») |
BruhN0ne (обсуждение | вклад) (Перевод шаблона Item.) |
||
(не показаны 3 промежуточные версии 2 участников) | |||
Строка 3: | Строка 3: | ||
{{!}}-|}} | {{!}}-|}} | ||
| style="background-color: {{{bgcolor1|#cccccc}}};" align="center" width="150" {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}||colspan=2}} | [[File:{{{image|{{{name|NPA}}}.png}}}|64px]] | | style="background-color: {{{bgcolor1|#cccccc}}};" align="center" width="150" {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}||colspan=2}} | [[File:{{{image|{{{name|NPA}}}.png}}}|64px]] | ||
− | {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}|{{!}} valign="top" {{!}} {{#if:{{{foundin|}}}|''' | + | {{#if:{{{foundin|}}}{{{usedfor|}}}{{{strategy|}}}|{{!}} valign="top" {{!}} {{#if:{{{foundin|}}}|'''Можно найти в:''' {{{foundin}}}<br />|}}{{#if:{{{usedfor|}}}|'''Используется для:''' {{{usedfor}}}<br />|}}{{#if:{{{strategy|}}}|'''Стратегия:''' {{{strategy}}}<br />|}} |
|{{!}} style="padding: 0;" {{!}}}} | |{{!}} style="padding: 0;" {{!}}}} | ||
{{#if:{{{description|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center" | {{#if:{{{description|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center" | ||
− | {{!}} colspan="2" {{!}} ''' | + | {{!}} colspan="2" {{!}} '''Описание''' |
{{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top" | {{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top" | ||
{{!}} colspan="2" {{!}} | {{!}} colspan="2" {{!}} | ||
{{{description}}}|}} | {{{description}}}|}} | ||
{{#if:{{{contents|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center" | {{#if:{{{contents|}}}|{{!}}- style="background-color: {{{bgcolor2|#bbbbbb}}};" align="center" | ||
− | {{!}} colspan="2" {{!}} ''' | + | {{!}} colspan="2" {{!}} '''Содержит''' |
{{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top" | {{!}}- style="background-color: {{{bgcolor1|#cccccc}}};" valign="top" | ||
{{!}} colspan="2" {{!}} | {{!}} colspan="2" {{!}} | ||
Строка 17: | Строка 17: | ||
|}<noinclude> | |}<noinclude> | ||
− | == | + | == Использование == |
− | + | Этот шаблон предназначен для последовательного отображения предметов в разных статьях. | |
− | === | + | === Без параметров === |
<nowiki>{{Item}}</nowiki> | <nowiki>{{Item}}</nowiki> | ||
{{Item}} | {{Item}} | ||
− | === | + | === С минимальными параметрами === |
− | + | Минимум - это <code>name</code> параметр: | |
<nowiki>{{Item</nowiki> | <nowiki>{{Item</nowiki> | ||
Строка 42: | Строка 42: | ||
}} | }} | ||
− | === | + | === Обычный вид === |
− | + | Если задан параметр <code>description</code>, шаблон покажет: | |
<nowiki>{{Item</nowiki> | <nowiki>{{Item</nowiki> | ||
Строка 69: | Строка 69: | ||
}} | }} | ||
− | === | + | === С содержанием контейнера === |
− | + | Если задан параметр <code>contents</code>, шаблон покажет: | |
<nowiki>{{Item</nowiki> | <nowiki>{{Item</nowiki> | ||
Строка 98: | Строка 98: | ||
}} | }} | ||
− | [[Category: | + | [[Category:Шаблоны]] |
</noinclude> | </noinclude> |
Текущая версия на 00:20, 6 августа 2021
64px |
|
Содержание
Использование
Этот шаблон предназначен для последовательного отображения предметов в разных статьях.
Без параметров
{{Item}}
64px |
|
С минимальными параметрами
Минимум - это name
параметр:
{{Item | name = Test Item | bgcolor1 = #FFEE88 | bgcolor2 = #FFDD66 | image = Red Toolbox.png }}
Test Item | ||
---|---|---|
|
Обычный вид
Если задан параметр description
, шаблон покажет:
{{Item | bgcolor1 = #FFEE88 | bgcolor2 = #FFDD66 | name = Emergency Toolbox | image = Red Toolbox.png | foundin = emergency lockers and storage areas | usedfor = Contains tools which are useful in emergencies | strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar. | description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency. Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes. }}
С содержанием контейнера
Если задан параметр contents
, шаблон покажет:
{{Item | bgcolor1 = #FFEE88 | bgcolor2 = #FFDD66 | name = Emergency Toolbox | image = Red Toolbox.png | foundin = Emergency lockers and storage areas. | usedfor = Contains tools which are useful in emergencies. | strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful, as well as a crowbar. | contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]] [[File:Crowbar.png|link=Crowbar]][[File:Analyzer.png]] [[File:Wirecutters.png|link=Wirecutters]] | description = The toolbox contains a flashlight, a crowbar, a radio and a fire extinguisher. All of which are very useful not only when emergencies hit but also when trying to cause an emergency. Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes. }}