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

imported>TankNut
(Shouldn't break anything and hopefully fix the horrible scaling issues with the item template)
(Перевод)
 
(не показано 7 промежуточных версий 2 участников)
Строка 1: Строка 1:
<includeonly>{| style="border:1px solid {{{bgcolor2|#bbbbbb}}};" cellpadding="0" cellspacing="0"
<div class="item-template" style="width:50%; background-color: {{ColorPalette|{{{bgcolor}}}|Transparent}}; border:1px solid {{ColorPalette|{{{bgcolor}}}|Light}};">
|
<div class="tgui-blur"></div>
{|width="100%" cellspacing="0" cellpadding="2"
<div class="item-template-item">
|align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{#if:{{{OverrideImage|}}}|{{{image|}}}|[[File:{{{image|{{{name|Unknown}}}.png}}}{{!}}64px{{!}}{{{name|Item}}}]]}}<br>'''{{{name|Item}}}'''
<div style="align-content: center; padding: 0.5em; background-color:{{ColorPalette|{{{bgcolor}}}|Light}}; border-right: 1px solid {{ColorPalette|{{{bgcolor}}}|Opaque}}; width: 150px; text-align: center;">{{#if:{{{OverrideImage|}}}|{{{image|}}}|[[File:{{{image|{{{name|Unknown}}}.png}}}{{!}}64px{{!}}{{{name|Item}}}]]}}<br>'''{{{name|Item}}}'''</div>
|'''Found in: '''{{{foundin|Undefined}}}<br>'''Used for:''' {{{usedfor|Undefined}}}<br>
<div style="flex: 1; align-content: center; padding: 0 0.75em;">'''Местонахождение: '''{{{foundin|Undefined}}}<br>'''Используется для:''' {{{usedfor|Undefined}}}</div></div>
|}
<div><div style="padding: 0.25em 0.5em; background-color:{{ColorPalette|{{{bgcolor}}}|Primary}}; border-width: 1px 0; border-style: solid; border-color: {{ColorPalette|{{{bgcolor}}}|Opaque}};>'''Описание'''</div>
{|width="100%" cellspacing="0" cellpadding="2"
<div class="item-template-desc">{{#if:{{{description|}}}|{{{description}}}|No description}}</div></div></div>
| style="background-color:{{{bgcolor2|#bbbbbb}}};" |'''Description'''
|-
|{{#if:{{{description|}}}|{{{description}}}|No description}}
|}
|}</includeonly><noinclude>


<noinclude>
== DO NOT USE THIS TEMPLATE ==
== DO NOT USE THIS TEMPLATE ==
Use [[:Template:Item]] instead, this template is automatically called when an item has Found in and Used For set
Use [[:Template:Item]] instead, this template is automatically called when an item has Found in and Used For set
{{ItemUsedFor
{{ItemUsedFor
  |name=Test Item
  |name=Test Item
  |bgcolor1 = #FFEE88
  |bgcolor = Engineering
|bgcolor2 = #FFDD66
  |image = Redtoolbox.png
  |image = Redtoolbox.png
  |foundin = emergency lockers and storage areas
  |foundin = emergency lockers and storage areas
  |usedfor = Contains tools which are useful in emergencies
  |usedfor = Contains tools which are useful in emergencies
  |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.<br><br>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
  |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.
  }}
  }}
 
[[Category:Templates]]
</noinclude>
</noinclude>
[[Category:Templates]]

Текущая версия от 06:44, 23 июля 2024

Item
Item
Местонахождение: Undefined
Используется для: Undefined
Описание
No description


DO NOT USE THIS TEMPLATE

Use Template:Item instead, this template is automatically called when an item has Found in and Used For set

Test Item
Test Item
Местонахождение: emergency lockers and storage areas
Используется для: Contains tools which are useful in emergencies
Описание
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.