Help:Embedded format

The result format embedded is used to embed the contents of the pages in a query result into a page. The embedding uses MediaWiki transclusion (like when inserting a template), so the tags  and   work for controlling what is displayed.

Format specific
The embedded format introduces the following additional parameters:
 * : this defines which kinds of headings to use when pages are embedded, may be a heading level, i.e. one of,  ,  ,  ,  ,  , or a description of a list format, i.e. one of   and
 * : if this parameter has any value (e.g. ), then no headings are used for the embedded pages at all.

Example
The following creates a list of recent news posted on this site (like in a blog):
 * Syntax


 * Result

Remarks

 * Note that by default this result format also adds all annotations from the pages that are being embedded to the page they are embedded to.CiteRef::gh:smw:1076 Starting with this can be prevented for annotations done via parser functions   parser function and   parser function by setting the   parameter to "yes".CiteRef::gh:smw:1455 in-text annotations will continue to be embedded. Thus these annotations need to be migrated to use the   parser function to prevent this from happening.


 * Note that embedding pages may accidentally include category statements if the embedded articles have any categories. Use  to prevent this, e.g. by writing  . Starting with  category statements will automatically be filtered from transcluded content. Thus the described trick to prevent this from happening is no longer necessary.


 * Note that Semantic MediaWiki will take care that embedded articles do not import their semantic annotations, so these need not be treated specifically.


 * Note that printout statements have no effect on embedding queries.

Limitations
You cannot use the embed format to embed a query from another page if that query relies on the magic word.