Difference between revisions of "DPL Example 005"

From FollowTheScore
Jump to: navigation, search
(New page: {{Example|Create a list of articles belonging to a certaib category}} This is the most basic DPL query at all. You can place it on an arbitrary page. You may want to '''redirect''' the r...)
 
Line 1: Line 1:
{{Example|Create a list of articles belonging to a certaib category}}
+
{{Example|Create a list of articles belonging to a certain category}}
  
 
This is the most basic DPL query at all.
 
This is the most basic DPL query at all.

Revision as of 13:15, 9 March 2009

back to list of examples

Create a list of articles belonging to a certain category

This is the most basic DPL query at all. You can place it on an arbitrary page.

You may want to redirect the resp. Category page to that page. This makes sense if the articles of your category share some common structure which allows you to dipslay more than just the article name on that 'individual category page'. See the other examples to understand how you can display template parameters, ceratain chapters of text or certain meta attributes like size or popularity of a page.

There are many ways to format the output; by default you will get a bullet list.

{{#dpl:
 |category=Fictitious country
}}

The above DPL command produces the following output: