This site is a playground for testing Semantic MediaWiki. All content entered or uploaded here may be deleted at any time, and nothing here should be assumed to be true.
Some content was copied from semanticweb.org – please visit this site for more reliable information and author attribution.

Template:Ask

From SMW-Sandbox

Jump to:navigation, search

Standard queries and links: <ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.<ask> no longer supported. See SMW documentation on how to do inline queries now.



This template is called from many pages of all kinds and executes many queries to find various info related to the page, including info related to an attribute value equal to the pagename. For server efficiency it is being replaced by templates specific to a page category; they also add the category tag, see Relation:Category added by template; from each of these templates queries which cannot be applicable to pages in that category have been removed.

See its discussion page for criticism of this approach.

This template requires the MetaWikiPedia:ParserFunctions extension.

To substitute the template, use {{subst:ask|subst=subst:}}.

If the page concerned is a relation, attribute or category page it generates a table of all instances of this property, unless the template is called with parameter "list=no". The latter is useful if an adapted version of the table is made separately, to avoid duplication.

In general it shows various directly and indirectly related pages and values. For this purpose the template contains many queries regarding specific relations and attributes.

In the case of an attribute of other than string type, a pagename which is not a valid value would produce all instances of the attribute concerned. Therefore such attributes have not been used in selection parts of the queries.

Use is made of the fact that if the set of pages selected in a query is empty, no header row or blank line, not even any blank space, is produced, so that queries which are not applicable do not clutter the output.

Some query results have CSS class "indirectlyrelevant". They are hidden by default but can be seen with the CSS code:

.indirectlyrelevant {display: block !important }

The template provides links for searching the Web, and searching all Wikipedias. Parameter st is the search phrase, with as default the pagename (with spaces, not underscores). This part has CSS class "searchlinks". It is also hidden by default, but enabled with the CSS code:

.searchlinks {display: block !important } 


Navigation
Toolbox