Difference between revisions of "Template:Linked Articles"

From AquaPedia Case Study Database
Jump to: navigation, search
 
Line 22: Line 22:
 
<!--Riparians -->
 
<!--Riparians -->
 
{{#ifeq: {{{Page Type|}}} | Water Feature | {{#ask:[[Riparian in Basin::+]][[Basin::{{{The Pagename|}}}]] |?Riparian=Located in this basin- |format=list |headers=plain |mainlabel=- |link=all |sep=<BR> |offset= |limit= |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Riparian | {{#ask:[[Located in::{{{The Pagename|}}}]]|format=list|headers=hide|mainlabel=located within|link=subject|columns=1|offset=|limit=|intro=Located within|default=|outro=<BR>}} }}
 
{{#ifeq: {{{Page Type|}}} | Water Feature | {{#ask:[[Riparian in Basin::+]][[Basin::{{{The Pagename|}}}]] |?Riparian=Located in this basin- |format=list |headers=plain |mainlabel=- |link=all |sep=<BR> |offset= |limit= |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Riparian | {{#ask:[[Located in::{{{The Pagename|}}}]]|format=list|headers=hide|mainlabel=located within|link=subject|columns=1|offset=|limit=|intro=Located within|default=|outro=<BR>}} }}
{{#ifeq: {{{Page Type|}}} | Agreement |{{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Riparian=Agreement includes riparian-|format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Project in Riparian=Project is in- ||format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Riparian | {{#ask:[[Agreement Includes Riparian::{{{The Pagename|}}}]] |?=Agreement Includes Riparian-|format=ul|headers=plain|mainlabel=-|link=all|columns=1|offset=|limit=|default=}} }}
+
{{#ifeq: {{{Page Type|}}} | Agreement |{{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Riparian=Agreement includes riparian-|format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Project in Riparian=Project is in- ||format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}
 
{{#if: {{{Riparians|}}} | {{#arraymap:{{{Riparians}}}|;|x|Other -  [[Riparian::x]] | <BR>}} | }}
 
{{#if: {{{Riparians|}}} | {{#arraymap:{{{Riparians}}}|;|x|Other -  [[Riparian::x]] | <BR>}} | }}
  

Latest revision as of 14:54, 30 September 2014

This is the "Linked Articles" template. It is called by a main article template (e.g.: Water Feature) It should be called in the following format:

{{Linked Articles
|Water Features=
|Water Projects=
|Agreements=
|Riparians=
|The Pagename= (name of referred page)
|Page Type=
}}

Edit the page to see the template text.