Difference between revisions of "Test include sections by number"

From FollowTheScore
Jump to: navigation, search
Line 39: Line 39:
 
   listseparators=,\n* <big>[[%PAGE%]]</big>\n<div>,</div>
 
   listseparators=,\n* <big>[[%PAGE%]]</big>\n<div>,</div>
 
   secseparators=\n<br>
 
   secseparators=\n<br>
</dpl>
 
 
===Show the LAST chapter of each ''Fictitious country'':===
 
Using standard output format with %SECTION% so that we see the headline.
 
We can even generate hyperlinks to the chapters ...<br>
 
Note that we get an entry also if the specified chapter is missing.
 
<dpl>
 
  resultsheader=__NOTOC__
 
  category=Fictitious country
 
  include=%-1
 
  secseparators=\n=====[[%PAGE%#%SECTION%|%SECTION%]]=====\n
 
 
</dpl>
 
</dpl>

Revision as of 23:09, 27 September 2007

Show the first and third chapter of each Fictitious country:

Using standard output format, cut the text after 40 charcters ...

  • DPL Example 007 main page 1

  • Nigunda
    some facts about religious groups in ..→
  • Nigunda Test
    Nigunda Test History - Chapter ..→
  • Somango

    some facts about religion in Somango
    social life in Somango ...

    {{#vardefine:cats|{{#replace:|/, /|&}}}}

    Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#var:cats}}' for parameter 'category'.


    Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


    Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

Show the first and third chapter of each Fictitious country:

Using standard output format with %SECTION% so that we see the headline. We can even generate hyperlinks to the chapters ...
Note that we get an entry also if the specified chapter is missing.

  • DPL Example 007 main page 1
    %1
    %3
  • Nigunda
    Religion

    some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda;

    %3
  • Nigunda Test
    History

    Nigunda Test History - Chapter Sequence in the article doesn´t matter for DPL ..

    %3
  • Somango
    Religion

    some facts about religion in Somango

    Social Life

    social life in Somango ...

    {{#vardefine:cats|{{#replace:|/, /|&}}}}

    Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#var:cats}}' for parameter 'category'.


    Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


    Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

Show the first and third chapter of each Fictitious country:

We could also use mode=userformat for more flexible formatting ..

DPL Example 007 main page 1

%1
%3

Nigunda

Religion

some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda;

%3

Nigunda Test

History

Nigunda Test History - Chapter Sequence in the article doesn´t matter for DPL ..

%3

Somango

Religion

some facts about religion in Somango

Social Life

social life in Somango ...

{{#vardefine:cats|{{#replace:|/, /|&}}}}

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#var:cats}}' for parameter 'category'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

Show the first and third chapter of each Fictitious country:

If we do not use %SECTION% missing chapters will be skipped.




some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda;



Nigunda Test History - Chapter Sequence in the article doesn´t matter for DPL ..



some facts about religion in Somango


social life in Somango ...

{{#vardefine:cats|{{#replace:|/, /|&}}}}

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option '{{#var:cats}}' for parameter 'category'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.