Wikipedia:Requests for comment/Arbitration Committee/Transclusion notice/doc

Usage

To create a page which uses this template, use the following in your page:

To indicate text that will appear on the page but will not appear when it is transcluded:

<noinclude><!-- part of tranclusion mechanism, do not modify -->
text goes here
</noinclude><!-- part of tranclusion mechanism, do not modify -->

To indicate text that will be included only in transcluded pages and then only if expand=no, but not in the page when it is viewed by itself:

<includeonly>{{#ifeq:{{{expand|no}}}|no| <!-- part of tranclusion mechanism, do not modify -->
text goes here
}}</includeonly> <!-- part of tranclusion mechanism -->

To indicate text that will be included when the page is viewed by itself OR when the transcluded page uses the expand=yes parameter:

{{#ifeq:{{{expand|yes}}}|yes| <!-- part of tranclusion mechanism, do not modify -->
text goes here
}}<!-- part of tranclusion mechanism, do not modify -->

Bugs and workarounds

  • If text goes here include a pipe character, |, it can break things. Replace the | with {{!}} and it will fix it. This can be a problem on discussion pages where signatures can contain pipe characters.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Requests_for_comment/Arbitration_Committee/Transclusion_notice/doc&oldid=223596146"