Template:ItemUsedFor: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
No edit summary
(Fixed leaking category outside noinclude. Added details to documentation. Added TODO-note on default-handling.)
 
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]]) 20:06, 23 April 2020 (UTC)
}}


== 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
This is a case-specific subtemplate. Use [[:Template:Item]] instead.
 
== About ==
Displays the details of an item including information on where the Item can be found and in which contexts it can be used.
 
This template is automatically called in [[:Template:Item]], when the '''foundin'''- and '''usedfor'''-parameters are set.
 
== 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
|
|Name of the item
|-
!foundin
|
|Short information on where to find the item
|-
!usedfor
|
|Short information on the item's purpose
|-
!description
|No description
|A free description of the items, its properties and use-contexts.
|}
 
== Examples ==
=== Bare 1 ===
<pre>{{ItemUsedFor}}</pre>
{{ItemUsedFor}}
 
=== Bare 2 ===
<pre>{{ItemUsedFor
|name=
|bgcolor1=
|bgcolor2=
|image=
|foundin=
|usedfor=
|description=
}}</pre>
{{ItemUsedFor
|name=
|bgcolor1=
|bgcolor2=
|image=
|foundin=
|usedfor=
|description=
}}
 
=== Normal ===
<pre>{{ItemUsedFor
|name=Emergency Toolbox
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|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.<br><br>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}</pre>
{{ItemUsedFor
{{ItemUsedFor
|name=Test Item
|name=Emergency Toolbox
|bgcolor1 = #FFEE88
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|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.<br><br>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}
}}
 
=== Real life use of Item-Template ===
<pre>{{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.
}}</pre>
{{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.
}}


[[Category:Templates]]
</noinclude>
</noinclude>
[[Category:Templates]]

Latest revision as of 20:06, 23 April 2020


Pen.png 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.
The revision reason is: "Fix missing parameters and empty parameters to behave the same."
Marked by: "Helpful Herbert (talk) 20:06, 23 April 2020 (UTC)"



DO NOT USE THIS TEMPLATE

This is a case-specific subtemplate. Use Template:Item instead.

About

Displays the details of an item including information on where the Item can be found and in which contexts it can be used.

This template is automatically called in Template:Item, when the foundin- and usedfor-parameters are set.

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 Name of the item
foundin Short information on where to find the item
usedfor Short information on the item's purpose
description No description A free description of the items, its properties and use-contexts.

Examples

Bare 1

{{ItemUsedFor}}
Unknown.png
Item
Found in: Undefined
Used for: Undefined
Description
No description

Bare 2

{{ItemUsedFor
|name=
|bgcolor1=
|bgcolor2=
|image=
|foundin=
|usedfor=
|description=
}}
[[File:|64px]]
'
Found in:
Used for:
Description
No description

Normal

{{ItemUsedFor
|name=Emergency Toolbox
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|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.<br><br>Be quick in getting one as they tend to get looted quickly if you want until an emergency strikes.
}}
Redtoolbox.png
Emergency Toolbox
Found in: Emergency lockers and storage areas
Used for: 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.

Real life use of Item-Template

{{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.
}}
Redtoolbox.png
Emergency Toolbox
Found in: Emergency lockers and storage areas
Used for: 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.