Шаблон:Item: различия между версиями
imported>BruhN0ne м (Перевёл морду) |
imported>BruhN0ne м (Не углядел за "Strategy") |
||
Строка 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|}}}|'''Можно найти в:''' {{{foundin}}}<br />|}}{{#if:{{{usedfor|}}}|'''Используется для:''' {{{usedfor}}}<br />|}}{{#if:{{{strategy|}}}|''' | {{#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" |
Версия от 00:12, 6 августа 2021
Файл:NPA.png |
|
Usage
This template is intended to help list item descriptions in a consistent fashion across articles.
With no parameters
{{Item}}
Файл:NPA.png |
|
With minimal parameters
The bare minimum is with the name
parameter:
{{Item | name = Test Item | bgcolor1 = #FFEE88 | bgcolor2 = #FFDD66 | image = Red Toolbox.png }}
Test Item | ||
---|---|---|
|
Typical item
If the description
parameter is set, this template will show:
{{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. }}
Container items
If the contents
parameter is set, this template will show:
{{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. }}