Template:Locker: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
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>

Latest revision as of 09:14, 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. Also 'sells_bg' should be split"
Marked by: "Helpful Herbert (talk) 09:14, 24 April 2020 (UTC)"



About

Short details of standard lockers and their conents, intended use in Lockers.

Parameter-Usage

Parameter Default Description
name N/A Name of the lockertype
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

Examples

Bare 1

{{locker}}
N/A
N/A Found at: N/A
Access Required: N/A
Items
N/A


Bare 2

{{locker
|name=
|icon=
|area=
|access=
|items=
}}
'
N/A Found at:
Access Required:
Items


Normal

{{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
}}
Boxing Gloves
Closet.png Found at: Dormitory
Access Required: None
Items
Boxingblue.pngBlue boxing gloves
Boxinggreen.pngGreen boxing gloves
Boxingyellow.pngYellow boxing gloves
Boxing.pngRed boxing gloves


Full

{{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
}}
Whatever
Rack.png Found at: Medical, Kitchen
Access Required: Cook
Items
Pliers
Knife