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 <ask> no longer supported. See SMW documentation on how to do inline queries now..

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.

Navigation
services
Toolbox