Examples/Different link parameter options

From semantic-mediawiki.org
< Category:Examples
QueriesExamples/Different link parameter options
Description Inline queries offer many different parameters to control printout statements. This help page demonstrates the usage of the different options to the link parameter.
Extension(s) Semantic MediaWiki
Keyword(s) inline queries·table output
Inline queries


Available settings[edit]

all (default)[edit]

Setting the parameter "link" to "all" means that the results, i.e. the requested pages as well as the requested printouts will be linked. This is the default setting.

{{#ask:
 [[Category:City]]
 [[Located in::+]]
 |?Located in
 |?Population
 |link=all
 |limit=5
}}
 Located inPopulationThe number of inhabitants of some geographical place.
AmsterdamNetherlands783,364
BerlinGermany3,520,061
CologneGermany1,080,394
FrankfurtGermany679,664
FresnoCalifornia
... further results

Since this is the default setting one does not explicitly have to state link=all in the query:

{{#ask:
 [[Category:City]]
 [[Located in::+]]
 |?Located in
 |?Population
 |limit=5
}}
 Located inPopulationThe number of inhabitants of some geographical place.
AmsterdamNetherlands783,364
BerlinGermany3,520,061
CologneGermany1,080,394
FrankfurtGermany679,664
FresnoCalifornia
... further results

none[edit]

Setting the parameter "link" to "none" means that neither the results, i.e. the requested pages nor the requested printouts will be linked.

{{#ask:
 [[Category:City]]
 [[Located in::+]]
 |?Located in
 |?Population
 |link=none
 |limit=5
}}
 Located inPopulationThe number of inhabitants of some geographical place.
Demo:AmsterdamNetherlands783,364
Demo:BerlinDemo:Germany3,520,061
Demo:CologneDemo:Germany1,080,394
Demo:FrankfurtDemo:Germany679,664
FresnoDemo:California
... further results

subject[edit]

Setting the parameter "link" to "subject" means that the results, i.e. the requested pages will be linked but not the requested printouts.

{{#ask:
 [[Category:City]]
 [[Located in::+]]
 |?Located in
 |?Population
 |link=subject
 |limit=5
}}
 Located inPopulationThe number of inhabitants of some geographical place.
AmsterdamNetherlands783,364
BerlinDemo:Germany3,520,061
CologneDemo:Germany1,080,394
FrankfurtDemo:Germany679,664
FresnoDemo:California
... further results