Template:Onlyinclude
Template:Onlyinclude
Usage: {{subst:onlyinclude|id=keyword|text to be included}}
This template should always be substituted (i.e., use {{subst:Onlyinclude}}). |
This is a convenience template for inserting a selective transclusion clause, as described at WP:Transclusion. It can be used to include a part of a source document from any other target document by providing a unique keyword.
By substituting this template in the source document (see Usage below), the following will be inserted:
<onlyinclude>{{#ifeq:{{{1|''keyword''}}}|''keyword''|''text to be included''}}</onlyinclude>
When the source document is viewed, the text to be included will be displayed regardless of the <onlyinclude>
tags.
To display the text to be included in a target document, the source document should be transcluded along with the keyword (see below).