Wikinews:DynamicPageLists
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:
- First ever rally for scientific life extension
- 'Fascinating' and 'provocative' research examines genetic elements of bipolar, schizophrenia
- Unauthorised autobiography of Julian Assange sells less than 700 copies
- Journalist forbidden to leave Belarus
- Study: Birds learn nest building
- 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:
- 'Fascinating' and 'provocative' research examines genetic elements of bipolar, schizophrenia
- Study: Birds learn nest building
- Out of space in outer space: Special report on NASA's 'space junk' plans
- Shell reports oil leak at North Sea platform
- ISS Expedition 10 returns to Earth
- 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:
