Template:Locker: Difference between revisions

Jump to navigation Jump to search
1,356 bytes added ,  09:14, 24 April 2020
Added details to documentation. Added TODO-note about default-parameters. Added border to box for better design
mNo edit summary
(Added details to documentation. Added TODO-note about default-parameters. Added border to box for better design)
 
Line 1: Line 1:
<includeonly>
<includeonly>
{|width="600px" cellspacing="0" cellpadding="2"
{|width="600px" cellspacing="0" cellpadding="2" style="border: 1px solid black;"
|bgcolor = "{{{name_bg|#C7DCEC}}}" align="center" colspan=2|<font color="{{{name_font|#000000}}}">'''{{{name|N/A}}}'''</font>
|bgcolor = "{{{name_bg|#C7DCEC}}}" align="center" colspan=2|<font color="{{{name_font|#000000}}}">'''{{{name|N/A}}}'''</font>
|-
|-
Line 12: Line 12:
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
Example would be:
{{Needs revision
|reason = Fix missing parameters and empty parameters to behave the same. Also 'sells_bg' should be split
|user = [[User:Helpful Herbert|Helpful Herbert]] ([[User talk:Helpful Herbert|talk]]) 09:14, 24 April 2020 (UTC)
}}


<pre>{{locker |
== About ==
name=Whatever |
Short details of standard lockers and their conents, intended use in [[Lockers]].
name_bg=#C7DCEC |
 
name_font=black|
== Parameter-Usage ==
icon=Rack.png |
{| class="wikitable"
foundat_bg=#FFEDD4 |
!Parameter
foundat_font=black |
!Default
area=Medical, Kitchen |
!Description
access=Cook |
|-
sells_bg=#FFF3D4 |
!name
sells_font=black |
|N/A
items=Pliers<br>Knife |
|Name of the lockertype
}}</pre>
|-
!name_bg
|#C7DCEC
|Background-color of the name
|-
!name_font
|#000000
|Font-color of the name
|-
!icon
|N/A
|Name of the imagefile of the locker
|-
!foundat_bg
|#d4ebf2
|Background-color of the general info
|-
!foundat_font
|#000000
|Font-color of the general info
|-
!area
|N/A
|Areas in which the lockertype can be found
|-
!access
|N/A
|Required authorisation to access the lockertype
|-
!sells_bg
|#F0E68C and #FFEFD5 ???
|Background-color of the contents
|-
!sells_font
|#000000
|Font-color of the contents
|-
!items
|N/A
|
|}


which turns into
== Examples ==
=== Bare 1 ===
<pre>{{locker}}</pre>
{{locker}}


{{locker |
=== Bare 2 ===
name=Whatever |
<pre>{{locker
name_bg=#C7DCEC |
|name=
name_color=black|
|icon=
icon=Rack.png |
|area=
foundat_bg=#FFEDD4 |
|access=
foundat_font=black |
|items=
area=Medical, Kitchen |
}}</pre>
access=Cook |
{{locker
sells_bg=#FFF3D4 |
|name=
sells_font=black |
|icon=
items=Pliers<br>Knife |
|area=
|access=
|items=
}}
}}


Simple version:
=== Normal ===
<pre>{{locker
|name=Boxing Gloves
|icon=Closet.png
|area=Dormitory
|access=None
|items=[[File:Boxingblue.png]]Blue boxing gloves<br>[[File:Boxinggreen.png]]Green boxing gloves<br>[[File:Boxingyellow.png]]Yellow boxing gloves<br>[[File:Boxing.png]]Red boxing gloves
}}</pre>
{{locker
|name=Boxing Gloves
|icon=Closet.png
|area=Dormitory
|access=None
|items=[[File:Boxingblue.png]]Blue boxing gloves<br>[[File:Boxinggreen.png]]Green boxing gloves<br>[[File:Boxingyellow.png]]Yellow boxing gloves<br>[[File:Boxing.png]]Red boxing gloves
}}


<pre>{{locker |
== Full ==
name=Fitness Locker |
<pre>{{locker
icon=Mixed_locker.png |
|name=Whatever
area=Dormitory |
|name_bg=#C7DCEC
access=None |
|name_font=black
items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut  |
|icon=Rack.png
}}}</pre>
|foundat_bg=#FFEDD4
|foundat_font=black
|area=Medical, Kitchen
|access=Cook
|sells_bg=#FFF3D4
|sells_font=black
|items=Pliers<br>Knife
}}</pre>
{{locker
|name=Whatever
|name_bg=#C7DCEC
|name_font=black
|icon=Rack.png
|foundat_bg=#FFEDD4
|foundat_font=black
|area=Medical, Kitchen
|access=Cook
|sells_bg=#FFF3D4
|sells_font=black
|items=Pliers<br>Knife
}}


which turns into
[[Category:Templates]]
 
{{locker |
name=Fitness Locker |
icon=Mixed_locker.png |
area=Dormitory |
access=None |
items=8x Handcuffs<br>2x Flashbang<br>5x Flash<br>12x Donut  |
}}
[[category:templates]]
</noinclude>
</noinclude>
1,133

edits

Navigation menu