Template:Waterbody: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(37 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> | ||
{{#ifeq:{{NAMESPACE}}| Info | <div class="irlbody irlbow">{{IRL header|cat=Water Body|toc=no}} }} | |||
<div class="irlcontenttop"> | |||
{| class="wikitable" | {| class="wikitable" | ||
! colspan=" | ! 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=" | | 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=" | | 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|}}} | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
{{Map Embed|coord={{{Coordinates|}}}|zoom= | {{Map Embed|coord={{{Coordinates|}}}|zoom=12|width=640}} | ||
</div></div> }} | </div></div> }} | ||
|}</div>< | |} | ||
{{#ifeq:{{NAMESPACE}}|Info|[[Category:{{{Water|}}} | </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 08: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.
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Water Body Name | Name | Water Body Name | String | required |
Type | Type | Select a water body type. | String | required |
Basin | Water | Select the main basin this water body connects to. | String | required |
County | County | Select a county | String | required |
Coordinates | Coordinates | Enter the water body's GIS coordinates. | String | required |
Description | Description | A brief one or two paragraph description of the water body. | Content | required |
Image | Image | Enter a .jpg image filename or upload an image. | File | suggested |
Related Article | Article | A related article title from this site. | Page name | optional |
Web Link 1 | Link1 | Full URL pointing to a related web site. | URL | optional |
Web Link 2 | Link2 | Full URL pointing to a related web site. | Unknown | optional |
Web Link 3 | Link3 | Full URL pointing to a related web site. | URL | optional |
Poster | Poster | Poster's username. Auto-filled
| User | optional |
Post Date | Posted | Date the entry was created. Auto-filled
| String | optional |
The above documentation is transcluded from Template:Waterbody/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |