Template:Uplink: Difference between revisions

1,036 bytes added ,  20:26, 23 April 2020
Fixed leaking category outside noinclude. Added details to documentation. Added TODO-note on default-handling.
(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...")
 
(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:26, 23 April 2020 (UTC)
}}


== About ==
Short details of a traitor uplink icon, intended use in [[Syndicate Items]].
== 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
|-
!cost
|
|Cost of buying, for example '8 TC'
|-
!mode
|Undefined
|Gamemode
|-
!description
|No description
|A free description of the items, its properties and use-contexts.
|}
== Examples ==
=== Bare 1 ===
<pre>{{Uplink}}</pre>
{{Uplink}}
=== Bare 2 ===
<pre>{{Uplink
|name=
|image=
|cost=
|mode=
|description=
}}</pre>
{{Uplink
{{Uplink
|name=Energy Sword
|name=
|image = ESword.png
|image=
|cost = 8 TC
|cost=
|mode = Traitor, Nuclear Operative
|mode=
|description = The energy sword is an edged weapon with a blade of pure energy. The sword is small enough to be pocketed when inactive. Activating it produces a loud, distinctive noise.
|description=
}}
}}


'''Code:'''<br>
=== Normal ===
<nowiki>{{Uplink</nowiki><br>
<pre>{{Uplink
<nowiki> |name = Energy Sword</nowiki><br>
|name=Energy Sword
<nowiki> |image = ESword.png</nowiki><br>
|image = ESword.png
<nowiki> |cost = 8 TC</nowiki><br>
|cost = 8 TC
<nowiki> |mode = Traitor, Nuclear Operative</nowiki><br>
|mode = Traitor, Nuclear Operative
<nowiki> |description = The energy sword is an edged weapon with a blade of pure energy. The sword is small enough to be pocketed when inactive. Activating it produces a loud, distinctive noise.</nowiki><br>
|description = The energy sword is an edged weapon with a blade of pure energy. The sword is small enough to be pocketed when inactive. Activating it produces a loud, distinctive noise.
<nowiki> }}</nowiki>
}}</pre>
{{Uplink
|name=Energy Sword
|image = ESword.png
|cost = 8 TC
|mode = Traitor, Nuclear Operative
|description = The energy sword is an edged weapon with a blade of pure energy. The sword is small enough to be pocketed when inactive. Activating it produces a loud, distinctive noise.
}}


[[Category:Templates]]
</noinclude>
</noinclude>
[[Category:Templates]]
1,133

edits