Template:Linked Articles: Difference between revisions
Jump to navigation
Jump to search
| [unchecked revision] | [unchecked revision] |
Fix SMW queries for Agreement pages: use Riparian/Water Feature instead of Agreement Includes properties |
Fix SMW queries for Agreement pages: use Riparian/Water Feature instead of Agreement Includes properties |
||
| 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|}}}]]|?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|}}}]]|?Riparian=Agreement includes riparian-|format=list|headers=plain|mainlabel=-|link=all|offset=0|limit=50|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>}} | }} | ||
| Line 28: | Line 28: | ||
<!--Features --> | <!--Features --> | ||
{{#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|}}} | 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|}}}]]|?Water Feature=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|}}}]]|?Water Feature=Includes Water Resource- |format=list|headers=plain|mainlabel=-|link=all|offset=0|limit=50|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>}} }} | ||
{{#if: {{{Water Features|}}} | {{#arraymap:{{{Water Features}}}|;|x|Other - [[Water Feature::x]] | <BR>}} | }} | {{#if: {{{Water Features|}}} | {{#arraymap:{{{Water Features}}}|;|x|Other - [[Water Feature::x]] | <BR>}} | }} | ||
Revision as of 11:27, 15 December 2025
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.