Template:City: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(added sections for PvP)
m (Changed protection settings for "Template:City" ([Edit=⧼protect-level-Trusted⧽] (indefinite) [Move=⧼protect-level-Trusted⧽] (indefinite)))
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>
 
{{Infobox
| title  = {{{title|}}}
| title  = {{{title|}}}
| image  = {{{image|}}}
| image  = {{{image|}}}
| caption = {{{caption|}}}
| caption = {{{caption|}}}
| headerstyle = background:#ccf;
| headerstyle = background:#ccf;
| labelstyle  = width:33%;background:#ddf;
| labelstyle  = width:45%;background:#ddf;
| header1 = {{#if: {{{server|}}}{{{warp|}}}{{{coordinates|}}} | Location}}
| label1 = Server
| label2 = Server
| data1   = {{{server|}}}
| data2   = {{{server|}}}
| label2 = Map revision
| label3 = Map revision
| data2   = {{{map revision|}}}
| data3   = {{{map revision|}}} {{#switch: {{lc:{{{server|}}}}}
| label3  = Warp
| [[creative]] = {{#ifeq: {{{map revision|}}} | {{Current Creative map revision}} | (current)}}
| data3  = {{{warp|}}}
| [[survival]] = {{#ifeq: {{{map revision|}}} | {{Current Survival map revision}} | (current)}}
| label4  = Coordinates
| [[chaos]] = {{#ifeq: {{{map revision|}}} | {{Current Chaos map revision}} | (current)}}
| data4  = {{{coordinates|}}}
| [[pve]] = {{#ifeq: {{{map revision|}}} | {{Current PvE map revision}} | (current)}} }}
| header5 = {{#if: {{{started|}}}{{{completed|}}} | Timeline}}
| [[pvp]] = {{#ifeq: {{{map revision|}}} | {{Current PvP map revision}} | (current)}} }}
| label6 = Started
| label4 = Warp
| data6   = {{{started|}}}
| data4   = {{{warp|}}}
| label7 = Completed
| label5 = Coordinates
| data7   = {{{completed|}}}
| data5   = {{{coordinates|}}}
| header8 = {{#if: {{{mayors|}}}{{{residents|}}} | Creators}}
| header6 = {{#if: {{{mayors|}}}{{{residents|}}} | Creators}}
| label9 = Mayors
| label7 = Mayors
| data9   = {{{mayors|}}}
| data7   = {{{mayors|}}}
| label10 = Residents
| label8 = Residents
| data10   = {{{residents|}}}
| data8   = {{{residents|}}}
 
| label9  = Evicted
}}
| data9  = {{{evicted|}}}
 
| header10 = {{#if: {{{started|}}}{{{completed|}}} | Timeline}}
{{#ifeq: {{NAMESPACE}} | Template | |  {{#switch: {{lc:{{{server|}}}}}
| label11 = Started
| data11  = {{{started|}}}
| label12 = Completed
| data12  = {{{completed|}}}
}}{{#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)]]}}
| 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)]]}}

Latest revision as of 23:39, 2 February 2023

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
Server PvE
Map revision 17
Coordinates 0, 0
Timeline
Started date
Completed date
Creators
Mayors example, example, example
Residents example, example, example


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
}}