Template:Ask/Main

From Wikispooks
< Template:Ask
Revision as of 08:09, 8 July 2016 by Robin (talk | contribs) (Robin moved page Template:Ask to Template:Ask/Main without leaving a redirect: Wrapping this in another level)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Not to be confused with the parser function, #Ask: from SMW, this template calls that one, but as a template it is more flexible in allowing a variable number of columns.
Example Usage:


{{ask
|expression= [[Constitutes::{{PAGENAME}}]] OR [[DocType::{{PAGENAME}}]] OR [[DocType::{{Uncapitalize|{{PAGENAME}}}}]]
|mainlabel=Example
|format=table
|sort=Started
|order=desc
|properties=Started/ON has perpetrator/Has cause/Description
|headers=Date/Attributed to/Perpetrator(s)/Description
}}

Currently supports up to 7 columns specified by |properties and |headers, as a /-separated list