Difference between revisions of "Test include sections by number"
Line 50: | Line 50: | ||
include=%-1 | include=%-1 | ||
secseparators=\n=====[[%PAGE%#%SECTION%|%SECTION%]]=====\n | secseparators=\n=====[[%PAGE%#%SECTION%|%SECTION%]]=====\n | ||
+ | </dpl> | ||
+ | |||
+ | ===Show an extract of the preamble before the first chapter of each ''Fictitious country'':=== | ||
+ | <dpl> | ||
+ | resultsheader=__NOTOC__ | ||
+ | category=Fictitious country | ||
+ | include=%0[200 more...] | ||
+ | mode=unordered | ||
+ | listseparators=,\n* <big>[[%PAGE%]]</big>\n<div>,</div> | ||
+ | secseparators=\n<br> | ||
</dpl> | </dpl> |
Revision as of 15:24, 3 July 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
{{#vardefine:cats|{{#replace:|/, /|&}}}}
social life in Somango ...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
Nigunda
Religion
some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda;
%3
Nigunda Test
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 ...
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 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 ...
Note that we get an entry also if the specified chapter is missing.
- DPL Example 007 main page 1
%-1
- Nigunda
Religion
some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda; - Nigunda Test
Religion
some facts about religious groups in Nigunda; some other facts about religious groups in Nigunda Test; - 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 an extract of the preamble before the first chapter of each Fictitious country:
This is DPL Example 007 main page 1
There is some general introductory text about Nigunda ...
Note that there is no text on the History more...