Ask

From iGeek

SMW (Semantic MediaWiki) allows you to set attributes for articles (or sub-objects), and query on them to build results using {{#ask: but of course the ask results come with some complexities.

Some of the tips and tricks to outputting information is here:

But I have a few top things to remember:

  • ?=# <- the pound says remove beautification -- just pure result... for images, or links, this is important.
  • Categories will search the entire tree of sub-categories. Thus I created a flat tree, and ones with + in a parent contains subpages
  • SMW by default doesn't scan the "Template" namespace. [1]
  • Debug format - {{#ask: [[Category:TemplateX]]|format=debug }}
  • {{PAGESINCAT:CAT_NAME }}
  • {{DEFAULTSORT: Name, The }}<- fix in a page to ignore "the"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.