Template:Infobox settlement: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
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 settlements | Please only use this template for settlements built by '''more than two''' players - for individual builds or buildings, use [[Template:Infobox_building]]. | ||
==Usage== | ==Usage== | ||
Line 20: | Line 20: | ||
|category = Towns | |category = Towns | ||
|underground = No | |underground = No | ||
|publicaccess = Yes | |publicaccess = Yes | ||
|publicbuild = Yes | |publicbuild = Yes | ||
Line 26: | Line 25: | ||
|w-e_size = 100 | |w-e_size = 100 | ||
|roadlink = Yes | |roadlink = Yes | ||
| | |sublink = Yes | ||
| | |netherlink = Yes (Station Blue Blue) | ||
|portal = No | |portal = No | ||
|xcoord = -1204 | |xcoord = -1204 | ||
|ycoord = 62 | |ycoord = 62 | ||
|zcoord = 3028 | |zcoord = 3028 | ||
|dimension = | |server = Alpha | ||
|dimension = Gallifrey | |||
|restp = awesometown | |||
|nearestwarp = AwesomeTown | |nearestwarp = AwesomeTown | ||
}} | }} | ||
Line 48: | Line 48: | ||
|category = | |category = | ||
|underground = | |underground = | ||
|publicaccess = | |publicaccess = | ||
|publicbuild = | |publicbuild = | ||
Line 54: | Line 53: | ||
|w-e_size = | |w-e_size = | ||
|roadlink = | |roadlink = | ||
| | |sublink = | ||
| | |netherlink = | ||
|portal = | |portal = | ||
|xcoord = | |xcoord = | ||
|ycoord = | |ycoord = | ||
|zcoord = | |zcoord = | ||
|server = | |||
|dimension = | |dimension = | ||
|restp = | |||
|nearestwarp = | |nearestwarp = | ||
}} | }} | ||
Line 69: | Line 69: | ||
|name = | |name = | ||
|bodystyle = | |bodystyle = | ||
|title = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}} | |title = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}} | ||
|titlestyle = | |titlestyle = | ||
Line 76: | Line 75: | ||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
|captionstyle = | |captionstyle = | ||
|headerstyle = background:# | |headerstyle = color:#FFFFFF;background:#003B6F; | ||
|labelstyle = background:# | |labelstyle = background:#f9f9f9; | ||
|datastyle = | |datastyle = | ||
|header1 = About | |header1 = About | ||
Line 88: | Line 87: | ||
|label5 = Underground? | |label5 = Underground? | ||
|data5 = {{{underground|No}}} | |data5 = {{{underground|No}}} | ||
|label6 | |label6 = Public access? | ||
|data6 = {{{publicaccess|No}}} | |||
|label7 = Public build? | |||
| | |data7 = {{{publicbuild|No}}} | ||
| | |label8 = Size north to south | ||
| | |data8 = {{#if:{{{n-s_size|}}}|{{{n-s_size|unspecified }}}m|}} | ||
| | |label9 = Size west to east | ||
| | |data9 = {{#if:{{{w-e_size|}}}|{{{w-e_size|unspecified }}}m|}} | ||
| | |header10 = Transport | ||
| | |label11 = Road link? | ||
| | |data11 = {{{roadlink|No}}} | ||
| | |label12 = [[Gallifreyan Transit Authority|Subway]] link? | ||
| | |data12 = {{{sublink|No}}} | ||
| | |label13 = [[Gallifreyan Transit Authority|Nether]] link? | ||
|data13 = {{{netherlink|No}}} | |||
|label14 = Portal? | |||
| | |data14 = {{{portal|No}}} | ||
| | |header15 = Location | ||
| | |label16 = Coordinates | ||
| | |data16 = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}} | ||
| | |label17 = Server | ||
| | |data17 = {{#if:{{{server|}}}|[[{{{server|}}}]]|[[BadWolfMC Alpha|Alpha]]}} | ||
| | |label18 = Dimension | ||
| | |data18 = {{{dimension|Overworld}}} | ||
| | |label19 = /res tp | ||
| | |data19 = {{#if:{{{restp|}}}|[[:Category:Residences|{{{restp|}}}]]|Unknown}} | ||
|label20 = Nearest [[warp]] | |label20 = Nearest [[warp]] | ||
|data20 = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}} | |data20 = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}} | ||
}} | }} | ||
[[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> |
Latest revision as of 17:16, 16 July 2018
When to use
Place this on any page suitable for the settlements 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:
{{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 }}
Or use this blank template:
{{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 = }}