Jump to content

Template:Infobox settlement: Difference between revisions

From BadWolfMC Wiki
m 1 revision imported
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{Infobox
==[[File:Mapmarker_settlementicon.png|link=settlements|Settlement]] When to use==
Place this on any page suitable for the [[settlement]]s category.  It will add the page to the category, as well as producing the handy info box.
 
If the settlement also has its own warp, just put the warp name in as normal - if the warp name specified in the template is the same as the page's name, this template will automatically put the page in [[:Category:Warps]] also.
 
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 settlements consisting of more than two buildings - for individual buildings, use [[Template:Infobox_building]].
 
==Usage==
Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:
<pre>
{{Infobox settlement
|title        = AwesomeTown
|image        = Image.png
|caption      = View from the gates
|founder      = Jim
|contributors = Bob, Mike, Joe, James
|category    = Towns
|underground  = No
|fortified    = No
|publicaccess = Yes
|publicbuild  = Yes
|n-s_size    = 100
|w-e_size    = 100
|roadlink    = Yes
|nexuslink    = No
|raillink    = Yes
|boatlink    = No
|portal      = No
|xcoord      = -1204
|ycoord      = 62
|zcoord      = 3028
|dimension    = Overworld
|nearestwarp  = AwesomeTown
}}
</pre>
 
Or use this blank template:
<pre>
{{Infobox settlement
|title        =
|image        =
|caption      =
|founder      =
|contributors =
|category    =
|underground  =
|fortified    =
|publicaccess =
|publicbuild  =
|n-s_size    =
|w-e_size    =
|roadlink    =
|nexuslink    =
|raillink    =
|boatlink    =
|portal      =
|xcoord      =
|ycoord      =
|zcoord      =
|dimension    =
|nearestwarp  =
}}
</pre>
 
</noinclude><includeonly>{{Infobox
|name        =  
|name        =  
|bodystyle    =
|bodystyle    =
|icon        = [[File:Mapmarker_settlementicon.png|link=settlements|Settlement]]
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
|titlestyle  =  
|titlestyle  =  
Line 76: Line 8:
|caption      = {{{caption|}}}
|caption      = {{{caption|}}}
|captionstyle =  
|captionstyle =  
|headerstyle  = background:#ccf;
|labelstyle  = background:#ddf;
|datastyle    =  
|datastyle    =  
|header1 = About
|header1 = About
Line 88: Line 18:
|label5  = Underground?
|label5  = Underground?
|data5  = {{{underground|No}}}
|data5  = {{{underground|No}}}
|label6 = Fortified?
|label6  = Public access?
|data6  = {{{fortified|No}}}
|data6 = {{{publicaccess|No}}}
|label7 = Public access?
|label7 = Public build?
|data7 = {{{publicaccess|No}}}
|data7 = {{{publicbuild|No}}}
|label8 = Public build?
|label8 = Size north to south
|data8 = {{{publicbuild|No}}}
|data8 = {{#if:{{{n-s_size|}}}|{{{n-s_size|unspecified }}}m|}}
|label9 = Size north to south
|label9   = Size west to east
|data9 = {{#if:{{{n-s_size|}}}|{{{n-s_size|unspecified }}}m|}}
|data9 = {{#if:{{{w-e_size|}}}|{{{w-e_size|unspecified }}}m|}}
|label10   = Size west to east
|header10 = Transport
|data10 = {{#if:{{{w-e_size|}}}|{{{w-e_size|unspecified }}}m|}}
|label11 = Road link?
|header11 = Transport
|data11 = {{{roadlink|No}}}
|label12 = Road link?
|label12 = [[Gallifreyan Transit Authority|Subway]] link?
|data12 = {{{roadlink|No}}}
|data12 = {{{sublink|No}}}
|label13 = [[Project Anubis|Nexus]] link?
|label13 = [[Gallifreyan Transit Authority|Nether]] link?
|data13 = {{{nexuslink|No}}}
|data13 = {{{netherlink|No}}}
|label14 = [[Freedonia Railway System|Rail]] link?
|label14 = Portal?
|data14 = {{{raillink|No}}}
|data14 = {{{portal|No}}}
|label15 = [[Boat Routes|Boat]] link?
|header15 = Location
|data15 = {{{boatlink|No}}}
|label16 = Coordinates
|label16 = Portal?
|data16   = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data16 = {{{portal|No}}}
|label17  = Server
|header17 = Location
|data17  = {{#if:{{{server|}}}|[[{{{server|}}}]]|[[BadWolfMC Alpha|Alpha]]}}
|label18 = Coordinates
|label18 = Dimension
|data18   = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|data18   = {{{dimension|Overworld}}}
|label19 = Dimension
|label19  = /res tp
|data19   = {{{dimension|Overworld}}}
|data19  = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}}
|label20  = Nearest [[warp]]
|label20  = Nearest [[warp]]
|data20  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
|data20  = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
|belowstyle = background:#ddf;
|below = {{#if:{{{xcoord|}}}|[http://minecraftonline.com/map/#/{{{xcoord|}}}/{{{ycoord|64}}}/{{{zcoord|}}}/-3/{{#switch:{{{dimension|}}}|Overworld=0|Nether=2|End=1|0}}/0 Map link]|Please contribute the coordinates for this settlement.[[Category:pages_in_need_of_coordinates]]}}
}}
}}
[[Category:Settlements]]
[[Category:Settlements]]
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{{title|}}}]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{{title|}}}]]|}}{{#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:09, 6 May 2025