Template:CityExtended: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(Created page with "{{CityExtended | name = Test | image = 225px | caption = Caption of image | server = PvE | map revision = 3 | map revision a...")
 
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{CityExtended
<includeonly>{{Infobox
| name       = Test
| title  = {{{name|}}}
| image       = [[Image:Example.png|225px]]
| image   = {{{image|}}}
| caption     = Caption of image
| caption = {{{caption|}}}
| server      = [[PvE]]
| headerstyle = background:#ccf;
| map revision = 3
| labelstyle  = width:33%;background:#ddf;
| map revision as city = 4 through 16
| header1 = {{#if: {{{server|}}}{{{warp|}}}{{{coordinates|}}} | Location}}
| map revision in exile = 17 through 18
| label2 = Server
| warp         = test
| data2  = {{{server|}}}
| coordinates = 1, 2
| label3  = Map revisions
| mayors        = foo
| data3  = {{{maprevision|}}} {{#switch: {{lc:{{{server|}}}}}
| contributors = bar, baz
| [[creative]] = {{#ifeq: {{{maprevision|}}} | {{Current Creative map revision}} | (current)}}
| evicted      = baz, bar
| [[survival]] = {{#ifeq: {{{maprevision|}}} | {{Current Survival map revision}} | (current)}}
| started      = 2011-01-02
| [[chaos]] = {{#ifeq: {{{maprevision|}}} | {{Current Chaos map revision}} | (current)}}
| completed    = 2011-01-05
| [[pve]] = {{#ifeq: {{{maprevision|}}} | {{Current PvE map revision}} | (current)}}
| spleef team = The Senators
| colors = white, light blue, and blue
}}
}}
Using this template on a page will automatically add the page to a category based on the <code>server</code> and <code>map revision</code> parameters.
| label4  = Warp
| data4  = {{{warp|}}}
| label5  = Coordinates
| data5  = {{{coordinates|}}}
| header6= {{#if: {{{mayors|}}}{{{contributors|}}} | Creators}}
| label7  = Mayors
| data7  = {{{mayors|}}}
| label8  = Citizens
| data8  = {{{contributors|}}}
| label9  = Evicted
| data9  = {{{evicted|}}}
| header10 = {{#if: {{{started|}}}{{{maprevisionsascity|}}}{{{maprevisionsinexile|}}}| Timeline}}
| label11 = Started
| data11  = {{{started|}}}
| label12  = Map revisions as city
| data12  = {{{maprevisionsascity|}}}
| label13  = Map revisions in exile
| data13  = {{{maprevisionsinexile|}}}
| header14 =  {{#if: {{{spleefteam|}}}{{{colors|}}} | City Info}}
| label15  = Spleef Team
| data15  = {{{spleefteam|}}}
| label16  = City Colors
| data16  = {{{colors|}}}


<pre style="overflow:auto">
}}{{#ifeq: {{NAMESPACE}} | Template | |  {{#switch: {{lc:{{{server|}}}}}
{{CityExtended
| [[creative]] = {{#if: {{{map revision|}}} | [[Category:Creative creations (map revision {{{map revision}}})]] | [[Category:Creative creations (unknown map revision)]]}}
| name        = Test
| creative = {{#if: {{{map revision|}}} | [[Category:Creative creations (map revision {{{map revision}}})]] | [[Category:Creative creations (unknown map revision)]]}}
| image        = [[Image:Example.png|225px]]
| [[survival]] = {{#if: {{{map revision|}}} | [[Category:Survival creations (map revision {{{map revision}}})]] | [[Category:Survival creations (unknown map revision)]]}}
| caption      = Caption
| survival = {{#if: {{{map revision|}}} | [[Category:Survival creations (map revision {{{map revision}}})]] | [[Category:Survival creations (unknown map revision)]]}}
| server      = [[Creative]] / [[Survival]] / [[PvE]] / [[Chaos]] Remember put server name in brackets
| [[pve]] = {{#if: {{{map revision|}}} | [[Category:PvE creations (map revision {{{map revision}}})]] | [[Category:PvE creations (unknown map revision)]]}}
| map revision = 3
| pve = {{#if: {{{map revision|}}} | [[Category:PvE creations (map revision {{{map revision}}})]] | [[Category:PvE creations (unknown map revision)]]}}
| map revision as city = 4 through 16
| [[chaos]] = {{#if: {{{map revision|}}} | [[Category:Chaos creations (map revision {{{map revision}}})]] | [[Category:Chaos creations (unknown map revision)]]}}
| map revision in exile = 17 through 18
| chaos = {{#if: {{{map revision|}}} | [[Category:Chaos creations (map revision {{{map revision}}})]] | [[Category:Chaos creations (unknown map revision)]]}}
| warp        = test
|#default = [[Category:Unknown creations]]}}
| coordinates  = 1, 2
}}</includeonly><noinclude>{{documentation}}</noinclude>
| mayors        = foo
| contributors = bar, baz
| evicted      = baz, bar
| started      = 2011-01-02
| completed    = 2011-01-05
| spleef team = The Senators
| colors = white, light blue, and blue
}}
</pre>
 
== Parameters ==
 
; name : city name
; image : image of the city
; caption : caption under the image.
; server : link to the server page. put brackets around server name.
; map revision : map revision (the template will automatically add (current) if it is the current revision)
; warp : warp name
; coordinates : x and z coordinates
; mayors : lead designer or builder
; contributors : contributors or builders
; evicted : previous contributors or builders forceable removed
; started : start date ([http://en.wikipedia.org/wiki/ISO_8601 YYYY-MM-DD])
; completed : completion date ([http://en.wikipedia.org/wiki/ISO_8601 YYYY-MM-DD])
; spleef team : spleef team
; colors : city colors
 
<includeonly>[[Category:Templates]]</includeonly>

Latest revision as of 09:37, 2 June 2016

Documentation icon Template documentation[view] [edit] [history] [purge]
Test
Example.png
Caption
Location
Server Creative / Survival / PvE / Chaos Remember put server name in brackets
Warp test
Coordinates 1, 2
Creators
Mayors foo
Citizens bar, baz
Evicted baz, bar
Timeline
Started 2011-01-02
Map revisions as city 4 through 16
Map revisions in exile 17 through 18
City Info
Spleef Team SploofyMcSpleefface
City Colors white, light blue, and blue
{{CityExtended
| name        = Test
| image        = [[Image:Example.png|225px]]
| caption      = Caption
| server       = [[Creative]] / [[Survival]] / [[PvE]] / [[Chaos]] Remember put server name in brackets
| maprevisions = 3
| maprevisionsascity = 4 through 16
| maprevisionsinexile = 17 through 18
| warp         = test
| coordinates  = 1, 2
| mayors         = foo
| contributors = bar, baz
| evicted      = baz, bar
| started      = 2011-01-02
| completed    = 2011-01-05
| spleefteam = SploofyMcSpleefface
| colors = white, light blue, and blue
}}

Parameters

name
city name
image
image of the city
caption
caption under the image.
server
link to the server page. put brackets around server name.
map revision
map revision (the template will automatically add (current) if it is the current revision)
warp
warp name
coordinates
x and z coordinates
mayors
lead designer or builder
contributors
contributors or builders
evicted
previous contributors or builders forceable removed
started
start date (YYYY-MM-DD)
completed
completion date (YYYY-MM-DD)
spleef team
spleef team
colors
city colors