Template:UplinkStorage: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(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 details to documentation. Adjusted bgcolor1-default to be exactly the same as Template:Uplink. Aded revision note.)
 
(One intermediate revision 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|#cdcdcd}}}"|{{#if:{{{OverrideImage|}}}|{{{image}}}|[[File:{{{image|Unknown.png}}}|64px]]}}<br>'''{{{name|Item}}}'''
|align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{#if:{{{OverrideImage|}}}|{{{image}}}|[[File:{{{image|Unknown.png}}}|64px]]}}<br>'''{{{name|Item}}}'''
|'''Cost: '''{{{cost|Undefined}}}<br>'''Gamemode:''' {{{mode|Undefined}}}
|'''Cost: '''{{{cost|Undefined}}}<br>'''Gamemode:''' {{{mode|Undefined}}}
|-
|-
Line 8: Line 8:
|style="background-color:{{{bgcolor2|#e6e6e6}}};" | '''Description'''
|style="background-color:{{{bgcolor2|#e6e6e6}}};" | '''Description'''
|-
|-
|valign=top align=center width="150" style="background-color:{{{bgcolor1|#cdcdcd}}}"|{{{contents|Contents not defined}}}
|valign=top align=center width="150" style="background-color:{{{bgcolor1|#cccccc}}}"|{{{contents|Contents not defined}}}
|valign=top|{{{desc|No description}}}
|valign=top|{{{description|No description}}}
|}
|}
|}</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:47, 24 April 2020 (UTC)
}}
== About ==
Short details of a traitor uplink storage-item which holds multiple other items. Intended use in [[Syndicate Items]]. This template is related to [[Template:Uplink]] and very similar to [[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
|-
!cost
|Undefined
|Cost of buying, for example '8 TC'
|-
!mode
|Undefined
|Gamemode
|-
!contents
|Contents not defined
|Iconcode for included icons, for example: <code><nowiki>[[File:pen.png]] [[File:pen.png]]</nowiki></code>
|-
!description
|No description
|A free description of the items, its properties and use-contexts.
|}


[[Category:Templates]]
== Examples ==
=== Bare 1 ===
<pre>{{UplinkStorage}}</pre>
{{UplinkStorage}}
 
=== Bare 2 ===
<pre>{{UplinkStorage
|name=
|image=
|cost=
|mode=
|contents=
|description=
}}</pre>
{{UplinkStorage
|name=
|image=
|cost=
|mode=
|contents=
|description=
}}


=== Normal ===
<pre>{{UplinkStorage
|name=Toolbox
|image = Redtoolbox.png
|cost = 5 TC
|mode = Traitor
|contents = [[File:pen.png]] [[File:pen.png]]
|description = A toolbox.
}}</pre>
{{UplinkStorage
{{UplinkStorage
|name=Toolbox
|name=Toolbox
Line 21: Line 101:
|mode = Traitor
|mode = Traitor
|contents = [[File:pen.png]] [[File:pen.png]]
|contents = [[File:pen.png]] [[File:pen.png]]
|desc = A toolbox.
|description = A toolbox.
}}
}}


'''Code:'''<br>
 
<nowiki>{{UplinkStorage</nowiki><br>
[[Category:Templates]]
<nowiki>|name=Toolbox</nowiki><br>
<nowiki>|image = Redtoolbox.png</nowiki><br>
<nowiki>|cost = 5 TC</nowiki><br>
<nowiki>|mode = Traitor</nowiki><br>
<nowiki>|contents = [[File:pen.png]] [[File:pen.png]]</nowiki><br>
<nowiki>|desc = A toolbox.</nowiki><br>
<nowiki>}}</nowiki>
</noinclude>
</noinclude>

Latest revision as of 20:47, 24 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:47, 24 April 2020 (UTC)"



About

Short details of a traitor uplink storage-item which holds multiple other items. Intended use in Syndicate Items. This template is related to Template:Uplink and very similar to 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
cost Undefined Cost of buying, for example '8 TC'
mode Undefined Gamemode
contents Contents not defined Iconcode for included icons, for example: [[File:pen.png]] [[File:pen.png]]
description No description A free description of the items, its properties and use-contexts.

Examples

Bare 1

{{UplinkStorage}}
Unknown.png
Item
Cost: Undefined
Gamemode: Undefined
Contents Description
Contents not defined No description

Bare 2

{{UplinkStorage
|name=
|image=
|cost=
|mode=
|contents=
|description=
}}
[[File:|64px]]
'
Cost:
Gamemode:
Contents Description

Normal

{{UplinkStorage
|name=Toolbox
|image = Redtoolbox.png
|cost = 5 TC
|mode = Traitor
|contents = [[File:pen.png]] [[File:pen.png]]
|description = A toolbox.
}}
Redtoolbox.png
Toolbox
Cost: 5 TC
Gamemode: Traitor
Contents Description
Pen.png Pen.png A toolbox.