Template:Locker: Difference between revisions
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) |
||
(One intermediate revision by one other user not shown) | |||
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> | ||
{{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) | |||
}} | |||
== About == | |||
name | Short details of standard lockers and their conents, intended use in [[Lockers]]. | ||
name_bg | |||
name_font | == Parameter-Usage == | ||
icon | {| class="wikitable" | ||
foundat_bg | !Parameter | ||
foundat_font | !Default | ||
area | !Description | ||
access | |- | ||
sells_bg | !name | ||
sells_font | |N/A | ||
|Name of the lockertype | |||
items | |- | ||
} | !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 === | |||
<pre>{{locker}}</pre> | |||
{{locker}} | |||
{{locker | | === Bare 2 === | ||
name= | <pre>{{locker | ||
|name= | |||
|icon= | |||
icon= | |area= | ||
|access= | |||
|items= | |||
area= | }}</pre> | ||
access= | {{locker | ||
|name= | |||
|icon= | |||
|area= | |||
items= | |access= | ||
|items= | |||
}} | }} | ||
=== 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= | <pre>{{locker | ||
icon= | |name=Whatever | ||
area= | |name_bg=#C7DCEC | ||
access= | |name_font=black | ||
|icon=Rack.png | |||
items= | |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 | |||
}} | |||
[[Category:Templates]] | |||
[[ | |||
</noinclude> | </noinclude> |
Latest revision as of 09:14, 24 April 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. |
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 | |
Found at: Dormitory Access Required: None | |
Items | |
Blue boxing gloves Green boxing gloves Yellow boxing gloves Red 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 | |
Found at: Medical, Kitchen Access Required: Cook | |
Items | |
Pliers Knife |