Template:Infobox building: Difference between revisions

From BadWolfMC Wiki
m 1 revision imported
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
==[[File:Mapmarker_buildingicon.png|link=buildings|Building]] When to use==
== When to use ==
Place this on any page suitable for the [[buildings]] category. It will add the page to the category, as well as producing the handy info box.
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 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 buildings - for settlements involving multiple buildings together, use [[Template:Infobox_settlement]].
Please only use this template for individual builds - for settlements involving multiple buildings together, use [[Template:Infobox_settlement]].


==Usage==
==Usage==
Line 11: Line 11:
<pre>
<pre>
{{Infobox building
{{Infobox building
|title        = AwesomeCastle Seven
|title        = AwesomeCastle
|image        = Image.png
|image        = Image.png
|caption      = View from the front
|caption      = View from the front
Line 19: Line 19:
|underground  = No
|underground  = No
|public      = Yes
|public      = Yes
|startdate    = 21 November 2010
|startdate    = 21 November 2016
|completedate = 17 January 2011
|completedate = 17 January 2017
|n-s_size    = 40
|n-s_size    = 40
|w-e_size    = 40
|w-e_size    = 40
Line 27: Line 27:
|ycoord      = 62
|ycoord      = 62
|zcoord      = 3028
|zcoord      = 3028
|dimension    = Overworld
|dimension    = Gallifrey
|nearestwarp  = AmpCity
|restp        =
|nearestwarp  = Citadel
}}
}}
</pre>
</pre>
Line 52: Line 53:
|zcoord      =  
|zcoord      =  
|dimension    =  
|dimension    =  
|restp        =
|nearestwarp  =  
|nearestwarp  =  
}}
}}
Line 61: Line 63:
|name        =  
|name        =  
|bodystyle    =  
|bodystyle    =  
|icon        = [[File:Mapmarker_buildingicon.png|link=buildings|Building]]
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|titlestyle  =  
|titlestyle  =  
Line 68: Line 69:
|caption      = {{{caption|}}}
|caption      = {{{caption|}}}
|captionstyle =  
|captionstyle =  
|headerstyle  = background:#ccf;
|headerstyle  = color:#FFFFFF;background:#003B6F;
|labelstyle  = background:#ddf;
|labelstyle  = background:#f9f9f9;
|datastyle    =  
|datastyle    =  
|header1 = About
|header1 = About
Line 96: Line 97:
|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  = Dimension
|data14  = {{{dimension|Overworld}}}
|data14  = {{{dimension|Gallifrey}}}
|label15  = Nearest [[warp]]
|label15  = /res tp
|data15  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
|data15  = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}}
|belowstyle = background:#ddf;
|label16  = Nearest [[warp]]
|below = {{#if:{{{xcoord|}}}|[http://minecraftonline.com/map/#/{{{xcoord|}}}/{{{ycoord|64}}}/{{{zcoord|}}}/-2/{{#switch:{{{dimension|}}}|Overworld=0|Nether=2|End=1|0}}/0 Map link]|Please contribute the coordinates of this building.[[Category:pages_in_need_of_coordinates]]}}
|data16  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
}}
}}
[[Category:Buildings]]
[[Category:Buildings]]
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#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>

Revision as of 23:13, 14 July 2018

When to use

Place this on any page suitable for the 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:

{{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
}}

Or use this blank template:

{{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  = 
}}

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.