Template:ItemSimple: Difference between revisions
Jump to navigation
Jump to search
imported>Deantwo (Added a "oddsizeimage" option, because I am freaking tired of images breaking when using the template.) |
(Added documentation) |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{| style="border:1px solid {{{bgcolor2|#bbbbbb}}};" cellpadding="0" cellspacing="0" | <includeonly>{| style="border:1px solid {{{bgcolor2|#bbbbbb}}};" cellpadding="0" cellspacing="0" | ||
| | | | ||
{|width="100%" cellspacing="0" cellpadding="2" | {|width="100%" cellspacing="0" cellpadding="2" | ||
|align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{# | |align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{#if:{{{OverrideImage|}}}|{{{image}}}|[[File:{{{image|Unknown.png}}}|64px]]}}<br>'''{{{name|Item}}}''' | ||
|align=center width="250"| | |align=center width="250"| | ||
{|width=50% | {|width=50% | ||
Line 8: | Line 8: | ||
|} | |} | ||
|} | |} | ||
|}<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:29, 3 May 2020 (UTC) | |||
}} | |||
== DO NOT USE THIS TEMPLATE == | |||
This is a case-specific subtemplate. Use [[:Template:Item]] instead. | |||
== About == | |||
Display of a single item without further details. | |||
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 | |||
|} | |||
== Examples == | |||
=== Bare === | |||
<pre>{{ItemSimple}}</pre> | |||
{{ItemSimple}} | {{ItemSimple}} | ||
=== Empty template === | |||
<pre>{{ItemSimple | |||
|name= | |||
|image= | |||
}}</pre> | |||
{{ItemSimple | {{ItemSimple | ||
|name= | |name= | ||
|image= | |||
}} | |||
=== Without image === | |||
<pre>{{ItemSimple | |||
|name=Syndicate Suit | |||
}}</pre> | |||
{{ItemSimple | {{ItemSimple | ||
|name= | |name=Syndicate Suit | ||
}} | |||
=== With image === | |||
<pre>{{ItemSimple | |||
|name=Syndicate Suit | |||
|image=SyndicateSuit.png | |||
}}</pre> | |||
{{ItemSimple | {{ItemSimple | ||
|name=Syndicate Suit | |name=Syndicate Suit | ||
|image=SyndicateSuit.png}} | |image=SyndicateSuit.png | ||
[[Category:Templates]]</noinclude> | }} | ||
[[Category:Templates]] | |||
</noinclude> |
Latest revision as of 03:29, 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
Display of a single item without further details.
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 |
Examples
Bare
{{ItemSimple}}
|
Empty template
{{ItemSimple |name= |image= }}
|
Without image
{{ItemSimple |name=Syndicate Suit }}
|
With image
{{ItemSimple |name=Syndicate Suit |image=SyndicateSuit.png }}
|