Difference between revisions of "Test noeditsection"

From FollowTheScore
Jump to: navigation, search
 
Line 1: Line 1:
 +
* If we use the NOEDITSECTION pragma in an article containing a DPL query it will not affect included contents.
 +
* But if we use the pragma inside a <tt>resultsheader</tt> of the DPL query it will also have an influence on contents which is transcluded by the DPL query.
 +
* There are some strange effects on TOC tables. Use NOTOC in the document and/or in the resultsheader of DPL queries to suppress the table of contents.
 +
* Have a look at the source of this article!
 +
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
== This heading is hardcoded ==
+
== Some Heading ==
 +
== Some Other Heading ==
 +
 
 +
== Example 1 ==
 +
 
 +
The following are included using DPL:
 +
 
 +
<DPL>
 +
  category = Cities
 +
  ordermethod = firstedit
 +
  order = descending
 +
  addeditdate = true
 +
  mode = ordered
 +
  adduser = true
 +
  mode = userformat
 +
  include = *
 +
  listseparators = ,<h2>%TITLE%</h2>,,
 +
</DPL>
 +
 
 +
== Example 2 ==
  
 
The following are included using DPL:
 
The following are included using DPL:
  
<DPL>  
+
<DPL>
 +
  resultsheader=__NOEDITSECTION__
 
   category = Cities
 
   category = Cities
 
   ordermethod = firstedit  
 
   ordermethod = firstedit  

Latest revision as of 14:05, 12 October 2007

  • If we use the NOEDITSECTION pragma in an article containing a DPL query it will not affect included contents.
  • But if we use the pragma inside a resultsheader of the DPL query it will also have an influence on contents which is transcluded by the DPL query.
  • There are some strange effects on TOC tables. Use NOTOC in the document and/or in the resultsheader of DPL queries to suppress the table of contents.
  • Have a look at the source of this article!


Some Heading

Some Other Heading

Example 1

The following are included using DPL:

Antwerpen

Business in Antwerpen

Hamburg

business in Hamburg

Munich

Items in Munich

Frankfurt

Items in Frankfurt

Example 2

The following are included using DPL:

Antwerpen

Business in Antwerpen

Hamburg

business in Hamburg

Munich

Items in Munich

Frankfurt

Items in Frankfurt