Template:City: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(added sections for PvP)
No edit summary
Line 6: Line 6:
| labelstyle  = width:33%;background:#ddf;
| labelstyle  = width:33%;background:#ddf;
| header1 = {{#if: {{{server|}}}{{{warp|}}}{{{coordinates|}}} | Location}}
| header1 = {{#if: {{{server|}}}{{{warp|}}}{{{coordinates|}}} | Location}}
| label2 = Server
| label1 = Server
| data2   = {{{server|}}}
| data1   = {{{server|}}}
| label3 = Map revision
| label2 = Map revision
| data3   = {{{map revision|}}} {{#switch: {{lc:{{{server|}}}}}
| data2   = {{{map revision|}}} {{#switch: {{lc:{{{server|}}}}}
| [[creative]] = {{#ifeq: {{{map revision|}}} | {{Current Creative map revision}} | (current)}}
| [[creative]] = {{#ifeq: {{{map revision|}}} | {{Current Creative map revision}} | (current)}}
| [[survival]] = {{#ifeq: {{{map revision|}}} | {{Current Survival map revision}} | (current)}}
| [[survival]] = {{#ifeq: {{{map revision|}}} | {{Current Survival map revision}} | (current)}}
Line 15: Line 15:
| [[pve]] = {{#ifeq: {{{map revision|}}} | {{Current PvE map revision}} | (current)}} }}
| [[pve]] = {{#ifeq: {{{map revision|}}} | {{Current PvE map revision}} | (current)}} }}
| [[pvp]] = {{#ifeq: {{{map revision|}}} | {{Current PvP map revision}} | (current)}} }}
| [[pvp]] = {{#ifeq: {{{map revision|}}} | {{Current PvP map revision}} | (current)}} }}
| label4 = Warp
| label3 = Warp
| data4   = {{{warp|}}}
| data3   = {{{warp|}}}
| label5 = Coordinates
| label4 = Coordinates
| data5   = {{{coordinates|}}}
| data4   = {{{coordinates|}}}
| header6 = {{#if: {{{mayors|}}}{{{residents|}}} | Creators}}
| header5 = {{#if: {{{mayors|}}}{{{residents|}}} | Creators}}
| label7 = Mayors
| label6 = Mayors
| data7   = {{{mayors|}}}
| data6   = {{{mayors|}}}
| label8 = Residents
| label7 = Residents
| data8   = {{{residents|}}}
| data7   = {{{residents|}}}
| label9   = Evicted
| label8   = Evicted
| data9   = {{{evicted|}}}
| data8   = {{{evicted|}}}
| header10 = {{#if: {{{started|}}}{{{completed|}}} | Timeline}}
| header9 = {{#if: {{{started|}}}{{{completed|}}} | Timeline}}
| label11 = Started
| label10 = Started
| data11 = {{{started|}}}
| data10 = {{{started|}}}
| label12 = Completed
| label11 = Completed
| data12 = {{{completed|}}}
| data11 = {{{completed|}}}
}}{{#ifeq: {{NAMESPACE}} | Template | |  {{#switch: {{lc:{{{server|}}}}}
}}{{#ifeq: {{NAMESPACE}} | Template | |  {{#switch: {{lc:{{{server|}}}}}
| [[creative]] = {{#if: {{{map revision|}}} | [[Category:Creative creations (map revision {{{map revision}}})]] | [[Category:Creative creations (unknown map revision)]]}}
| [[creative]] = {{#if: {{{map revision|}}} | [[Category:Creative creations (map revision {{{map revision}}})]] | [[Category:Creative creations (unknown map revision)]]}}

Revision as of 15:32, 5 March 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

Parameters

city name
Newest Argoth
image
caption
"..."
server name
PvP
map revision
12
warp
coordinates
mayors
username, username
residents
username, username
started
2012-12-23
completed
2013-02-13

Example

Example City Name
Example.png
caption text
Location
Map revision 17

| label3 = Warp | data3 = | label4 = Coordinates | data4 = 0, 0 | header5 = Creators | label6 = Mayors | data6 = example, example, example | label7 = Residents | data7 = example, example, example | label8 = Evicted | data8 = | header9 = Timeline | label10 = Started | data10 = date | label11 = Completed | data11 = date }}

If you don't have something to put in a section just leave it blank and it won't be shown. :)

{{City
| title         = Example City Name
| image         = [[Image:Example.png|350px]]
| caption       = caption text
| server        = [[PvE]]
| map revision  = 17
| warp          = 
| coordinates   = {{CartoP|r=17|x=0|z=0}}
| mayors        = example, example, example
| residents     = example, example, example
| started       = date
| completed     = date
}}