Difference between revisions of "Test onlyinclude"

From FollowTheScore
Jump to: navigation, search
(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...)
 
Line 5: Line 5:
 
{{: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:
  
But with DPL,
+
Parser extension:
 
  <DPL>
 
  <DPL>
 
   category=Test onlyinclude
 
   category=Test onlyinclude
Line 15: Line 16:
 
   includepage=*
 
   includepage=*
 
</DPL>
 
</DPL>
 
+
----
 +
Parser function:
 
  { {#dpl:
 
  { {#dpl:
 
   |category=Test onlyinclude
 
   |category=Test onlyinclude

Revision as of 20:40, 3 May 2007

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>

Parser function:

{ {#dpl:
  |category=Test onlyinclude
  |includepage=*
}}

This text is the onlyinclude section