Jump to content

Template:Infobox serverbuild: Difference between revisions

From BadWolfMC Wiki
Undo revision 5964 by Merc (talk)
Tags: Undo Reverted
No edit summary
Tags: Manual revert Reverted
Line 7: Line 7:
Please only use this template for staff-created server builds - for player builds use [[Template:Infobox_settlement]] or [[Template:Infobox_building]].
Please only use this template for staff-created server builds - for player builds use [[Template:Infobox_settlement]] or [[Template:Infobox_building]].


==Usage==
== Usage ==
Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:
Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:
<pre>
<pre>
Line 31: Line 31:
}}
}}
</pre>
</pre>
</noinclude>
<includeonly>{{#invoke:Infobox|infobox
| name        = {{{title|{{PAGENAME}}}}}
| bodyclass    = serverbuild
| title        = {{{title}}}
| image        = [[File:{{{image|}}}|250px]]
| caption      = {{{caption|}}}


Or use this blank template:
| header1      = About
<pre>
| label2      = Contributors
{{Infobox serverbuild
| data2        = {{{contributors|}}}
|title        =  
 
|image       =  
| label3      = Category
|caption      =  
| data3       = {{#if:{{{category|}}}|[[:Category:{{{category}}}|{{{category}}}]]|}}
|contributors =  
 
|category    =  
| label4      = Underground?
|underground  =  
| data4        = {{{underground|No}}}
|public       =  
 
|startdate   =  
| label5      = Public?
|releasedate =  
| data5        = {{{public|Unknown}}}
|n-s_size     =  
 
|w-e_size     =  
| label6       = Started
|height       =  
| data6        = {{{startdate|}}}
|xcoord      =  
 
|ycoord      =  
| label7      = Released
|zcoord       =  
| data7        = {{{releasedate|}}}
|server      =  
 
|dimension    =  
| label8      = Size north to south
|nearestwarp  =  
| data8        = {{#if:{{{n-s_size|}}}|{{{n-s_size|unspecified}}}m|}}
}}
 
</pre>
| label9      = Size west to east
| data9        = {{#if:{{{w-e_size|}}}|{{{w-e_size|unspecified}}}m|}}
 
| label10      = Height
| data10       = {{#if:{{{height|}}}|{{{height|unspecified}}}m|}}
 
| header11    = Location
| label12      = Coordinates
| data12       = {{#if:{{{xcoord|}}}|X={{{xcoord}}} <br /> Y={{{ycoord}}} <br /> Z={{{zcoord}}}|}}
 
| label13      = Server
| data13      = {{#if:{{{server|}}}|[[{{{server}}}]]|[[BadWolfMC Alpha|Alpha]]}}


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.
| label14      = Dimension
| data14      = {{{dimension|Gallifrey}}}


</noinclude><includeonly>{{Infobox
| label15     = Nearest [[warp]]
|name        =
| data15       = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp}}}]]|Unknown}}
|bodystyle    =
}}</includeonly>
|title        = {{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
[[Category:Server Builds]]
|titlestyle  =
[[Category:Residences]]
|image        = [[File:{{{image|}}}|250px]]
{{#if:{{{category|}}}|[[Category:{{{category}}}|{{PAGENAME}}]]|}}
|imagestyle  =
{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}
|caption     = {{{caption|}}}
{{#if:{{{image|}}}||{{images}}}}
|captionstyle =
{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
|headerstyle  = color:#FFFFFF;background:#003B6F;
|labelstyle  = background:#f9f9f9;
|datastyle    =
|header1 = About
|label2  = Contributors
|data2  = {{{contributors|}}}
|label3  = Category
|data3  = {{#if:{{{category|}}}|[[:Category:{{{category|}}}|{{{category|}}}]]|}}
|label4  = Underground?
|data4  = {{{underground|No}}}
|label5  = Public?
|data5  = {{{public|Unknown}}}
|label6  = Started
|data6  = {{{startdate|}}}
|label7  = Released
|data7  = {{{releasedate|}}}
|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|}}
|label10  = Height
|data10  = {{#if:{{{height|}}}|{{{height|unspecified }}}m|}}
|header11 = Location
|label12  = Coordinates
|data12  = {{#if:{{{xcoord|}}}|X={{{xcoord|}}} <br /> Y={{{ycoord|}}} <br /> Z={{{zcoord|}}}|}}
|label13  = Server
|data13  = {{#if:{{{server|}}}|[[{{{server|}}}]]|[[BadWolfMC Alpha|Alpha]]}}
|label14  = Dimension
|data14  = {{{dimension|Gallifrey}}}
|label15  = Nearest [[warp]]
|data15   = {{#if:{{{nearestwarp|}}}|[[{{{nearestwarp|}}}]]|Unknown}}
}}
[[Category:Server Builds]][[Category:Residences]]
{{#if:{{{category|}}}|[[Category:{{{category|}}}|{{PAGENAME}}]]|}}{{#ifeq:{{{nearestwarp}}}|{{PAGENAME}}|[[Category:Warps]]|}}{{#if:{{{image|}}}||{{images}}}}{{#if:{{{category|}}}||[[Category:pages_in_need_of_categories]]}}
</includeonly>

Revision as of 09:55, 4 May 2025

When to use

Place this on any page suitable for the Server Builds 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 staff-created server builds - for player builds use Template:Infobox_settlement or Template:Infobox_building.

Usage

Copy the text below, paste it at the very top of the relevant article, and modify as appropriate:

{{Infobox serverbuild
|title        = AwesomeCastle
|image        = Image.png
|caption      = View from the front
|contributors = Bob, Mike
|category     = City
|underground  = No
|public       = Yes
|startdate    = 21 November 2016
|releasedate  = 17 January 2017
|n-s_size     = 40
|w-e_size     = 40
|height       = 20
|xcoord       = -1204
|ycoord       = 62
|zcoord       = 3028
|server       = Alpha
|dimension    = Gallifrey
|nearestwarp  = Citadel
}}