Template:Waterbody: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(42 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{Waterbody
{{Waterbody
|Name=
|Name=
|WBID=
|Type=
|Type=
|Water=
|Water=
Line 24: Line 25:
</noinclude>
</noinclude>
<noinclude>
<noinclude>
{{#cargo_declare:_table=Waterbody|Name=String|Type=String|Water=String|County=String|Coordinates=Coordinates|Description=Wikitext|Image=File|Article=Page|Link1=URL|Link2=URL|Link3=URL|Poster=String|Posted=String}}
{{#cargo_declare:_table=Waterbody|Name=String|WBID=String|Type=String|Water=String|County=String|Coordinates=Coordinates|Description=Wikitext|Image=File|Article=Page|Link1=URL|Link2=URL|Link3=URL|Poster=String|Posted=String}}
</noinclude><includeonly>{{#cargo_store:_table=Waterbody|Name={{{Name|}}}|Type={{{Type|}}}|Water={{{Water|}}}|County={{{County|}}}|Coordinates={{#replace:{{{Coordinates|}}}|<nowiki> </nowiki>}}|Description={{{Description|}}}|Image={{{Image|}}}|Article={{{Article|}}}|Link1={{{Link1|}}}|Link2={{{Link2|}}}|Link3={{{Link3|}}}|Poster={{{Poster|}}}|Posted={{{Posted|}}} }}</includeonly>
</noinclude><includeonly>{{#cargo_store:_table=Waterbody|Name={{{Name|}}}|WBID={{{WBID|}}}|Type={{{Type|}}}|Water={{{Water|}}}|County={{{County|}}}|Coordinates={{#replace:{{{Coordinates|}}}|<nowiki> </nowiki>}}|Description={{{Description|}}}|Image={{{Image|}}}|Article={{{Article|}}}|Link1={{{Link1|}}}|Link2={{{Link2|}}}|Link3={{{Link3|}}}|Poster={{{Poster|}}}|Posted={{{Posted|}}} }}</includeonly>
<includeonly>
<includeonly>
__NOINDEX__
{{#ifeq:{{NAMESPACE}}| Info | <div class="irlbody irlbow">{{IRL header|cat=Water Body|toc=no}} }}
<div class="irlbody">
{{#ifeq:{{NAMESPACE}}| Info | {{IRL header|cat=Water_Body|toc=no}} }}
<div class="irlcontenttop">
<div class="irlcontenttop">
{| class="wikitable"
{| class="wikitable"
! colspan="3" | {{#if:{{{Article|}}}|[[{{{Article|}}}|{{{Name|}}}]]|{{{Name|}}} }}
! colspan="2" | {{#if:{{{Article|}}} | <span class="irltabletitle"> <h3>[[{{{Article|}}}|{{{Name|}}}]]</h3></span> | <span class="irltabletitle"><h3>{{{Name|}}}</h3></span> }}
{{#if:{{{Image|}}} | {{!}}-
{{!}} colspan="2" {{!}} [[File:{{{Image}}}|640px|frameless|left|{{{Name}}}|link={{{Article|}}} ]]
}}
|-
|-
| colspan="3" | {{#if:{{{Image|}}}|[[File:{{{Image|}}}|310px|frameless|center|{{{Name|}}}|link={{{Article|}}} ]] }}
| colspan="2" |{{{Description|}}} {{#if:{{{Article|}}}|[[{{{Article|}}}|{{{Article|}}} Article]] }}
|-
|-
| colspan="1" | WBID: {{{WBID|}}}
| colspan="1" | Type: {{{Type|}}}
| colspan="1" | Type: {{{Type|}}}
|-
| colspan="1" | Basin: {{{Water|}}}
| colspan="1" | Basin: {{{Water|}}}
| colspan="1" | County: {{{County|}}}
| colspan="1" | County: {{{County|}}}
|-
|-
| colspan="3" |{{{Description|}}}<br/>{{#if:{{{Article|}}}|[[{{{Article|}}}|{{{Name|}}} Article]] }}<br/>{{#if:{{{Link1|}}}|[{{{Link1|}}}] }} {{#if:{{{Link2|}}}|<br/>[{{{Link2|}}}] }} {{#if:{{{Link3|}}}|<br/>[{{{Link3|}}}] }}
| colspan="2" |{{#if:{{{Coordinates|}}}|{{#if:{{{Image|}}}| <div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"> | <div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"> }} Location: {{{Coordinates|}}}
|-
| colspan="3" |{{#if:{{{Coordinates|}}}|<div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Show Map" data-collapsetext="Hide Map">Location: {{{Coordinates|}}}
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{Map Embed|coord={{{Coordinates|}}}|zoom=10}}
{{Map Embed|coord={{{Coordinates|}}}|zoom=12|width=640}}
Tap for an active map.
</div></div> }}
</div></div> }}
|}</div></div>
|}
{{#ifeq:{{NAMESPACE}}|Info|[[Category:{{{Water|}}} Water_Body]]
</div> <!-- END IRL TOP -->
{{#default_form:Waterbody}} }}
{{#ifeq:{{NAMESPACE}} | Info | {{#if:{{{Link1|}}} | <div class="irlcontentmiddle">
<h3>Web Links</h3>
[{{{Link1|}}}] {{#if:{{{Link2|}}}|<br/>[{{{Link2|}}}] }} {{#if:{{{Link3|}}}|<br/>[{{{Link3|}}}] }}</div>| }}
</div> <!-- END IRL BODY -->
[[Category:{{{Water|}}} Tributaries]] {{#default_form:Waterbody}}  
| }}
</includeonly>
</includeonly>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 09:52, July 9, 2021

This is the "Waterbody" template.

Use Waterbody Form to add/edit a waterbody entry.

It should be called in the following format:

{{Waterbody
|Name=
|WBID=
|Type=
|Water=
|County=
|Coordinates=
|Description=
|Image=
|Article=
|Link1=
|Link2=
|Link3=
|Poster=
|Posted=
}}


This template defines the table "Waterbody". View table.


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

Waterbody Info Box Template

Waterbody Template uses the Waterbody Form to collect info needed for a Waterbody Info Box. The data is stored in Cargo Table: Waterbody.

Template parameters

ParameterDescriptionTypeStatus
Water Body NameName

Water Body Name

Stringrequired
TypeType

Select a water body type.

Stringrequired
BasinWater

Select the main basin this water body connects to.

Stringrequired
CountyCounty

Select a county

Stringrequired
CoordinatesCoordinates

Enter the water body's GIS coordinates.

Stringrequired
DescriptionDescription

A brief one or two paragraph description of the water body.

Contentrequired
ImageImage

Enter a .jpg image filename or upload an image.

Filesuggested
Related ArticleArticle

A related article title from this site.

Page nameoptional
Web Link 1Link1

Full URL pointing to a related web site.

URLoptional
Web Link 2Link2

Full URL pointing to a related web site.

Unknownoptional
Web Link 3Link3

Full URL pointing to a related web site.

URLoptional
PosterPoster

Poster's username. Auto-filled

Auto value
current_user
Useroptional
Post DatePosted

Date the entry was created. Auto-filled

Auto value
{{LOCALTIMESTAMP}}
Stringoptional