Jump to content

User:Revanche/DPLLesson

From BattleIntelligence

This is just my quick and dirty takeaway from a brief dive into [the DynamicPageLoader extension's docs]. It almost seems like it's covering the same need as SemanticMediaWiki (SMW), but with a more limited scope. The <DPL> tag is pointing to the "Policies" category and displaying it on the page, Similar to the SMW query we're using on the Updates Needed page. We can add additional categories to the category parameter of the tag by separating the category names with a pipe character (|).--mbear


Current

<div style="-moz-column-count:3; column-count:3;">
<DPL>category=Policies
mode=ordered
</DPL>
</div>

Gives us what we've seen already:

Policies

<DPL>category=Policies mode=ordered </DPL>

Proposed

By adding the Help category to the list of categories searched

<div style="-moz-column-count:3; column-count:3;">
<DPL>category=Policies|Help
mode=ordered
</DPL>
</div>


Results in:

Policies

<DPL>category=Policies|Help mode=ordered </DPL>


Notes

  • We can apparently use a parser function version (i.e. {{#dpl: .... }}) instead of the tag version, which might be useful for consistency. (We're using those in infoboxes, SMW queries, etc.)
  • The category name is apparently ignored for sorting purposes. Note how the Proposed output is organized alphabetically by page name.


User:Revanche so he can find it in the future since this is an orphan page otherwise.