Template:Storage: Difference between revisions

Jump to navigation Jump to search
1,609 bytes added ,  03:19, 3 May 2020
Added documentation
(testing template change)
(Added documentation)
 
(2 intermediate revisions by one other user 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|}}}|[[File:{{{image|{{{name|Unknown}}}.png1]]}}}{{!}}64px{{!}}{{{name|Item}}}]]}}<br>'''{{{name|Item}}}'''
|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 12: Line 12:
|}
|}
|}</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:19, 3 May 2020 (UTC)
}}


== DO NOT USE THIS TEMPLATE ==
== DO NOT USE THIS TEMPLATE ==
This is a case-specific subtemplate. Use [[:Template:Item]] instead.
== About ==
Displays a storage-item like boxes and bags with icons for its contents.
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
|
|Name of the item
|-
!foundin
|
|Short information on where to find the item
|-
!usedfor
|
|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.
|-
!contents
|Contents not defined
|Contents of the storage item
|}
== Examples ==
=== Bare ===
<pre>{{Storage}}</pre>
{{Storage}}


Use [[:Template:Item]] instead.
=== Empty template ===
[[Category:Templates]]
<pre>{{Storage
Test Image:
|bgcolor1=
|bgcolor2=
|image=
|name=
|foundin=
|usedfor=
|strategy=
|description=
|contents=
}}</pre>
{{Storage
|bgcolor1=
|bgcolor2=
|image=
|name=
|foundin=
|usedfor=
|strategy=
|description=
|contents=
}}
 
=== Normal ===
<pre>{{Storage
|name=Test Item
|bgcolor1 = #FFEE88
|bgcolor2 = #FFDD66
|image = Redtoolbox.png
}}</pre>
{{Storage
{{Storage
|name=Test Item
|name=Test Item
Line 24: Line 114:
|image = Redtoolbox.png
|image = Redtoolbox.png
}}
}}
[[Category:Templates]]
</noinclude>
</noinclude>
1,133

edits

Navigation menu