DynamicPageList

From semanticweb.org

Jump to: navigation, search


http://meta.wikimedia.org/wiki/DynamicPageList

Example [1]:

<DynamicPageList>
category=published
category=Asia
count=10
addfirstcategorydate=true
</DynamicPageList>

Compare with:

<ask limit=10>[[Category:Published||Asia]]</ask>

<ask sort=date limit=10>[[date:= ]][[Category:Cafe||Restaurant]]</ask> giving warning.png"]][[Category:Cafe||Restaurant" cannot be used as a page name in this wiki. Some use of "[[" in your query was not closed by a matching "]]". .

While "addfirstcategorydate=true" automatically adds for each listed page the date it was added to the first category, "sort=date" in the ask tag requires an annotation of the Attribute:Date in every page, e.g. produced with {{subst:date}}.

See also category:Wikinews.

Personal tools