MyWikiBiz, Author Your Legacy — Sunday April 20, 2025
Jump to navigationJump to search
33 bytes added
, 23:13, 23 May 2010
Line 358:
Line 358:
== Using templates for custom formatting ==
== Using templates for custom formatting ==
−
Some of the above result formats support the use of wiki [[meta:Help:Template|template]] to fully control the display of an inline query. This works for the formats <tt>template</tt>, <tt>list</tt>, <tt>ol</tt> and <tt>ul</tt>. If a template is specified, all result «rows» are formatted using this template. The name of the template (without the initial «Template:») is given in the parameter <tt>template</tt>, so the query has the following general form:
+
Some of the above result formats support the use of wiki [http://semantic-mediawiki.org/wiki/meta:Help:Template template] to fully control the display of an inline query. This works for the formats <tt>template</tt>, <tt>list</tt>, <tt>ol</tt> and <tt>ul</tt>. If a template is specified, all result «rows» are formatted using this template. The name of the template (without the initial «Template:») is given in the parameter <tt>template</tt>, so the query has the following general form:
<nowiki>{{#ask:</nowiki> ... | format=template/list/ol/ul | template=''templatename'' }}
<nowiki>{{#ask:</nowiki> ... | format=template/list/ol/ul | template=''templatename'' }}