Difference between revisions of "Template:Ask"
Jump to navigation
Jump to search
(Created page with "<noinclude>'''This template calls the older ask template, which is now at Template:Ask/Main, but first it uses Template:Ask/Trim_empty_properties and Template:Ask/Tr...") |
|||
Line 15: | Line 15: | ||
|format={{{format|}}} | |format={{{format|}}} | ||
|sort={{{sort|}}} | |sort={{{sort|}}} | ||
− | |order={{{ | + | |order={{{order|}}} |
|properties={{Str crop|{{Ask/Trim_empty_properties|expression={{{expression|}}}|properties={{{properties|}}}}}|1}} | |properties={{Str crop|{{Ask/Trim_empty_properties|expression={{{expression|}}}|properties={{{properties|}}}}}|1}} | ||
|headers={{Str crop|{{Ask/Trim_empty_headers|expression={{{expression|}}}|properties={{{properties|}}}|headers={{{headers|}}}}}|1}} | |headers={{Str crop|{{Ask/Trim_empty_headers|expression={{{expression|}}}|properties={{{properties|}}}|headers={{{headers|}}}}}|1}} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 08:10, 8 July 2016
This template calls the older ask template, which is now at Template:Ask/Main, but first it uses Template:Ask/Trim_empty_properties and Template:Ask/Trim_empty_headers in order to eliminate any empty columns from the table it produces.
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
}}