Template:Location: Difference between revisions

921 bytes added ,  12:11, 25 April 2020
Reverted empty-/missing-behaviour for color-parameters as they broke for some values. Added another example where it broke.
(Added details to documentation. Improved default-values. Fixed parameters to work the same when missing and empty. Smaller designchanges to improve readability.)
(Reverted empty-/missing-behaviour for color-parameters as they broke for some values. Added another example where it broke.)
Line 1: Line 1:
<includeonly>
<includeonly>
{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 2px ridge; border-color: #d3d3d3; border-radius: 3px;"
{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 2px ridge; border-color: #d3d3d3; border-radius: 3px;"
|bgcolor="{{#if: {{{headerbgcolor|}}}|{{{headerbgcolor}}}|\#aaaaaa}}" style="border-bottom: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{#if: {{{headerfontcolor|}}}|{{{headerfontcolor}}}|\#000000}}">'''{{#if: {{{location|}}}|'''{{{location}}}'''|Undefined Location}}'''</font>
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" style="border-bottom: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{#if: {{{location|}}}|'''{{{location}}}'''|Undefined Location}}'''</font>
|-
|-
|align=center width="350" colspan=2 |[[File:{{#if: {{{image|}}}|{{{image}}}|NPA.png}}|frameless|300px|center|link={{{big_image|File:{{{image|}}}|{{{image}}}|NPA.png}}}}}]]
|align=center width="350" colspan=2 |[[File:{{#if: {{{image|}}}|{{{image}}}|NPA.png}}|frameless|300px|center|link={{{big_image|File:{{{image|}}}|{{{image}}}|NPA.png}}}}}]]
Line 22: Line 22:
|{{#if: {{{exits|}}}|{{{exits}}}|Not defined}}
|{{#if: {{{exits|}}}|{{{exits}}}|Not defined}}
|-
|-
|bgcolor="{{#if: {{{footerbgcolor|}}}|{{{footerbgcolor}}}|\#aaaaaa}}" style="border-top: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{#if: {{{footerfontcolor|}}}|{{{footerfontcolor}}}|\#000000}}">{{#if: {{{department|}}}|'''{{{department}}}'''|}}</font>
|bgcolor="{{{footerbgcolor|#aaaaaa}}}" style="border-top: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{footerfontcolor|#000000}}}">{{#if: {{{department|}}}|'''{{{department}}}'''|}}</font>
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
Line 162: Line 162:
}}</pre>
}}</pre>


=== Another ===
<pre>{{Location
|headerbgcolor=#a885a2
|headerfontcolor = black
|image=RD_Lab.png
|location=Research and Development Lab
|description=The toy manufacturing room.
|purpose=To research and develop.
|items=[[Destructive Analyzer]], [[Protolathe]], [[R&D Console]] and a [[Circuit Imprinter]]
|workers=[[Scientist]], [[Research Director]]
|access=[[Scientist]], [[Roboticist]], [[Research Director]]
|exits=[[Research Division]] south
|department=Science
|footerbgcolor=#a885a2
|footerfontcolor = black
}}</pre>
{{Location
|headerbgcolor=#a885a2
|headerfontcolor = black
|image=RD_Lab.png
|location=Research and Development Lab
|description=The toy manufacturing room.
|purpose=To research and develop.
|items=[[Destructive Analyzer]], [[Protolathe]], [[R&D Console]] and a [[Circuit Imprinter]]
|workers=[[Scientist]], [[Research Director]]
|access=[[Scientist]], [[Roboticist]], [[Research Director]]
|exits=[[Research Division]] south
|department=Science
|footerbgcolor=#a885a2
|footerfontcolor = black
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
1,133

edits