Шаблон:Item: различия между версиями
Материал из Fluffy Frontier
Нет описания правки |
Нет описания правки |
||
Строка 79: | Строка 79: | ||
|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.<br><br>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes. | ||
}} | }} | ||
== Контейнеры == | === Контейнеры === | ||
If the contents variable is set, this template will show: | If the contents variable is set, this template will show: | ||
Строка 112: | Строка 112: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
== | === С изображениями === | ||
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> | 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> | Setting "OverrideImage=true" will disable the default image code so you can add your own.<br> |
Версия от 11:43, 9 августа 2022
Как использовать
Без параметров
{{Item}}
The item needs to have the name defined.
Минимум параметров
Это пример минимального числа параметров
{{Item |name=Test Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |image = Redtoolbox.png }}
|
Стандарт
{{Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |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. }}
Подробный пример
If there is no strategy variable but there are foundin and used for, this template will show:
{{Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |name = Emergency Toolbox |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. }}
|
Контейнеры
If the contents variable is set, this template will show:
{{Item |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |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. }}
|
С изображениями
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":
{{Item |bgcolor1 = #cce6ff |bgcolor2 = #99ccff |name = Particle Accelerator |image = ParticleAccelerator.gif }}
|
With setting "OverrideImage":
{{Item |bgcolor1 = #cce6ff |bgcolor2 = #99ccff |name = Particle Accelerator |image = [[File:ParticleAccelerator.gif|Particle Accelerator]] |OverrideImage = true }}
|