Template:ItemMedium: Difference between revisions
Jump to navigation
Jump to search
imported>Jordie0608 (Created page with "<includeonly>{| style="border:1px solid {{{bgcolor2|#bbbbbb}}};" cellpadding="0" cellspacing="0" | {|width="100%" cellspacing="0" cellpadding="2" |align=center width="150" st...") |
(Added documentation) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
| | | | ||
{|width="100%" cellspacing="0" cellpadding="2" | {|width="100%" cellspacing="0" cellpadding="2" | ||
|align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{#if:{{{OverrideImage|}}}|{{{image | |align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{#if:{{{OverrideImage|}}}|{{{image}}}|[[File:{{{image|Unknown.png}}}|64px]]}}<br>'''{{{name|Item}}}''' | ||
|'''Found in: '''{{{foundin|Undefined}}}<br>'''Used for:''' {{{usedfor|Undefined}}}<br>'''Strategy:''' {{{strategy|Undefined}}} | |'''Found in: '''{{{foundin|Undefined}}}<br>'''Used for:''' {{{usedfor|Undefined}}}<br>'''Strategy:''' {{{strategy|Undefined}}} | ||
|} | |} | ||
Line 11: | Line 11: | ||
|} | |} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{Needs revision | |||
|reason = Fix missing parameters and empty parameters to behave the same. | |||
|user = [[User:Helpful Herbert|Helpful Herbert]] ([[User talk:Helpful Herbert|talk]]) 03:36, 3 May 2020 (UTC) | |||
}} | |||
== DO NOT USE THIS TEMPLATE == | |||
This is a case-specific subtemplate. Use [[:Template:Item]] instead. | |||
== About == | |||
Used to display an item with additional details (found in, used for and strategy). | |||
This template is called in [[:Template:Item]]. | |||
== Parameter-Usage == | |||
{| class="wikitable" | |||
!Parameter | |||
!Default | |||
!Description | |||
|- | |||
!bgcolor1 | |||
|#cccccc | |||
|Background-color 1 | |||
|- | |||
!bgcolor2 | |||
|#bbbbbb | |||
|Background-color 2 | |||
|- | |||
!OverrideImage | |||
| | |||
|When set, the image parameter is directly inserted like <code><nowiki>[[File:Unknown.png]]</nowiki></code>. By default the image-paramter is used as an image-name like <code>Unknown.png</code>. | |||
|- | |||
!image | |||
|Unknown.png | |||
|Name of the item's image. See OverrideImage-parameter for alternative usage. | |||
|- | |||
!name | |||
|Item | |||
|Name of the item | |||
|- | |||
!foundin | |||
|Undefined | |||
|Short information on where to find the item | |||
|- | |||
!usedfor | |||
|Undefined | |||
|Short information on the item's purpose | |||
|- | |||
!strategy | |||
|Undefined | |||
|A short description of the usage context | |||
|- | |||
!description | |||
|No description | |||
|A free description of the items, its properties and use-contexts. | |||
|} | |||
== Examples == | |||
=== Bare === | |||
<pre>{{ItemMedium}}</pre> | |||
{{ItemMedium}} | |||
=== Empty Template === | |||
<pre>{{ItemMedium | |||
|name= | |||
|bgcolor1= | |||
|bgcolor2= | |||
|image= | |||
|foundin= | |||
|usedfor= | |||
|strategy= | |||
|description= | |||
}}</pre> | |||
{{ItemMedium | |||
|name= | |||
|bgcolor1= | |||
|bgcolor2= | |||
|image= | |||
|foundin= | |||
|usedfor= | |||
|strategy= | |||
|description= | |||
}} | |||
== | === Normal === | ||
<pre>{{ItemMedium | |||
|name=Emergency Toolbox | |||
|bgcolor1 = #FFEE88 | |||
|bgcolor2 = #FFDD66 | |||
|image = Redtoolbox.png | |||
|foundin = Emergency lockers and storage areas | |||
|usedfor = Contains tools which are useful in emergencies | |||
|strategy = Hope for the best | |||
|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. | |||
}}</pre> | |||
{{ItemMedium | |||
|name=Emergency Toolbox | |||
|bgcolor1 = #FFEE88 | |||
|bgcolor2 = #FFDD66 | |||
|image = Redtoolbox.png | |||
|foundin = Emergency lockers and storage areas | |||
|usedfor = Contains tools which are useful in emergencies | |||
|strategy = Hope for the best | |||
|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. | |||
}} | |||
[[Category:Templates]] | |||
[[Category:Templates]]</noinclude> | </noinclude> |
Latest revision as of 03:36, 3 May 2020
This page needs revising!
The following page is out of date and/or needs to be revised. If the page's guide needs revision, see here for an example. |
DO NOT USE THIS TEMPLATE
This is a case-specific subtemplate. Use Template:Item instead.
About
Used to display an item with additional details (found in, used for and strategy).
This template is called in Template:Item.
Parameter-Usage
Parameter | Default | Description |
---|---|---|
bgcolor1 | #cccccc | Background-color 1 |
bgcolor2 | #bbbbbb | Background-color 2 |
OverrideImage | When set, the image parameter is directly inserted like [[File:Unknown.png]] . By default the image-paramter is used as an image-name like Unknown.png .
| |
image | Unknown.png | Name of the item's image. See OverrideImage-parameter for alternative usage. |
name | Item | Name of the item |
foundin | Undefined | Short information on where to find the item |
usedfor | Undefined | Short information on the item's purpose |
strategy | Undefined | A short description of the usage context |
description | No description | A free description of the items, its properties and use-contexts. |
Examples
Bare
{{ItemMedium}}
|
Empty Template
{{ItemMedium |name= |bgcolor1= |bgcolor2= |image= |foundin= |usedfor= |strategy= |description= }}
|
Normal
{{ItemMedium |name=Emergency Toolbox |bgcolor1 = #FFEE88 |bgcolor2 = #FFDD66 |image = Redtoolbox.png |foundin = Emergency lockers and storage areas |usedfor = Contains tools which are useful in emergencies |strategy = Hope for the best |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. }}