Wikinews:DynamicPageLists
From Wikinews, the free news source you can write!
DynamicPageLists (or DPLs) are a special method which can be used to list the latest articles to be edited within chosen categories.
[edit] Usage
This is the basic syntax to use on a page to produce a DPL:
<DynamicPageList>
category=Europe
count=5
</DynamicPageList>
which gives:
- British Climatic Research Unit's emails hacked
- School closed after five-year-old boy dies from suspected swine flu in Buckinghamshire, England
- BBC Children in Need 2009 raises £20.3 million
- UK family wins asbestos payout in death of railway worker
- Quad crash kills fourteen year-old in County Londonderry, Northern Ireland
- the last five pages to be edited which are in the category of Europe. The category can be any used on the site, and the page count can be any number up to 99.
It's possible to chose more than one category. For example:
<DynamicPageList>
category=Europe
category=Science and technology
count=5
</DynamicPageList>
gives:
- British Climatic Research Unit's emails hacked
- Mobile operator Orange bills French doctor €160,000 for one month of Internet use
- Vitaly Ginzburg, Russian academician and physicist, dies at age 94
- French structuralist Claude Lévi-Strauss dies at age 100
- EU deems UK privacy laws inadequate, takes legal action
- the last five pages in the categories of Europe and Science and technology. You can chose to have several categories, if you wish.
It's also possible to have the list without bullet points:
<div class="no-bullet-list">
<DynamicPageList>
category=Europe
count=5
</DynamicPageList>
</div>
which produces:
- British Climatic Research Unit's emails hacked
- School closed after five-year-old boy dies from suspected swine flu in Buckinghamshire, England
- BBC Children in Need 2009 raises £20.3 million
- UK family wins asbestos payout in death of railway worker
- Quad crash kills fourteen year-old in County Londonderry, Northern Ireland
