Difference between revisions of "Template:Linked Articles"
From AquaPedia Case Study Database
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|}}} | 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|}}} | 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|}}} | 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%;" | |
Revision as of 13:55, 25 February 2013
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.