Difference between revisions of "Template:Infobox water supply asset"

From Cvillepedia
Jump to: navigation, search
(forgot to include the "type" tag in the "cancelled" call.)
m (Failing computer 101 here, sorry guys....)
 
(6 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
}}
 
}}
 
}}
 
}}
 +
{{!}}-
 +
{{#if:{{{status|}}}|
 +
{{!}} colspan="4" style="text-align:center;" {{!}} {{#switch: {{{status}}} | canceled = {{canceled|type=water}} }}
 +
}}
 +
{{!}}-
 
! colspan=4 style="background-color: #69c; color: white" | Summary
 
! colspan=4 style="background-color: #69c; color: white" | Summary
 
|- class="note" style="text-align: left"
 
|- class="note" style="text-align: left"
Line 45: Line 50:
 
| {{{elevation-m}}} m / {{{elevation-f}}} ft
 
| {{{elevation-m}}} m / {{{elevation-f}}} ft
 
| {{{elevation-f}}} ft / {{{elevation-m}}} m }}
 
| {{{elevation-f}}} ft / {{{elevation-m}}} m }}
}}
 
|-
 
{{#switch: status
 
#canceled = {{!}} {{canceled|type=water}}
 
 
}}
 
}}
 
|- style="text-align: left"
 
|- style="text-align: left"
Line 69: Line 70:
 
{{!}} colspan=4 style="text-align: left; background-color: #eee" {{!}} {{{footnotes}}}
 
{{!}} colspan=4 style="text-align: left; background-color: #eee" {{!}} {{{footnotes}}}
 
}}
 
}}
|}<includeonly>{{#switch: status
+
|}<includeonly>{{#switch: {{{owner}}}
| completed
+
| RWSA =[[Category:RWSA assets]]
| #default = {{#switch: owner  
+
| ACSA = [[Category:ACSA assets]]
| RWSA  
+
| default [[Category:RWSA assets]]
| #default = [[Category:RWSA assets]]
 
| ACSA = [[Category:ACSA assets]]}}
 
| canceled = [[Canceled water supply projects]]
 
 
}}</includeonly><noinclude>{{clear}}{{Infobox water supply asset/doc}}</noinclude>
 
}}</includeonly><noinclude>{{clear}}{{Infobox water supply asset/doc}}</noinclude>

Latest revision as of 16:25, 26 January 2010

Infobox water supply asset
Summary
Owner [[{{{owner}}}]]

Use on any asset related to the water supply and sewage systems, including those not yet constructed.

Parameters

The sole required parameter is "owner".

This should be the name of one of the three pages that might own water supply assets (do not include brackets in your code):

function

Shows as "type", should be one of

  • Dam
  • Reservoir
  • Water supply pipeline
  • Water treatment plant
  • Sewer pipeline
  • Sewer treatment plant

status

Values are:

  • completed
  • canceled
  • more to come

This affects the categorization and the display of the status indicator.

name

Template uses the page title by default; this is your override.

image, caption

Works together, as you'd expect.

footnotes

If you have a references section for the infobox, great, or for other notes.

area-served

The area served.

location

built

capacity

elevation

coordinates

website