Jump to content

Template:Infobox building: Difference between revisions

From BadWolfMC Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{Infobox
== When to use ==
Place this on any page suitable for the [[:Category:Buildings|Buildings]] category. It will add the page to the category, as well as producing the handy info box.
 
Please don't attempt to alter the code for this template unless you really know what you're doing, and you have community consensus.
 
Please only use this template for individual builds - for settlements involving multiple buildings together, use [[Template:Infobox_settlement]].
 
==Usage==
Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:
<pre>
{{Infobox building
|title        = AwesomeCastle
|image        = Image.png
|caption      = View from the front
|owner        = Jim
|contributors = Bob, Mike
|category    = Castle
|underground  = No
|public      = Yes
|startdate    = 21 November 2016
|completedate = 17 January 2017
|n-s_size    = 40
|w-e_size    = 40
|height      = 20
|xcoord      = -1204
|ycoord      = 62
|zcoord      = 3028
|dimension    = Gallifrey
|restp        =
|nearestwarp  = Citadel
}}
</pre>
 
Or use this blank template:
<pre>
{{Infobox building
|title        =
|image        =
|caption      =
|owner        =
|contributors =
|category    =
|underground  =
|public      =
|startdate    =
|completedate =
|n-s_size    =
|w-e_size    =
|height      =
|xcoord      =
|ycoord      =
|zcoord      =
|dimension    =
|restp        =
|nearestwarp  =
}}
</pre>
 
Note: If you use this template and don't populate all fields, '''do not delete the unused fields''' - this will only make it difficult for future editors to fill in the additional information later.
 
</noinclude><includeonly>{{Infobox
|name        =  
|name        =  
|bodystyle    =  
|bodystyle    =  
Line 69: Line 8:
|caption      = {{{caption|}}}
|caption      = {{{caption|}}}
|captionstyle =  
|captionstyle =  
|headerstyle  = color:#FFFFFF;background:#003B6F;
|labelstyle  = background:#f9f9f9;
|datastyle    =  
|datastyle    =  
|header1 = About
|header1 = About
Line 96: Line 33:
|label13  = Coordinates
|label13  = Coordinates
|data13  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data13  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|label14  = Dimension
|label14 = Server
|data14   = {{{dimension|Gallifrey}}}
|data14  = {{#if:{{{server|}}}|[[{{{server|}}}]]|[[BadWolfMC Alpha|Alpha]]}}
|label15 = /res tp
|label15 = Dimension
|data15   = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}}
|data15   = {{{dimension|Gallifrey}}}
|label16 = Nearest [[warp]]
|label16 = /res tp
|data16   = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
|data16   = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}}
|label17 = Nearest [[warp]]
|data17   = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
}}
}}
[[Category:Buildings]]
[[Category:Buildings]]
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#if:{{{restp|}}}|[[Category:Residences]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#if:{{{restp|}}}|[[Category:Residences]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
</includeonly>
</includeonly>
<noinclude>{{documentation}}
[[Category:Infobox_templates]]</noinclude>

Latest revision as of 13:07, 6 May 2025