Difference between revisions of "Test onlyinclude"
From FollowTheScore
(New page: This page transcludes part of another page that uses [http://meta.wikimedia.org/wiki/Help:Template#Noinclude.2C_includeonly.2C_and_onlyinclude onlyinclude] blocks. Here's how normal trans...) |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Type Test | ||
| + | |parameter = onlyinclude | ||
| + | }} | ||
This page transcludes part of another page that uses [http://meta.wikimedia.org/wiki/Help:Template#Noinclude.2C_includeonly.2C_and_onlyinclude onlyinclude] blocks. | This page transcludes part of another page that uses [http://meta.wikimedia.org/wiki/Help:Template#Noinclude.2C_includeonly.2C_and_onlyinclude onlyinclude] blocks. | ||
| Line 5: | Line 8: | ||
{{:Test onlyinclude - included page}} | {{:Test onlyinclude - included page}} | ||
---- | ---- | ||
| + | You need to use DPL2 as a parser function, not as a parser extension, to take advantage of this: | ||
| − | + | Parser extension: | |
<DPL> | <DPL> | ||
category=Test onlyinclude | category=Test onlyinclude | ||
| Line 15: | Line 19: | ||
includepage=* | includepage=* | ||
</DPL> | </DPL> | ||
| − | + | ---- | |
| + | Parser function: | ||
{ {#dpl: | { {#dpl: | ||
|category=Test onlyinclude | |category=Test onlyinclude | ||
| Line 24: | Line 29: | ||
|includepage=* | |includepage=* | ||
}} | }} | ||
| + | [[Category:Test]] | ||
Latest revision as of 11:31, 28 January 2008
| Test | onlyinclude |
This page transcludes part of another page that uses onlyinclude blocks.
Here's how normal transclusion looks:
This text is the onlyinclude section
You need to use DPL2 as a parser function, not as a parser extension, to take advantage of this:
Parser extension:
<DPL> category=Test onlyinclude includepage=* </DPL>
- Test onlyinclude - included page
Leading text This text is the onlyinclude sectionHeading 2
- Section 2
- And more stuff
Parser function:
{ {#dpl:
|category=Test onlyinclude
|includepage=*
}}
This text is the onlyinclude section