Difference between revisions of "Template:Linked Articles"
From AquaPedia Case Study Database
(4 intermediate revisions by the same user not shown) | |||
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|}}} | 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>}} | }} | ||
| style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | | | style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | | ||
<!--Features --> | <!--Features --> | ||
− | {{#ifeq: {{{Page Type|}}} | Water Feature | {{#ask: [[{{{The Pagename|}}}]]|?Within Basin=Located in | + | {{#ifeq: {{{Page Type|}}} | Water Feature | {{#ask: [[{{{The Pagename|}}}]]|?Within Basin=Located in basin- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=  |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Feature | {{#ask:[[Within Basin::{{{The Pagename|}}}]]|?=Feature in this basin- |format=list |headers=show|mainlabel=- | link=all|offset=|limit=|default=  |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Project in Basin=Project is in basin- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default= |outro=<BR>}} }} |
{{#ifeq: {{{Page Type|}}} | Riparian | {{#ask:[[Water Resource in Riparian::+]][[Riparian::{{{The Pagename|}}}]] |?Riparian=Located in riparian- |format=list|headers=hide|mainlabel=-|link=subject|columns=1|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Resource=Includes Water Resource- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Reservoir=Associated Reservoir- |format=list| headers=plain|mainlabel=-|link=all|offset=|limit=|default=  |outro=<BR>}} }} | {{#ifeq: {{{Page Type|}}} | Riparian | {{#ask:[[Water Resource in Riparian::+]][[Riparian::{{{The Pagename|}}}]] |?Riparian=Located in riparian- |format=list|headers=hide|mainlabel=-|link=subject|columns=1|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Resource=Includes Water Resource- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Reservoir=Associated Reservoir- |format=list| headers=plain|mainlabel=-|link=all|offset=|limit=|default=  |outro=<BR>}} }} | ||
{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Project on River=Dam located on- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=  |outro=<BR>}} }} | {{#ifeq: {{{Page Type|}}} | Water Project | {{#ask:[[{{{The Pagename|}}}]]|?Project on River=Dam located on- |format=list|headers=plain|mainlabel=-|link=all|offset=|limit=|default=  |outro=<BR>}} }} | ||
Line 40: | Line 40: | ||
| style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | | | style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | | ||
<!--Projects --> | <!--Projects --> | ||
− | {{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Water Project=Agreement includes- |format=list|sep=, |mainlabel=-|headers=plain|link=subject|columns=1|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Water Projects Influenced by Agreement=Affects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|outro=<BR>|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Associated Water Project=Associated Projects- <BR> |format=list|sep=, |headers=plain|mainlabel=-|link=all|offset=|limit=|default= |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Related Initiatives or Commissions=Associated organizational projects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Related Initiatives or Commissions=Associated organizational projects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project|{{#ask:[[Project In Riparian::{{{The Pagename|}}}]] |?=located in {{{The Pagename|}}}# |format=list |headers=show |mainlabel=located in {{{The Pagename|}}} |link=all|sep=<BR> |offset=|limit=}} }} | + | {{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Agreement Includes Water Project=Agreement includes- |format=list|sep=, |mainlabel=-|headers=plain|link=subject|columns=1|offset=|limit=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Water Projects Influenced by Agreement=Affects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|outro=<BR>|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Associated Water Project=Associated Projects- <BR> |format=list|sep=, |headers=plain|mainlabel=-|link=all|offset=|limit=|default= |outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project | {{#ask: [[{{{The Pagename|}}}]]|?Related Initiatives or Commissions=Associated organizational projects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Agreement | {{#ask: [[{{{The Pagename|}}}]]|?Related Initiatives or Commissions=Associated organizational projects- |format=list|sep=, |headers=plain|mainlabel=-|link=subject|offset=|limit=|intro=|default=|outro=<BR>}} }}{{#ifeq: {{{Page Type|}}} | Water Project|{{#ask:[[Project In Riparian::{{{The Pagename|}}}]] |?=located in {{{The Pagename|}}}# |format=list |headers=show |mainlabel=located in {{{The Pagename|}}} |link=all|sep=<BR> |offset=|limit=}} }} |
{{#if: {{{Water Projects|}}} | {{#arraymap:{{{Water Projects}}}|;|x|Other - [[Water Project::x]] | <BR>}} | }} | {{#if: {{{Water Projects|}}} | {{#arraymap:{{{Water Projects}}}|;|x|Other - [[Water Project::x]] | <BR>}} | }} | ||
| style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | | | style="border-top: 1px solid #eeeeee;margin-right:5px;width:40%;" | |
Latest revision as of 13: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.