Difference between revisions of "Example 2"
Line 3: | Line 3: | ||
If you see articles arranged this way you quickly get an idea of the contents | If you see articles arranged this way you quickly get an idea of the contents | ||
and you may also feel tempted to align structural differences between the articles ... | and you may also feel tempted to align structural differences between the articles ... | ||
+ | <pre><nowiki> | ||
+ | {{Sortable Tables}} | ||
+ | <DPL> | ||
+ | category=African Union member states | ||
+ | includepage={Infobox Country or territory} dpl | ||
+ | mode=userformat | ||
+ | addpagecounter=true | ||
+ | listseparators=\n{|class=sortablewikitable id=123 \n!Country \n!Area \n!Population \n|#hits\n|-,\n|-\n|[[#%PAGE%|%PAGE%]]\n,\n|align=right|%COUNT%\n,\n|} | ||
+ | secseparators=,\n|,, | ||
+ | </DPL> | ||
+ | </nowiki></pre> | ||
{{Sortable Tables}} | {{Sortable Tables}} | ||
<DPL> | <DPL> | ||
Line 15: | Line 26: | ||
Note that the country names in the small table link to the corresponding entry in the big table. | Note that the country names in the small table link to the corresponding entry in the big table. | ||
In the History column of the big table we define a "..more.." symbol; in the column on Religion we use the default (..→) | In the History column of the big table we define a "..more.." symbol; in the column on Religion we use the default (..→) | ||
+ | |||
+ | <pre><nowiki> | ||
+ | <DPL> | ||
+ | resultsheader=__NOTOC__ __NOEDITSECTION__ | ||
+ | category=African Union member states | ||
+ | includepage=#History[350 ..more..],#Culture[800],{Infobox Country or territory} dpl2 | ||
+ | mode=userformat | ||
+ | listseparators=\n{|class=sortablewikitable id=123 \n!Country \n!History \n!Culture \n!Area &<br>Population \n|-,\n|-\n|valign=top|\n=====[[%PAGE%]]=====\n,\n,\n|} | ||
+ | secseparators=,\n|,, | ||
+ | </DPL> | ||
+ | </nowiki></pre> | ||
<DPL> | <DPL> |
Revision as of 08:11, 13 February 2007
This example for the use of DPL is based on a copy of articles from the English wikipedia.
If you see articles arranged this way you quickly get an idea of the contents and you may also feel tempted to align structural differences between the articles ...
{{Sortable Tables}} <DPL> category=African Union member states includepage={Infobox Country or territory} dpl mode=userformat addpagecounter=true listseparators=\n{|class=sortablewikitable id=123 \n!Country \n!Area \n!Population \n|#hits\n|-,\n|-\n|[[#%PAGE%|%PAGE%]]\n,\n|align=right|%COUNT%\n,\n|} secseparators=,\n|,, </DPL>
<javascript src="sorttable"/>
Country | Area | Population | #hits |
---|---|---|---|
Cameroon
align=right|475,442 |
16,323,000 | %COUNT% | |
Nigeria
align=right|923,768 |
133,530,0001 | %COUNT% | |
Somalia
align=right|637,657 |
8,228,000 | %COUNT% | |
Sudan
align=right|2,505,813 |
36,992,490 | %COUNT% |
Note that the country names in the small table link to the corresponding entry in the big table. In the History column of the big table we define a "..more.." symbol; in the column on Religion we use the default (..→)
<DPL> resultsheader=__NOTOC__ __NOEDITSECTION__ category=African Union member states includepage=#History[350 ..more..],#Culture[800],{Infobox Country or territory} dpl2 mode=userformat listseparators=\n{|class=sortablewikitable id=123 \n!Country \n!History \n!Culture \n!Area &<br>Population \n|-,\n|-\n|valign=top|\n=====[[%PAGE%]]=====\n,\n,\n|} secseparators=,\n|,, </DPL>
Country | History | Culture | Area & Population | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CameroonPre-colonial periodArchaeological finds show that humankind has ..more.. |
Each of Cameroon's ethnic groups has its own unique cultural forms. Typical celebrations include births, deaths, planting, harvesting, and religious events. ..→ | ||||||||||||||||
NigeriaMore than 2,000 years ago. the Nok people in central Nigeria were producing sculptures. ..more.. |
Literature
Nigeria has a rich literary history, both prior to British imperialism and after, as Nigerians have authored several works of post-colonial literature in the English language. The second African Nobel Laureate, Wole Soyinka is Nigeria's best-known writer and playwright. Other Nigerian writers and poets who are well known on the international stage include Chinua Achebe, John Pepper Clark, Ben Okri, Sonny Oti and Ken Saro Wiwa who was executed in ..→ | ||||||||||||||||
SomaliaPre-colonial timesSomalia has been continuously inhabited by numerous and varied ethnic groups, some of Italian or Yemenite ancestry, but the majority are Somalis, for the last 2,500 years. In late antiquity, the northern part of ..more.. |
| ||||||||||||||||
SudanEarly history of Sudan |
Sudan's largest Christian denominations are the Roman Catholic Church, the Episcopal Church of the Sudan, the Presbyterian Church in the Sudan and the Coptic Orthodox Church.
|
<references/>