Difference between revisions of "Template:Ask/Main"

From Wikispooks
Jump to navigation Jump to search
(fix desc)
m (t)
Line 9: Line 9:
 
|headers=Date/Attributed to/Perpetrator(s)/Description
 
|headers=Date/Attributed to/Perpetrator(s)/Description
 
}}</nowiki></font></poem>
 
}}</nowiki></font></poem>
Currently support up to 7 columns specified by <font face="courier">|properties</font> and <font face="courier">|headers</font>, as a /-separated list
+
Currently supports up to 7 columns specified by <font face="courier">|properties</font> and <font face="courier">|headers</font>, as a /-separated list
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{{#if: {{#titleparts: {{{properties}}} | -6 }}|{{#ask: {{{expression}}} |mainlabel={{{mainlabel|}}}|format=table
 
{{#if: {{#titleparts: {{{properties}}} | -6 }}|{{#ask: {{{expression}}} |mainlabel={{{mainlabel|}}}|format=table

Revision as of 05:05, 3 May 2014

Not to be confused with the parser function, #Ask: from Semantic MediaWiki, 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
|properties=Started/ON has cause/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