Участник:BOT Purple/Tests1

Материал из SS220 Paradise Wiki (SS13)
< Участник:BOT Purple
Версия от 11:35, 31 января 2022; BOT Purple (обсуждение | вклад)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску


How to use

template intended for lists of objects to clean them up a bit.

With no parameters

 {{TESTItem}}

Шаблон:TESTItem

With minimum parameters

The bare minimum is the name parameter.

 {{TESTItem
 |department = Engineering
 |nameRU = Тестовый предмет
 |name = Test Item
 |image = Redtoolbox.png
 }}

Шаблон:TESTItem

Normal item

If the description is set, this template will show:

 {{TESTItem
 |department = Engineering
 |nameRU = Аварийный ящик для инструментов
 |name = Emergency Toolbox
 |image = Redtoolbox.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.
 }}

Шаблон:TESTItem

Strategy-less items

If there is no strategy variable but there are foundin and used for, this template will show:

 {{TESTItem
 |department = Engineering
 |nameRU   = Тестовый предмет
 |name = Test Item
 |image = Redtoolbox.png
 |foundin = emergency lockers and storage areas
 |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.
 
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 }}

Шаблон:TESTItem

Container items

If the contents variable is set, this template will show:

 {{TESTItem
 |department = Engineering
 |nameRU   = Аварийный ящик для инструментов
 |name     = Emergency Toolbox
 |image    = Redtoolbox.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]]<br> [[File:Crowbar.png|link=Crowbar]]   <nowiki>[[File:Analyzer.png|link=Analyzer]] [[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   <nowiki>trying to cause an emergency.
 
 Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
 }}

Шаблон:TESTItem

Override Image

If an image is bigger than 50px they will break not break anymore, since this is a more awesome wiki, but they will look very small, as shown below.
Setting "OverrideImage=true" will disable the default image code so you can add your own.
The default image code is:

[[File:{{{image|{{{name|Unknown}}}.png}}}|px50|{{{name|Item}}}]]

For better understanding see these two examples:

Without setting "OverrideImage":

{{TESTItem
|department = Engineering
|nameRU = Ускоритель частиц
|name = Particle Accelerator
|image = ParticleAccelerator.gif
}}

Шаблон:TESTItem


With setting "OverrideImage":

{{TESTItem
|department = Engineering
|nameRU = Ускоритель частиц
|name = Particle Accelerator
|image = [[File:ParticleAccelerator.gif|Particle Accelerator]]
|OverrideImage = true
}}

Шаблон:TESTItem