The forum pages are fully operational! See this link for the latest forum topics, where users can collaborate or discuss certain topics in one place!

Difference between revisions of "Template:Location infobox"

From Arthur Wiki
Jump to navigationJump to search
(cleaned up template code)
 
(26 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{| class="infobox" border="0" cellpadding="2" cellspacing="0" style="border-bottom: saddlebrown 1px solid; border-left: saddlebrown 1px solid; line-height: 1.5; margin: 0px 0px 0.5em 1em; width: 200px; border-collapse: collapse; float: right; font-size: 80%; border-top: saddlebrown 1px solid; border-right: saddlebrown 1px solid"
{| class="infobox" style="font-size: 85%"
{{Character infobox/character name|{{{Location name}}}}}
! style="background: #1199AA; font-size: 120%; text-align:center;color:white" colspan="2" |{{{Location name|{{PAGENAME}}}}}
{{#if:{{{Image|}}}|
{{!}}
{{Character infobox/image|[[File:{{{Image}}}|250px]]}}
{{#if: {{{Image|}}} | {{!}} colspan=2 style="padding: 1em 0; text-align: center;" {{!}} [[File:{{{Image}}}|{{{Imagewidth|250px}}}]] }}
}}
{{!}}- style="vertical-align: top;"
|-
{{#if: {{{caption|}}} | {{!}} colspan=2 {{!}} <small>{{{caption}}}</small> }}
{{#if:{{{Location|}}}|
{{!}}- style="vertical-align: top;"
{{Location infobox/Location|{{{Location}}}}}
{{#if: {{{Location|}}} | {{!}} '''Location''' {{!!}} {{{Location}}} }}
}}
{{!}}- style="vertical-align: top;"
|-
{{#if: {{{Type|}}} | {{!}} '''Type''' {{!!}} {{{Type}}} }}
{{#if:{{{Type|}}}|
{{!}}- style="vertical-align: top;"
{{Character infobox/animal|{{{Type}}}}}
{{#if: {{{Sells|}}} | {{!}} '''Sells''' {{!!}} {{{Sells}}} }}
}}
{{!}}- style="vertical-align: top;"
|-
{{#if: {{{Administrator|}}} | {{!}} valign=top {{!}} '''Administrator''' {{!!}} {{{Administrator}}} }}
{{#if:{{{Sells|}}}|
{{!}}- style="vertical-align: top;"
{{Character infobox/age|{{{Sells}}}}}
{{#if: {{{Number of staff|}}} | {{!}} '''Staff''' {{!!}} {{{Number of staff}}} }}
}}
{{!}}- style="vertical-align: top;"
|-
{{#if: {{{Number of students|}}} | {{!}} '''Number of students''' {{!!}} {{{Number of students}}} }}
{{#if:{{{Administrator|}}}|
{{!}}- style="vertical-align: top;"
{{Character infobox/portrayer|{{{Administrator}}}}}
{{#if: {{{Number of rooms|}}} | {{!}} '''Number of rooms''' {{!!}} {{{Number of rooms}}} }}
}}
{{!}}- style="vertical-align: top;"
|-
{{#if: {{{Residents|}}} | {{!}} '''Residents''' {{!!}} {{{Residents}}} }}
{{#if:{{{Grade|}}}|
{{!}}- style="vertical-align: top;"
{{Character infobox/family|{{{Grade}}}}}
{{#if: {{{First appearance|}}} | {{!}} '''First appearance''' {{!!}} {{{First appearance}}} }}
}}
|}<includeonly>[[Category:Places]]</includeonly><noinclude>
|-
 
{{#if:{{{Headmaster|}}}|
{{Character infobox/cartoon first appeared|{{{Headmaster}}}}}
}}
|-
{{#if:{{{Number of staff|}}}|
{{Character infobox/book first appeared|{{{Number of staff}}}}}
}}
|-
{{#if:{{{Number of students|}}}|
{{Character infobox/book first appeared|{{{Number of students}}}}}
}}
|-
{{#if:{{{Number of rooms|}}}|
{{Character infobox/book first appeared|{{{Number of rooms}}}}}
}}
|-
{{#if:{{{Number of fields|}}}|
{{Character infobox/book first appeared|{{{Number of fields}}}}}
}}
|}</onlyinclude><noinclude>
==Usage==
==Usage==
<pre>
<pre>
{{Location infobox
{{Location infobox
|Location          =
|Location name    =
|Type              =
|Image            =
|Sells            =
|Imagewidth        =
|Administrator    =
|Location          =  
|Grade            =
|Type              =  
|Headmaster        =
|Sells            =  
|Number of staff  =
|Administrator    =  
|Number of students=
|Number of staff  =  
|Number of rooms  =
|Number of students=  
|Number of fields =
|Number of rooms  =  
|First appearance =  
}}
}}
</pre>
</pre>
[[Category:Infoboxes]]</noinclude>

Latest revision as of 02:20, 7 June 2020

Location infobox

Usage

{{Location infobox
|Location name     = 
|Image             = 
|Imagewidth        = 
|Location          = 
|Type              = 
|Sells             = 
|Administrator     = 
|Number of staff   = 
|Number of students= 
|Number of rooms   = 
|First appearance  = 
}}