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

Материал из SS220 /tg/station13 (Space Station 13)
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
 
(не показано 118 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly>{{#if:{{{contents|}}}| {{Storage|name={{{name}}}|nameRU={{{nameRU}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|department={{{department}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}|contents={{{contents}}}}} | {{#if:{{{strategy|}}}| {{ItemMedium|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|strategy={{{strategy}}}|description={{{description}}}}} | {{#if:{{{usedfor|}}}| {{ItemUsedFor|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}|foundin={{{foundin}}}|usedfor={{{usedfor}}}|description={{{description}}}}} | {{#if:{{{name|}}}| {{Template:ItemSimple|name={{{name}}}|image={{{image}}}|OverrideImage={{{OverrideImage|}}}|bgcolor1={{{bgcolor1}}}|bgcolor2={{{bgcolor2}}}}} | <font color='red'>'''The item needs to have the name defined.'''</font> }} }} }} }}</includeonly><noinclude>
<includeonly>
{{#if:{{{department|}}}
|
{{#if:{{{foundin|}}}
|
<table style="border-style:outset; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{department}}}|Secondary}}; border-radius:.5em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}}" width=75% cellpadding="3" cellspacing="0">
<tr>
<td>
<table width="100%" cellspacing="0" cellpadding="2">
</td>
</tr>
<tr>
<td align=center rowspan="2" width="150" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Tertiary}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
{{#if:{{{OverrideImage|}}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>{{{image|}}}<br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}{{{image|}}}<br><b>{{{name|}}}</b>
}}
|
{{#if:{{{image|}}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{image|}}}{{!}}64px]]<br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}[[File:{{{image|}}}{{!}}64px]]<br><b>{{{name|}}}</b>
}}
|
{{#ifexist:File:{{{name|}}}.gif
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{name|}}}.gif{{!}}64px]]<br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}<br>[[File:{{{name|}}}.gif{{!}}64px]]<br><b>{{{name|}}}</b>
}}
|
{{#ifexist:File:{{{name|}}}.png
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{name|}}}.png{{!}}64px]]<br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}<br>[[File:{{{name|}}}.png{{!}}64px]]<br><b>{{{name|}}}</b>
}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}<b>{{{name|}}}</b>
}}
}}
}}
}}
}}
</td>
{{#if:{{{usedfor|}}}  
|  
{{#if:{{{strategy|}}}
|
<td rowspan="2" style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
<b>Местонахождение:</b> {{{foundin|Значение ''foundin'' не задано}}}<br><b>Используется для:</b> {{{usedfor|}}}<br><b>Стратегия сражения:</b> {{{strategy|}}}
</td>
|
<td rowspan="2" style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
<b>Местонахождение:</b> {{{foundin|Значение ''foundin'' не задано}}}<br><b>Используется для:</b> {{{usedfor|}}}
</td>
}}
|
{{#if:{{{strategy|}}}
|
<td rowspan="2" style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
<b>Местонахождение:</b> {{{foundin|Значение ''foundin'' не задано}}}<br><b>Стратегия сражения:</b> {{{strategy|}}}
</td>
|
<td rowspan="2" style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
<b>Местонахождение:</b> {{{foundin|Значение ''foundin'' не задано}}}
</td>
}}
}}
{{#if:{{{description|}}}
|
{{#if:{{{contents|}}}
|
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td align=center style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
'''Содержит'''
</td>
<td align=center colspan="3" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
'''Описание'''
</td>
</tr>
<tr>
<td valign=top align=center width="150" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Tertiary}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
{{{contents|}}}
</td>
<td valign=top align=left style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 0 0 .3em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
{{{description|}}}
</td>
</tr>
|
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td align=center colspan="3" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
'''Описание'''
</td>
</tr>
<tr>
<td valign=top colspan="3" align=left style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 0 0 .3em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
{{{description|}}}
</td>
</tr>
}}
|
{{#if:{{{contents|}}}
|
<td align=center width="150" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
'''Содержит'''
</td>
</tr>
<tr>
<td valign=top align=center width="150" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Tertiary}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
{{{contents|}}}
</td>
</tr>
|
</tr>
}}
}}
</table>
</table>
|
<table style="border-style:outset; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{department}}}|Secondary}}; border-radius:.5em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};"
{{#if:{{{description|}}}
|
width="45%"
}}
cellpadding="3" cellspacing="0">
<tr>
<td>
<table width="100%" cellspacing="0" cellpadding="2">
</td>
</tr>
<tr>
<td rowspan="2" align=center width="125" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Tertiary}}; border-radius: .2em; margin: 1em 0 0 1em; padding: 1px;">
{{#if:{{{OverrideImage|}}}
|
{{#if:{{{name|}}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>{{{image|}}}<br><b>{{{name|}}}</b>
</td>
|
{{anchor|{{{name|}}}}}{{{image|}}}<br><b>{{{name|}}}</b>
</td>
}}
|
{{{image|}}}
</td>
}}
|
{{#if:{{{image|}}}
|
{{#if:{{{name|}}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{image|}}}{{!}}64px]]<br><b>{{{name|}}}</b>
</td>
|
{{anchor|{{{name|}}}}}[[File:{{{image|}}}{{!}}64px]]<br><b>{{{name|}}}</b>
</td>
}}
|
[[File:{{{image|}}}{{!}}64px]]
</td>
}}
|
{{#ifexist:File:{{{name|}}}.gif
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{name|}}}.gif{{!}}64px]]<br><b>{{{name|}}}</b>
|
{{anchor|{{{name|}}}}}[[File:{{{name|}}}.gif{{!}}64px]]<br><b>{{{name|}}}</b>
}}
|
{{#ifexist:File:{{{name|}}}.png
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br>[[File:{{{name|}}}.png{{!}}64px]]<br><b>{{{name|}}}</b>
</td>
|
{{anchor|{{{name|}}}}}[[File:{{{name|}}}.png{{!}}64px]]<br><b>{{{name|}}}</b>
</td>
}}
|
{{#if:{{{nameRU|}}}
|
{{anchor|{{{name|}}}}}<b>{{{nameRU|}}}</b><br><b>{{{name|}}}</b>
</td>
|
{{anchor|{{{name|}}}}}<b>{{{name|}}}</b>
</td>
}}
}}
}}
}}
}}
{{#if:{{{description|}}}
|
{{#if:{{{contents|}}}
|
<td width="350" align=center style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 .3em 0 .3em; border-radius: .4em .2em .2em .4em;">
'''Описание'''
</td>
<td align=center style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
'''Содержит'''
</td>
</tr>
<tr>
<td valign=top align=left style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 0 0 .3em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
{{{description|}}}
</td>
<td valign=top align=center width="150" style="background-color:#{{ColorPalette‎‎|{{{department}}}|Tertiary}}; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
{{{contents|}}}
</td>
</tr>
|
<td width="350" align=center style="background-color:#{{ColorPalette‎‎|{{{department}}}|Primary}}; color:#{{ColorPalette‎‎|{{{department}}}|Header Text}}; border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 0 0 .3em; border-radius: .4em .2em .2em .4em;">
'''Описание'''
</td>
</tr>
<tr>
<td valign=top align=left style="border-style: solid; border-color:#{{ColorPalette‎‎|{{{department}}}|Very Light}}; border-width: 0 0 0 .3em; background:#{{ColorPalette‎‎|{{{department}}}|Very Light}};">
{{{description|}}}
</td>
</tr>
}}
}}
</tr>
</table>
</table>
}}
|
<font color='red'>
<hr>
'''Для создания таблицы нужно задать значение department='''
<hr>
</font>  
}}
</includeonly><noinclude>


= How to use =
= Подсказки и примеры использования =


template intended for lists of objects to clean them up a bit.
Шаблон предназначен для предметов


== With no parameters ==
== Пустой шаблон ==
 
  <nowiki>{{Item}}</nowiki>


{{Item}}
{{Item}}


== With minimum parameters ==
<table>
<tr align=left><th>|department=</th><td>Определяет цвет таблицы. С полным списком цветов можно ознакомиться тут: [[ColorPalette]]</td></tr>
<tr align=left><th>|image=</th><td>Определяет наличие картинки в таблице. Картинка всегда будет в разрешении 64пкс (пикселя). Если <b>|name =</b> является точным названием изображения, например <b>Wrench</b>, то таблица сама найдет соответствующее изображение, т.е. File:<b>Wrench</b>.png.</td></tr>
<tr align=left><th>|OverrideImage=</th><td>При любом значении после <b>=</b>, <b>|image=</b> будет отображаться в стандартной mediawiki форме. Полезно, если вы хотите использовать несколько изображений.</td></tr>
<tr align=left><th>|name=</th><td>Английское название предмета. Если значение пустое, то будет показано только изображение. Является якорем для страницы. Если отсутствует <b>|image=</b> то будет искать на вики изображения с названием <b>name</b>.png и <b>name</b>.gif.</td></tr>
<tr align=left><th>|nameRU=</th><td>Русское название предмета. Если значение пустое, то будет отображаться только английское. Если есть <b>|nameRU=</b> то наличие <b>|name=</b> обязательно.</td></tr>
<tr align=left><th>|foundin=</th><td>Место или устройство в котором или из которого можно получить предмет.</td></tr>
<tr align=left><th>|usedfor=</th><td>Опционально. Для какой <b>стандартной</b> цели используется предмет.</td></tr>
<tr align=left><th>|strategy=</th><td>Опционально. Как с этим предметом воевать.</td></tr>
<tr align=left><th>|contents=</th><td>Опционально. Содержимое предмета при спавне в нормальных условиях или, если содержимое меняется, то выбор меняйте на самое часто встречаемое.</td></tr>
<tr align=left><th>|description=</th><td>Описание, лол.</td></tr>
</table>


The bare minimum is the name parameter.
== Необходимый минимум для работы ==


  <nowiki>{{Item</nowiki>
{{Item
  <nowiki>|name=Test Item</nowiki>
|department=Security
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
}}
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
 
  <nowiki>|image = Redtoolbox.png</nowiki>
=== Поиск изображения по английскому названию ===
  <nowiki>}}</nowiki>


{{Item
{{Item
|name=Test Item
|department=Security
|bgcolor1 = #FFEE88
|name=Wrench
|bgcolor2 = #FFDD66
|image = Redtoolbox.png
}}
}}


== Normal item ==
=== Полный набор, помещаемый в один блок ===


If the description is set, this template will show:
{{Item
|department=Security
|nameRU=Красный ящик для инструментов
|image=Redtoolbox.png
|name=Red Toolbox
}}


  <nowiki>{{Item</nowiki>
==== Тоже самое, но |OverrideImage ====
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
  <nowiki>|name = Emergency Toolbox</nowiki>
  <nowiki>|image = Redtoolbox.png</nowiki>
  <nowiki>|foundin = emergency lockers and storage areas</nowiki>
  <nowiki>|usedfor = Contains tools which are useful in emergencies</nowiki>
  <nowiki>|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.</nowiki>
  <nowiki>|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.</nowiki>
 
  <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
  <nowiki>}}</nowiki>


{{Item
{{Item
|bgcolor1 = #FFEE88
|department=Security
|bgcolor2 = #FFDD66
|OverrideImage=1
|name = Emergency Toolbox
|nameRU=Красный ящик для инструментов
|image = Redtoolbox.png
|image=Redtoolbox.png
|foundin = emergency lockers and storage areas
|name=Red Toolbox
|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.
==== Добавление описания ====
 
{{Item
|department=Security
|nameRU=Красный ящик для инструментов
|image=Redtoolbox.png
|name=Red Toolbox
|description=Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.
}}
}}


==Strategy-less items==
===== Добавление содержимого =====


If there is no strategy variable but there are foundin and used for, this template will show:
{{Item
|department=Security
|nameRU=Красный ящик для инструментов
|image=Redtoolbox.png
|name=Red Toolbox
|description=Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.
|contents=[[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]
}}


  <nowiki>{{Item</nowiki>
==== Добавление информации (обязательно наличие |foundin)  ====
  <nowiki>|bgcolor1 = #FFEE88</nowiki>
  <nowiki>|bgcolor2 = #FFDD66</nowiki>
  <nowiki>|name = Emergency Toolbox</nowiki>
  <nowiki>|image = Redtoolbox.png</nowiki>
  <nowiki>|foundin = emergency lockers and storage areas</nowiki>
  <nowiki>|usedfor = Contains tools which are useful in emergencies</nowiki>
  <nowiki>|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.</nowiki>
 
  <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
  <nowiki>}}</nowiki>


{{Item
{{Item
|name=Test Item
|department=Security
|bgcolor1 = #FFEE88
|nameRU=Красный ящик для инструментов
|bgcolor2 = #FFDD66
|image=Redtoolbox.png
|image = Redtoolbox.png
|name=Red Toolbox
|foundin = emergency lockers and storage areas
|foundin=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|usedfor = Contains tools which are useful in emergencies
|usedfor=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|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.
|strategy=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.
}}
}}
== Container items ==
 
If the contents variable is set, this template will show:


  <nowiki>{{Item</nowiki>
===== Добавление описания =====  
  <nowiki>|department = Engineering</nowiki>
  <nowiki>|nameRU  = Аварийный ящик для инструментов</nowiki>
  <nowiki>|name    = Emergency Toolbox</nowiki>
  <nowiki>|image    = Redtoolbox.png</nowiki>
  <nowiki>|foundin  = emergency lockers and storage areas</nowiki>
  <nowiki>|usedfor  = Contains tools which are useful in emergencies</nowiki>
  <nowiki>|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.</nowiki>
  <nowiki>|contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]]<br> [[File:Crowbar.png|link=Crowbar]]  <nowiki>[[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]] </nowiki>
  <nowiki>|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  <nowiki>trying to cause an emergency.</nowiki>
 
  <nowiki>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.</nowiki>
  <nowiki>}}</nowiki>


{{Item
{{Item
|department = Engineering
|department=Security
|nameRU   = Аварийный ящик для инструментов
|nameRU=Красный ящик для инструментов
|name    = Emergency Toolbox
|image=Redtoolbox.png
|image   = Redtoolbox.png
|name=Red Toolbox
|foundin  = emergency lockers and storage areas
|foundin=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|usedfor  = Contains tools which are useful in emergencies
|usedfor=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|strategy = It is very heavy, useful for the beating up of people. Contains a flashlight which is very useful as well as a crowbar.
|strategy=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.
|contents = [[File:Screwdriver tool.png|link=Screwdriver]] [[File:Wrench.png|link=Wrench]] [[File:Welder.png|link=Welding Tool]]<br> [[File:Crowbar.png|link=Crowbar]] [[File:Analyzer.png|link=Analyzer]] [[File:Wirecutters.png|link=Wirecutters]]
|description=Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.
|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]]
==Override Image==
If an image is bigger than 50px they will <s>break</s> not break anymore, since this is a more awesome wiki, but they will look very small, as shown below.<br>
Setting "OverrideImage=true" will disable the default image code so you can add your own.<br>
The default image code is:<br>
<nowiki>[[File:{{{image|{{{name|Unknown}}}.png}}}|px50|{{{name|Item}}}]]</nowiki>


For better understanding see these two examples:
====== Добавление содержимого ======


'''Without setting "OverrideImage":'''
<nowiki>{{Item</nowiki>
<nowiki>|bgcolor1 = #cce6ff</nowiki>
<nowiki>|bgcolor2 = #99ccff</nowiki>
<nowiki>|name = Particle Accelerator</nowiki>
<nowiki>|image = ParticleAccelerator.gif</nowiki>
<nowiki>}}</nowiki>
{{Item
{{Item
|bgcolor1 = #cce6ff
|department=Security
|bgcolor2 = #99ccff
|nameRU=Красный ящик для инструментов
|name = Particle Accelerator
|image=Redtoolbox.png
|image = ParticleAccelerator.gif
|name=Red Toolbox
|foundin=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|usedfor=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|strategy=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.
|description=Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.
|contents=[[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]
}}
}}


====== Без описания, но с содержимым ======


'''With setting "OverrideImage":'''
<nowiki>{{Item</nowiki>
<nowiki>|bgcolor1 = #cce6ff</nowiki>
<nowiki>|bgcolor2 = #99ccff</nowiki>
<nowiki>|name = Particle Accelerator</nowiki>
<nowiki>|image = [[File:ParticleAccelerator.gif|Particle Accelerator]]</nowiki>
<nowiki>|OverrideImage = true</nowiki>
<nowiki>}}</nowiki>
{{Item
{{Item
|bgcolor1 = #cce6ff
|department=Security
|bgcolor2 = #99ccff
|nameRU=Красный ящик для инструментов
|name = Particle Accelerator
|image=Redtoolbox.png
|image = [[File:ParticleAccelerator.gif|Particle Accelerator]]
|name=Red Toolbox
|OverrideImage = true
|foundin=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|usedfor=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
|strategy=пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.
|contents=[[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]<br>[[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]] [[File:Redtoolbox.png|32px]]
}}
}}


</noinclude>
</noinclude>

Текущая версия от 14:48, 12 сентября 2022


Подсказки и примеры использования

Шаблон предназначен для предметов

Пустой шаблон


Для создания таблицы нужно задать значение department=



|department=Определяет цвет таблицы. С полным списком цветов можно ознакомиться тут: ColorPalette
|image=Определяет наличие картинки в таблице. Картинка всегда будет в разрешении 64пкс (пикселя). Если |name = является точным названием изображения, например Wrench, то таблица сама найдет соответствующее изображение, т.е. File:Wrench.png.
|OverrideImage=При любом значении после =, |image= будет отображаться в стандартной mediawiki форме. Полезно, если вы хотите использовать несколько изображений.
|name=Английское название предмета. Если значение пустое, то будет показано только изображение. Является якорем для страницы. Если отсутствует |image= то будет искать на вики изображения с названием name.png и name.gif.
|nameRU=Русское название предмета. Если значение пустое, то будет отображаться только английское. Если есть |nameRU= то наличие |name= обязательно.
|foundin=Место или устройство в котором или из которого можно получить предмет.
|usedfor=Опционально. Для какой стандартной цели используется предмет.
|strategy=Опционально. Как с этим предметом воевать.
|contents=Опционально. Содержимое предмета при спавне в нормальных условиях или, если содержимое меняется, то выбор меняйте на самое часто встречаемое.
|description=Описание, лол.

Необходимый минимум для работы


Поиск изображения по английскому названию

Wrench.png
Wrench


Полный набор, помещаемый в один блок

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox


Тоже самое, но |OverrideImage

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox


Добавление описания

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Описание

Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.


Добавление содержимого

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Описание

Содержит

Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.

Redtoolbox.png
Redtoolbox.png Redtoolbox.png
Redtoolbox.png Redtoolbox.png Redtoolbox.png


Добавление информации (обязательно наличие |foundin)

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Местонахождение: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Используется для: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Стратегия сражения: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.


Добавление описания

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Местонахождение: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Используется для: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Стратегия сражения: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.

Описание

Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.


Добавление содержимого

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Местонахождение: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Используется для: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Стратегия сражения: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.

Содержит

Описание

Redtoolbox.png
Redtoolbox.png Redtoolbox.png
Redtoolbox.png Redtoolbox.png Redtoolbox.png

Здесь находится описание предмета. Если хотите можете добавить сюда почти любую информацию. Не забывайте следить за пунктуацией и орфографией, ведь это обычный текст.


Без описания, но с содержимым

Красный ящик для инструментов
Redtoolbox.png
Red Toolbox

Местонахождение: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Используется для: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий;
Стратегия сражения: пишем с маленькой буквы и ставим ; (точку с запятой) или . (точку) в зависимости от того, какой пункт завершающий.

Содержит

Redtoolbox.png
Redtoolbox.png Redtoolbox.png
Redtoolbox.png Redtoolbox.png Redtoolbox.png