Template:Infobox water supply asset: Difference between revisions

From Cvillepedia
Jump to navigation Jump to search
(attempt to add status parameter)
m (Failing computer 101 here, sorry guys....)
 
(8 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}}
}}
}}
|- 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}}}
| complete
| RWSA =[[Category:RWSA assets]]
| #default = {{#switch: owner |#default [[Category:RWSA assets]]| ACSA = [[Category:ACSA assets]]}}
| ACSA = [[Category:ACSA assets]]
| canceled = [[Canceled water supply projects]]
| default [[Category:RWSA assets]]
}}</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