Jump to content

Template:Infobox settlement: Difference between revisions

From BadWolfMC Wiki
No edit summary
No edit summary
 
(2 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 [[settlement]]s category. It will add the page to the category and produce 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 built by '''more than two''' players - for individual builds or 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
|publicaccess = Yes
|publicbuild  = Yes
|n-s_size    = 100
|w-e_size    = 100
|roadlink    = Yes
|sublink      = Yes
|netherlink  = Yes (Station Blue Blue)
|portal      = No
|xcoord      = -1204
|ycoord      = 62
|zcoord      = 3028
|server      = Alpha
|dimension    = Gallifrey
|restp        = awesometown
|nearestwarp  = AwesomeTown
}}
</pre>
 
Or use this blank template:
<pre>
{{Infobox settlement
|title        =
|image        =
|caption      =
|founder      =
|contributors =
|category    =
|underground  =
|publicaccess =
|publicbuild  =
|n-s_size    =
|w-e_size    =
|roadlink    =
|sublink      =
|netherlink  =
|portal      =
|xcoord      =
|ycoord      =
|zcoord      =
|server      =
|dimension    =
|restp        =
|nearestwarp  =
}}
</pre>
 
</noinclude><includeonly>{{Infobox
|name        =  
|name        =  
|bodystyle    =
|bodystyle    =
Line 75: Line 8:
|caption      = {{{caption|}}}
|caption      = {{{caption|}}}
|captionstyle =  
|captionstyle =  
|headerstyle  = color:#FFFFFF;background:#003B6F;
|labelstyle  = background:#f9f9f9;
|datastyle    =  
|datastyle    =  
|header1 = About
|header1 = About
Line 119: Line 50:
{{#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