Difference between revisions of "Test include sections by number"
(Replacing page with '===Show the first and third chapter of each ''Fictitious country'':===') |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
===Show the first and third chapter of each ''Fictitious country'':=== | ===Show the first and third chapter of each ''Fictitious country'':=== | ||
+ | Using standard output format, cut the text after 40 charcters ... | ||
+ | <dpl> | ||
+ | resultsheader=__NOTOC__ | ||
+ | category=Fictitious country | ||
+ | include=%1[40],%3 | ||
+ | secseparators=<br> | ||
+ | reset=all | ||
+ | </dpl> | ||
+ | |||
+ | ===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 ...<br> | ||
+ | Note that we get an entry also if the specified chapter is missing. | ||
+ | <dpl> | ||
+ | resultsheader=__NOTOC__ | ||
+ | category=Fictitious country | ||
+ | include=%1,%3 | ||
+ | secseparators=\n=====[[%PAGE%#%SECTION%|%SECTION%]]=====\n | ||
+ | reset=all | ||
+ | </dpl> | ||
+ | |||
+ | ===Show the first and third chapter of each ''Fictitious country'':=== | ||
+ | We could also use mode=userformat for more flexible formatting .. | ||
+ | <dpl> | ||
+ | resultsheader=__NOTOC__ | ||
+ | category=Fictitious country | ||
+ | include=%1,%3 | ||
+ | mode=userformat | ||
+ | listseparators=,\n=[[%PAGE%]]=\n<div>,</div> | ||
+ | secseparators=\n=====[[%PAGE%#%SECTION%|%SECTION%]]=====\n | ||
+ | reset=all | ||
+ | </dpl> | ||
+ | |||
+ | ===Show the first and third chapter of each ''Fictitious country'':=== | ||
+ | If we do not use %SECTION% missing chapters will be skipped. | ||
+ | <dpl> | ||
+ | resultsheader=__NOTOC__ | ||
+ | category=Fictitious country | ||
+ | include=%1,%3 | ||
+ | mode=userformat | ||
+ | listseparators=,\n* <big>[[%PAGE%]]</big>\n<div>,</div> | ||
+ | secseparators=\n<br> | ||
+ | reset=all | ||
+ | </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 | ||
+ | reset=all | ||
+ | </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> | ||
+ | reset=all | ||
+ | </dpl> |
Latest revision as of 08:05, 10 October 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...