Extension talk:DynamicPageList/Archive 03/Flow export
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Union of Categories?
[edit]The summary says this extension can deliver the union of several categories, but from what I can see, it only delivers the intersection of several categories. What if I want all articles in the category "Canine" or "Wolf" and there are some articles in one or the other, and some articles in both? --72.28.72.65 14:25, 2 February 2011 (UTC) 06:39, 25 August 2011 (UTC)
- Yeah, summary is wrong. the third party one might be able to do that, but this only does intersection. Bawolff 16:54, 2 February 2011 (UTC) 06:39, 25 August 2011 (UTC)
- I've requested this on Bugzilla. Helder 01:13, 19 March 2012 (UTC)
Speed improvement by only using the recentchanges table
[edit]I'd like to see an option recentchanges=1 that would only check the recentchanges table. This would be helpful for simple lists like the latest pages of a certain namespace (not category) on high traffic pages like Main Page since the recentchanges table is very small. Most parameters would still work tho. --Subfader 22:55, 5 February 2011 (UTC) 06:39, 25 August 2011 (UTC)
gallery mode: images only?
[edit]The gallery mode is useful but it can't exclude other files than images. would an option to check for the mime type be too heavy? --Subfader 20:48, 10 April 2011 (UTC) 06:40, 25 August 2011 (UTC)
- Compared to the other things this extension does, its probably would not be horrible. Just doing filter by mime type wouldn't really filter out all non-images since images can cover multiple mime types (although filtering by mime type is just as easy as doing show only stuff that is image/*, but that still brings up the question of what is an image. Is a pdf an image, it can be displayed as an image with a thumbnail. Is an xcf file an image? it certainly is, but files like
cannot be displayed as a thumbnail. (otoh, if you just want one specific type of image, the what is an image debate is kind of moot). Bawolff 23:28, 10 April 2011 (UTC) 06:40, 25 August 2011 (UTC)
mode = 'inline', case add.( 모드가 인라인인 경우 추가 )
[edit]+++ DynamicPageList.php ( working )
@@ +188,6 @@
case 'mode':
switch ( $sArg ) {
+ case 'inline':
+ $sStartList = '<div>';
+ $sEndList = '</div>';
+ $sStartItem = '<span>';
+ $sEndItem = '</span>, ';
+ break;
—The preceding unsigned comment was added by an unknown user on a unknown date. 06:42, 25 August 2011 (UTC)
- Umm, why? Bawolff 19:02, 15 April 2011 (UTC) 06:42, 25 August 2011 (UTC)
Only display articles starting with "f.eks"
[edit]Is it possible to only list articels starting with f.eks. A from a catagory? —The preceding unsigned comment was added by an unknown user on a unknown date. 06:43, 25 August 2011 (UTC)
- Not with this extension. The third party dpl probably could. Bawolff 06:44, 25 August 2011 (UTC)
Feature request: hCalendar
[edit]As a lover of random microformats and an active Wikinewsie, I saw this and thought it might be a good candidate for the hCalendar microformat. It would siply have to output:
* <span class="vevent"><abbr class="dtstart" title="yyyy-mm-ddZ">d month yyyy</abbr>: <span class="summary">[[Title]]</span></span>
rather than just:
* d month yyyy: [[Title]]
Of course, this only works if it is set to output the date, and some styling of the abbr might be wanted to remove the border-bottom. I don't really feel strongly about this - I just ♥ microformats, and thought I'd suggest it. Dendodge 01:09, 29 June 2011 (UTC) 06:44, 25 August 2011 (UTC)
- Hmm, is it a safe assumption that the date in a dpl list always refers to the start of an event? If you can find an actually live concrete example of someone some where who would benefit from the embeded microformat data, it would add a lot to this proposal. (As an aside, a user custom format might be added in the future which would allow the user to design any custom format they like). Bawolff 03:17, 29 June 2011 (UTC) 06:45, 25 August 2011 (UTC)
dtstartis simply the name given to the date parameter. For a duration, one would match it withdtend, but alone it simply marks the date and time at which something happened - in this case, the date the article was added to the category. This would come in useful to people who wanted an easy way to plot various events (e.g. on Wikinews) on a timeline or calendar - while now that would have to manually enter each date and event, this would allow them to simply export (e.g. using Operator) all the hCalendar events on a page, and import the resultant file into their application of choice, which is far easier. Use will, of course, be limited, but it's something some people might want to do (I have done similar things myself in the past, manually), and it has little-to-no impact on other users' experience, other than perhaps a millisecond increase in loading time. As support for hCalendar becomes more widespread, this will have more uses and applications. Dendodge 12:15, 29 June 2011 (UTC) 06:45, 25 August 2011 (UTC)
addfirstcategorydate and ordermethod do not work on namespaces
[edit]This is a job for semantic mediawiki, but it doesn't work either! addfirstcategorydate and ordermethod only work on categories. It won't work for me on namespaces. Badon 03:59, 12 July 2011 (UTC) 06:46, 25 August 2011 (UTC)
- I assume you mean if the query had a namespace clause but no category clauses? addfirstcategorydate needs a category to work with since it adds the date the page was added to the category. Ordermethod should work without a category clause, but some ordermethods (such as ordering by categoryadd) won't for obvious reasons. Which ordermethod isn't working for you? Bawolff 03:34, 25 August 2011 (UTC) 06:46, 25 August 2011 (UTC)
Request
[edit]Is there a way to use a dynamic page list inside a template, where the category name is the template argument? —The preceding unsigned comment was added by an unknown user on a unknown date. 06:47, 25 August 2011 (UTC)
- Yes. You just need to use #tag. For an example, see wikibooks:Template:CategoryIntersection. Helder 19:09, 3 August 2011 (UTC) 06:47, 25 August 2011 (UTC)
- Thank you so much for your help. I'd been trying to use #tag but I was putting it in the wrong place, the example really helped. Thanks again. —The preceding unsigned comment was added by an unknown user on a unknown date. 06:48, 25 August 2011 (UTC)
Bug? List of recently edited pages updated when talk pages are created
[edit]I use this extension to generate a list of recently edited pages within a certain namespace:
<DynamicPageList> namespace = 102 count = 10 order = descending redirects = exclude shownamespace = false addfirstcategorydate = false mode = unordered ordermethod = lastedit </DynamicPageList>
However, when a discussion page in the associated TALK namespace (i.e. namespace 103) is created, the above list gets updated. Is there a way to avoid this? --Dvd3141 05:02, 15 August 2011 (UTC) 06:48, 25 August 2011 (UTC)
- The ordermethod lastedit doesn't really order by last edit (thus is poorly named) but by the last time the cache for that page was purged (page_touched) (and thus is triggered by all sorts of things, like if a template included on that page is updated). At the moment there isn't really a work around for this extension. Bawolff 03:30, 25 August 2011 (UTC) 06:49, 25 August 2011 (UTC)
Installation Question..
[edit]Why "include" not "require" (and why "include" not "include_once")? Just wondering as currently all the other extensions I have for Mediawiki 1.17 are invoked by require_once as apposed to include? Ashimema 13:11, 31 August 2011 (UTC)
- both do the same thing so it really doesn't matter. (Well actually require is slightly better as it makes a fatal instead of warning if you make a typo). I'll change it Bawolff 08:13, 1 September 2011 (UTC)
- Cheers Bawolff.. that's clears it up somewhat for me. I knew they did roughly the same thing, just didn't know what the difference was and if it was important. Ashimema 08:27, 1 September 2011 (UTC)
Bug: Incompatible with Variables Extension
[edit]If used with Extension:Variables any variables set before the call to DPL are cleared by the first DPC call that produces successful results. Thus:
{{#vardefine:foo|bar}}
{{#tag:DynamicPageList| category = {{#var:foo}} }}
{{#tag:DynamicPageList| category = {{#var:foo}} }}
{{#var:foo}}
The first DPL will produce the expected results, the second call will produce no results, and the attempt to print out the foo variable at the end will return empty.
The 3rd party extension seems to have had this same problem but have apparently now solved it. Agrestis 14:03, 19 September 2011 (UTC)
- I consider this an Extension:VariablesExtension issue. It should make sure the clearState hook is being called for the parser object it's attached to. For example it is also incompatible with the categorytree extension when using the showcount="on" option. (A similar issue was recently fixed in cite in r89220)
- (With that said, I suppose the way DynamicPageList calls Parser->transformMsg is kind of a bit odd...) Bawolff 00:56, 20 September 2011 (UTC)
Bug: Colon in category name returns no results
[edit]If there is a colon in the category name, produces no results. Thus:
<DynamicPageList> category = Foo: Bar </DynamicPageList>
Will always fail. Agrestis 14:07, 19 September 2011 (UTC)
- I could not reproduce this. The only time it failed was if the category was named something like category:project:foo, where the category started with another namespace (which was fixed in rev:97584). Bawolff 00:25, 20 September 2011 (UTC)
Hack: Add optional headings for lists
[edit]The following additions provide headings for any list that displays results. This can be useful since it avoids trying to test for results in a template (which is very difficult to do).
The following has been tested on the version of DPL which works with MW 1.16.
<?php
//etc...
$sStartList = '<ul>';
$sEndList = '</ul>';
$sStartItem = '<li>';
$sEndItem = '</li>';
$sStartHead = '';
$sEndHead = '';
$sTextHead = '';
$bUseGallery = false;
//etc....
case 'nofollow': # bug 6658
if ( 'false' != $sArg ) {
$aLinkOptions['rel'] = 'nofollow';
}
break;
case 'headingtext':
$sTextHead = htmlspecialchars($sArg);
break;
case 'headingtag':
switch ($sArg)
{
case 'h2':
$sStartHead = '<h2>';
$sEndHead = '</h2>';
break;
case 'h3':
$sStartHead = '<h3>';
$sEndHead = '</h3>';
break;
case 'h4':
$sStartHead = '<h4>';
$sEndHead = '</h4>';
break;
case 'h5':
$sStartHead = '<h5>';
$sEndHead = '</h5>';
break;
case 'h6':
$sStartHead = '<h6>';
$sEndHead = '</h6>';
break;
case 'br':
$sStartHead = '<b>';
$sEndHead = '</b><br />';
break;
default:
$sStartHead = '<b>';
$sEndHead = '</b>';
break;
}
break;
} // end main switch()
//etc.....
//start unordered list
$output = $sStartHead.$sTextHead.$sEndHead.$sStartList . "\n";
//etc....
?>
This will provide headings for the ordinary lists, but not the gallery view.
The extra parameters are thus:
headingtext- Text to use as a heading if results are found.headingtag- Tag to surround the heading text with. One of:- h2-h6 (headings 2 through 6)
- b (bold)
- br (bold followed by a br tag.
Example:
<DynamicPageList> category = Foo headingtext = List of Foo headingtag = h2 </DynamicPageList>
Please note that the headings won't appear in the table of contents, regardless of which tag is used, but they will be formatted to appear laccording to the tag chosen. Agrestis 14:23, 19 September 2011 (UTC)
Question about "includematch"
[edit]I use this great extensions in two of mine wikis. In the last times, i have some problems with includematch. My Wiki is about Final Fantasy XIV Online, for info ;)
NPCs are selling some Items, the item goes in the category:example sells from NPC. Now, some NPCs sells example-head, examplefeed, example-earring. If i create now the Article examlpe, i use this DPL:
{{#dpl:
|category = {{SUBPAGENAME}} sells from NPC
|namespace =
|includepage = {Sellsrow}:Price, {NPC} dpl Zones
|includematch = /\s*Item\s*{{=}}\s*{{fixapos|{{fixtick|{{fixparen|{{SUBPAGENAME}}}}}}}}/si
|format =,,\n
|table =class="SE-Heaventable sortable" style="width: 100%;",Name,Preis,Region
|columns=1
|rowcolformat= style="background-color: transparent; width: 100%;"
|tablerow = %%,%%
|suppresserrors=true
}}
Here i use the _Template:Sellsrow to get the Price and the Template:NPC dpl Zones to get all other datas. In the Template:Sellsrow, i define Item. Thats why my includematch say get where Item = {{SUBPAGENAME}}. So, my Articles shows me now in the Table all sellinginformations about:
- example
- example-head
- examplefeed
- example-earring
i try'd some other includematch variations like this:
{{#dpl:
|category = {{#if: {{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}} sells from NPC
|namespace =
|includepage = {Sellsrow}:Price, {NPC} dpl Zones
|includematch = /\s*Item\s*{{=}}\s*{{#if: {{{Name|}}}|{{{Name|}}}|{{PAGENAME}}}}/si
|format =,,\n
|table =class="SE-Heaventable sortable" style="width: 100%;",Name,Preis,Region
|columns=1
|rowcolformat= style="background-color: transparent; width: 100%;"
|tablerow = %%,%%
|suppresserrors=true
}}
but at least, i have allways the Same problem. It shows me all what that NPC have, where example is in :\ The only what i want to see, is the Data for example >.< Someone knows how i can fix it? Yukii 11:34, 12 October 2011 (UTC)
- You're looking for Extension talk:DynamicPageList (third-party). This talk page is about a different extension. Bawolff 23:25, 16 October 2011 (UTC)
- Oh Sorry! Thanks for the Info! Yukii 12:48, 17 October 2011 (UTC)
Does it work with MW 1.18?
[edit]Sadly the 'other' DynamicPageList (third party one) breaks MW 1.18. Does anyone happen to know if this extension works with 1.18? Thank you! Jonathan3 01:05, 11 December 2011 (UTC)
- Yes it does. This extension is in use on Wikimedia wikis (like wikinews) which run 1.18.
- Note: The code for the two extensions differ quite a bit, so if one is broken in some way, probably doesn't mean too much about the other one. Bawolff 18:31, 11 December 2011 (UTC)
- Thank you very much. I have downloaded it and it works fine. I've got a question about it, though - which I'll post separately. Best wishes, Jonathan3 20:02, 11 December 2011 (UTC)
Is it possible to add information from 'Labelled Page Transclusion' extension to the DPL List?
[edit]With Dynamic Page List (Third Party) I had a template which showed the introductory paragraphs of every page in a given category.
Unfortunately I can't get that to work any more, so have installed Dynamic Page List (Mediawiki) (which can list pages in a category) and Labelled Section Transclusion (which can transclude the introductory paragraph of an individual page).
I wonder whether there is any way of linking the two modules, so that DPL (Mediawiki) adds the information from LST to its list. Alternatively, can you recommend any other extension(s)?
Thanks in advance. Jonathan3 20:09, 11 December 2011 (UTC)
- No, they can't be linked at the moment.
- Perhaps SMW can do what you want. Bawolff 22:29, 13 December 2011 (UTC)
No ordermethod = title
[edit]- Help:Extension:CodeMirror/fa
- Help:Extension:CodeMirror/hu
- Help:Content translation/Starting/hu
- Help:User contributions/hu
- Help:Preferences/hu
- Help:Watchlist expiry/hu
- Help:Watchlist/hu
- Help:Signatures/hu
- Help:Related changes/hu
- Help:Editing/hu
- Help:Minor edit/hu
- Help:Categories/kn
- Help:Extension:UniversalLanguageSelector/Input methods/su-transliteration
- Help:HTML in wikitext/gu
- Help:Starting a new page/hu
- Help:Dummy edit/hu
- Help:Keyboard shortcuts/hu
- Help:Extension:WikimediaCampaignEvents/cs
- Help:Extension:UploadsLink/cs
- Help:LanguageTool/Sources/cs
- Help:Go button/hu
- Help:Suggestion mode/fa
- Help:Lint errors/pre-expansion
- Help:Diff/hu
- Help:Special characters/hu
- Help:Tables/hu
- Help:Printing/hu
- Help:Edit summary/hu
- Help:System message/kea
- Help:System message/gu
- Help:Edit check/cs
- Help:Preview/hu
- Help:Editing FAQ/hu
- Help:Growth/Tools/Account creation/cs
- Help:Email confirmation/ar
- Help:Growth/How to create help contents/Examples/Update a page/cs
- Help:Growth/How to create help contents/Examples/Expand a page/cs
- Help:Growth/How to create help contents/Examples/Add a citation/How-to/cs
- Help:Content translation/Translating/Translation quality/cy
- Help:Growth/How to create help contents/Examples/Add a citation/cs
- Help:Temporary accounts/lmo
- Help:Magic words/gu
- Help:View source/zh
- Help:Growth/Mentorship/es
- Help:Suggestion mode/kk
- Help:Contents/sw
- Help:Images/pa
- Help:Images/gu
- Help:Substitution/nl
- Help:Keyboard shortcuts/mzn
- Help:Sortable tables/ar
- Help:Extension:AIBatchEditor
- Help:Growth/Tools/Newcomer Tasks/kaa
- Help:VisualEditor/Community Taskforce/cs
- Help:VisualEditor/The visual editor at Wikisources and Wiktionaries/cs
- Help:Manage blocks/fr
- Help:Cite/gu
- Help:Extension:CodeMirror/diq
- Help:Growth/Tools/Newcomer Tasks/fa
- Help:Extension:Translate/Page translation administration/es-formal
- Help:Edit check/ru
- Help:Namespaces/km
- Help:Preview/it
- Help:TemplateData/nb
- Help:TemplateData/tt
- Help:Wikifunctions/Images
- Help:Wikifunctions/Rich Outputs
- Help:Extension:Translate/Page translation administration/lv
- Help:Extension:ParserFunctions/ig
- Help:Extension:ParserFunctions/da
- Help:Import/de
- Help:Templates/tt
- Help:Templates/kea
- Help:Templates/gu
- Help:Templates/ceb
- Help:Paragraph-based Edit Conflict Interface/nl
- Help:Sortable tables/gu
- Help:Edit summary/pl
- Help:Edit summary/id
- Help:Parser functions in templates/ko
- Help:Extension:Wikibase/GoToLinkedPage/ko
- Help:Extension:TemplateWizard/ko
- Help:Namespaces/kea
- Help:Namespaces/gu
- Help:Growth/Tools/Enable the Homepage/nl
- Help:RandomInCategory/ko
- Help:Lint errors/nl
- Help:Lint errors/tidy-font-bug/nl
- Help:Growth/Mentorship/Workshops or Campaigns organizers/ko
- Help:Growth/How to create help contents/Examples/Update a page/ko
- Help:Growth/How to create help contents/Examples/Add a citation/ko
- Help:Growth/Tools/ko
- Help:Lint errors/multi-colon-escape/nl
- Help:Two-factor authentication/cs
- Help:Contents/shn
- Help:Lint errors/tidy-whitespace-bug/nl
- Help:Lint errors/pwrap-bug-workaround/nl
- Help:Printing/it
- Help:Keyboard shortcuts/it
- Help:Contents/nds
- Help:Extension:UniversalLanguageSelector/Input methods/kus-tilde/cs
- Help:Extension:UniversalLanguageSelector/Input methods/bom-tilde/cs
- Help:Extension:UniversalLanguageSelector/Input methods/bfa-tilde/cs
- Help:Extension:Wikisource/Wikimedia OCR/cs
- Help:Lint errors/misnested-tag/nl
- Help:VisualEditor/VE as Beta Feature/cs
- Help:Lint errors/deletable-table-tag/nl
- Help:Lint errors/self-closed-tag/nl
- Help:Extension:CodeMirror/Color and style customization/sv
- Help:Extension:CodeMirror/Color and style customization/ru
- Help:Extension:CodeMirror/Color and style customization/pt-br
- Help:Extension:CodeMirror/Color and style customization/pt
- Help:Extension:CodeMirror/Color and style customization/zh
- Help:Extension:CodeMirror/Color and style customization/fr
- Help:Extension:CodeMirror/Color and style customization/es
- Help:Extension:CodeMirror/Color and style customization/cs
- Help:Extension:CodeMirror/Color and style customization/bn
- Help:Chart Wizard
- Help:Community Configuration/zh
- Help:Extension:CampaignEvents/FAQ/fr
- Help:Login notifications/mad
- Help:Extension:Translate/Validators/pt-br
- Help:Lint errors/stripped-tag/nl
- Help:Tabular data/nl
- Help:DiscussionTools/Why can't I reply to this comment?/nl
- Help:Lint errors/bogus-image-options/nl
- Help:Growth/Tools/Newcomer Tasks/fi
- Help:Lint errors/missing-end-tag/nl
- Help:Extension:UniversalLanguageSelector/Input methods/pnt-tilde
- Help:Lint errors/obsolete-tag/nl
- Help:Watchlist/ia
- Help:Watchlist labels/ja
- Help:Reset password/nl
- Help:New section/nl
- Help:New pages feed/nl
- Help:Extension:CampaignEvents/Registration/Collaborative contributions/ms
- Help:Email confirmation/pt-br
- Help:Editing pages/brh
- Help:Growth/Tools/Newcomer Tasks/hu
- Help:Growth/Community configuration/en
- Help:Extension:CodeMirror/Color and style customization/ja
- Help:Notifications/Thanks/nl
- Help:VisualEditor/User guide/Citation templates/zh
- Help:VisualEditor/User guide/Find and replace/zh
- Help:VisualEditor/User guide/Citations-Full/zh
- Help:Extension:CodeMirror/Color and style customization/en
- Help:Extension:CodeMirror/Color and style customization
- Help:Temporary accounts/tt
- Help:Extension:UniversalLanguageSelector/Input methods/sgh-tilde
- Help:ChangeContentModel/th
- Help:Extension:ParserMigration/fr
- Help:Suggestion mode/ja
- Help:Temporary accounts/sk
- Help:Login notifications/ext
- Help:Lint errors/large-tables/fr
- Help:Lint errors/empty-heading/fr
- Help:Lint errors/duplicate-ids/fr
- Help:Lua/Lua best practice/nl
- Help:Extension:ProofreadPage/Pagelist tag/fr
- Help:Extension:ProofreadPage/Page quality system/fr
- Help:Extension:UniversalLanguageSelector/Input methods/pwo-tilde/ja
- Help:Extension:UniversalLanguageSelector/Input methods/pwo-tilde/en
- Help:Extension:UniversalLanguageSelector/Input methods/pwo-tilde
- Help:Reference Previews/nl
- Help:High use pages/nl
- Help:Extension:CodeMirror/WikiLint/fr
- Help:Wikitext examples/ru
- Help:File captions/nl
- Help:Patrolling/ar
- Help:Patrolled edits/ar
- Help:Merge history/ar
- Help:Redirects/ar
- Help:Managing files/ar
- Help:Extension:ProofreadPage/Index-specific CSS/fr
- Help:RevisionDelete/nl
- Help:Editing pages/ka
- Help:Extension:Produnto
- Help:Extension:UniversalLanguageSelector/Input methods/tiv-tilde/en
- Help:Extension:UniversalLanguageSelector/Input methods/tiv-tilde
- Help:Extension:CampaignEvents/Registration/Collaborative contributions/ja
- Help:Extension:WikiEditor/Realtime Preview/fr
- Help:Extension:UniversalLanguageSelector/Input methods/wlx-tilde/es
- Help:ExpandTemplates/nl
- Help:User rights and groups/ar
- Help:VisualEditor/User guide/kea
- Help:Substitution/kea
- Help:Protection indicators/en
- Help:Categories/nan-latn-tailo
- Help:Links/kea
- Help:PermanentLink/kea
- Help:Random page/kea
- Help:Patrolled edits/kea
- Help:New pages/kea
- Help:What links here/kea
- Help:Edit check/el
- Help:Extension:RealMe/kea
- Help:Recent changes/sd
- Help:Associated pages/zh
- Help:Notifications/kea
- Help:Printing/kea
That falls back to created. There is no way to force proper sorting by title without filtering by categories. That query does make sense on small company wikis... Anyway, fix:
switch ( $arg ) {
case 'title':
$orderMethod = 'title';
break;
and
switch ( $orderMethod ) {
case 'title':
$sqlSort = 'page_title';
break;
Subfader 15:48, 14 December 2011 (UTC)
- Note, its cheaper to sort by page_namespace, page_title - but then things are ordered by namespace. Bawolff 06:13, 15 December 2011 (UTC)
- Good to know. Thanks. Subfader 08:56, 15 December 2011 (UTC)
Cannot use variables
[edit]I want to use this in a template
- Release notes/fa
- MediaWiki 1.43/fa
- Wikimedia Release Engineering Team/Checkin archive/2026-07-08
- Design/Wikimania 2026
- MediaWiki 1.47/wmf.16
- MediaWiki 1.47/wmf.11/Changelog
- Wikimedia Security Team/AppSec Clinic Minutes/2026-07-13
- Hosting services/vi
- Hosting services/kea
- Wikimedia Hackathon 2026/ru
- Article creation/fa
- Draft namespace/fa
- Growth/Personalized first day/Structured tasks/Add an image/ru
- Growth/Revise Tone/ru
- Wikimedia Release Engineering Team/Pretrain/Progress reports/2026-07-10
- Wikimedia Apps/Developing for the apps
- Wikimedia Apps/Team/Draft 1
- Data Platform Engineering/Data Platform SRE/Status Update/2026-07-10
- Contributors/Account Creation Experiments/de
- Talk pages project/Replying/es
- Wikimedia Release Engineering Team/Checkin archive/2026-07-01
- Article guidance/Test feature guide/pl
- Product Safety and Integrity/Suggested Investigations/fr
- MediaWiki 1.47/wmf.10
- Article guidance/How to create an outline
- Wikimedia Release Engineering Team/Pretrain/Progress reports/2026-07-03
- Wikimedia Product/Technical Program Management
- Growth/Communities/de
- Readers/Reader Experience/Reading lists/fa
- Readers/fa
- Reading/Web/Accessibility for reading/Reporting/tr.wiktionary.org
- MediaWiki 1.47/wmf.15
- MediaWiki 1.47/wmf.14
- MediaWiki 1.47/wmf.13
- MediaWiki 1.47/wmf.12
- MediaWiki 1.47/wmf.11
- MediaWiki 1.47/wmf.10/Changelog
- Wikimedia Hackathon 2026/fr
- Wikimedia Security Team/AppSec Clinic Minutes/2026-07-06
- Article guidance/pl
- Media Platform Team
- XTools/Admin Score/ro
- Contributors/Mobile Web Editing Research/en
- Version lifecycle/lv
- MediaWiki Users and Developers Conference Spring 2026/pt
- Data Platform Engineering/Data Platform SRE/Status Update/2026-07-03
- Gadget:Subpages
- Article guidance/it
- Article guidance/Test feature guide/it
- Article guidance/Conversations/it
- MediaWiki Users and Developers Conference Fall 2026/de
- MediaWiki Users and Developers Conference Fall 2026/Call for Contributions
- Wikimedia Security Team/Security Review Planning/2026-07-01
- Wikimedia Release Engineering Team/Checkin archive/2026-06-24
- Testing-access-wrapper/fr
- Reporting security bugs/fa
- Wikimedia Release Engineering Team/Pretrain/Progress reports/2026-06-26
- Wikimedia Release Engineering Team/Pretrain/Progress reports/2026-06-19
- Edit check/Configuration/fa
- VisualEditor/Suggestion Mode/fa
- Wikibase/Which/cs
- Wikibase/Install/cs
- Copyright/cs
- New Developers/vi
- Inclusive language/zh
- MediaWiki 1.47/wmf.9/Changelog
- Event Center/Registration/Instructions/ms
- Reading/Web/Accessibility for reading/Reporting/abstract.wikipedia.org
- Wikimedia Security Team/AppSec Clinic Minutes/2026-06-29
- Universal Language Selector/Compact Language Links/ms
- Wikimedia Apps/Team/iOS/ha
- Wikimedia Apps/Team/iOS/fr
- Wikimedia Apps/Team/iOS/ar
- Language Converter/ja
- VisualEditor/Suggestion Mode/pt-br
- Hackathons/ja
- Hackathons/en
- Home
- Growth/Personalized first day/Structured tasks/Add an image/2025 algorithm test/cs
- Growth/Engage with the Growth team/cs
- Growth/Browse/cs
- Product Safety and Integrity/Account Security/Securing User-Managed Code/fr
- Growth/Projects/cs
- Growth/Communities/Wikivoyage/cs
- Product Safety and Integrity/Account Security/ar
- Release notes/din
- Growth/Personalized first day/Structured tasks/Community feedback/cs
- Data Platform Engineering/Data Platform SRE/Status Update/2026-06-26
- Categorizator
- Parsoid/Feedback/Archive 3
- Growth/Communities/How to use code snippets/cs
- Content approval extensions/fr
- Growth/Team/QS Lead Support
- Wikimedia Tools Platform Team
- Selenium/Reference/Dictionary
- Edit check/Status/2026/ru
- ResourceLoader/Migration guide (users)/ha
- ResourceLoader/Migration guide (users)/gu
- ObjectFactory/cs
- Zest/cs
- Alea/cs
- Readers/Reader Growth/Image Browsing/es
- Language Onboarding and Development/Status Updates/Q4 2025-26
- Wikimedia Release Engineering Team/Checkin archive/2026-06-17
- Language Onboarding and Development/Annual Plan 2026-27
- Developers/Maintainers/de
- Product Safety and Integrity/Account Security/Securing User-Managed Code/de
- Readers/Reader Growth/Image Browsing/de
- Code of Conduct/de-formal
- Article guidance/Updates
- Wikimedia Apps/Team/Android/Anti Vandalism/Saved Messages/fr
- Kubernetes SIG/Meetings/2026-06-23
- MediaWiki 1.47/wmf.8/Changelog
- Wikimedia Security Team/AppSec Clinic Minutes/2026-06-22
- Wikimedia Release Engineering Team/Essential work/2026-06-18
- RemexHtml/cs
- At-ease/cs
- How to become a MediaWiki hacker/gu
- Seam Carving
- ZestJQ/es
- Continuous integration/Phan/Plugins
- Data Platform Engineering/Data Platform SRE/Status Update/2026-06-19
- Bcp47Code/cs
- Assert/cs
- UpdateHistory/cs
- Wikimedia Apps/Team/iOS/Activity Tab/cs
- Readers/Reader Experience/WE 3.5.5 Donor badge experiment
- Parsoid/th
- Parsoid/gu
- Parsoid/ckb
- Wikimedia Release Engineering Team/Checkin archive/2026-06-10
- Wikimedia Apps/FAQ/iOS/he
- Wikimedia Apps/FAQ/Android/he
- Wikimedia Apps/Team/Android/"Which came first?" Game/he
- Africa Wikimedia Technical Community/ak
- Edit check/TextMatch/es
- Africa Wikimedia Technical Community/cs
- Edit check/TextMatch/ar
- MediaWiki 1.47/wmf.7/Changelog
- Wikimedia Language and Product Localization/pl
- Edit check/TextMatch/fr
- Wikimedia Security Team/AppSec Clinic Minutes/2026-06-15
- Edit check/TextMatch/ja
- Parsoid/fa
- Wikimedia Apps/Team/iOS/Activity Tab/en
- Edit check/TextMatch/en
- Edit check/False positives/he
- Data Platform Engineering/Data Platform SRE/Status Update/2026-06-12
- XTools/Admin Score/cs
- XTools/Admin Stats/cs
- XTools/Blame/cs
- XTools/Authorship/cs
- XTools/Top Edits/cs
- XTools/Simple Counter/cs
- Wikimedia Release Engineering Team/Pretrain/Progress reports/2026-06-12
- Developer Portal/Version 2
- RemexHtml/gu
- PhotoCommons/ko
- Translation UX/Specification/fr
- VisualEditor/Recipes/cs
- MediaWiki-Docker/Extension/AutoModerator
- VisualEditor/Single edit tab/cs
- VisualEditor/GIFs/cs
- XTools/Category Edits/cs
- ZestJQ/cs
- Wikimedia Release Engineering Team/Checkin archive/2026-06-03
- Universal Language Selector/New ULS/Preferred Languages
- Gerrit/Commit message guidelines/ar
- Trust and Safety Product/Temporary Accounts/Updates/ur
- Reading/Web/Accessibility for reading/Reporting/pl.wikisource.org
- Content translation/Documentation/FAQ/sk
- Wikimedia Security Team/AppSec Clinic Minutes/2026-06-09
- Edit check/ur
- Edit check/sk
- Edit check/gu
- Edit check/diq
- MediaWiki 1.47/wmf.6/Changelog
- New Developers/Introduction to the Wikimedia Technical Ecosystem/id
- Wikimedia Release Engineering Team/Essential work/2026-06-05
- Universal Language Selector/New ULS/ar
- WISE Search Engine
- OOUI/Concepts/bn
- Universal Language Selector/New ULS/bn
- KNUST Wikitech Club Launching and Onboarding Season/Participate/bn
- Machine Learning/archived projects/bn
- Map extensions/bn
- MediaWiki wiki/bn
- Reading/Web/Advanced mobile contributions/bn
- Translation UX/Specification/bn
- Draft namespace/bn
- Edit check/Configuration/bn
- MediaWiki user interface framework/bn
- Wikimedia Hackathon 2026/bn
- MediaWiki user interface framework/en
- Reading/Web/Advanced mobile contributions/yue
- Universal Language Selector/New ULS/en
- Social tools/cs
- MediaWiki wiki/cs
- Map extensions/cs
- Machine Learning/archived projects/cs
But it doesn't work, nor as passed parameter. It doesn't even work on pages directly:
<DynamicPageList>
namespace = {{NAMESPACE}}
ordermethod = popularity
order = descending
redirect = none
</DynamicPageList>
The (main) namepsace is used instead. Bug? (MW 1.18 here) Subfader 16:04, 14 December 2011 (UTC)
- I've not tested, but you could try to use
#tag:dynamicpagelistas in wikibooks:Template:CategoryList - Helder 16:24, 14 December 2011 (UTC)
{{#tag:dynamicpagelist| namespace = {{NAMESPACE}} ordermethod = popularity order = descending redirect = none }}- Yep. Cheers! Subfader 17:16, 14 December 2011 (UTC)
- Yep, #tag:dynamicpagelist is the required solution. Variables are only interpreted in some parameters, of which namespace is not one. It does main namespace since it considers anything that's not a namespace name to be the main namespace (so people can use things like 'main' ).
- Cheers. Bawolff 06:11, 15 December 2011 (UTC)
- Yep. Cheers! Subfader 17:16, 14 December 2011 (UTC)
New feature parameter: categorymatch
[edit]The third-party-version of this addon (found here) supports the very useful parameter categorymatch. On my wiki, this is used to collect articles from categories with similar names. After switching to the Intersection-Addon, I missed this feature. so I added it myself. Maybe other users are also interested in this, so here is the udiff for DynamicPageList.php
Usage:
<DynamicPageList> category=MustBeExtended categorymatch=%fruit%|%vegetables% notcategory=electronics </DynamicPageList>
This will find any aticles in categories with names like fruit and vegetables which also are contained in the category MustBeExtended.
- Odysseus277 16:01, 4 January 2012 (UTC)
--- X:\Scripte\intersection\DynamicPageList.php 2011-11-14 17:31:42.000000000 +0100
+++ X:\xampp\htdocs\wiki\mediawiki\extensions\intersection\DynamicPageList.php 2012-01-04 17:25:23.000000000 +0100
@@ -114,12 +114,13 @@
$addFirstCategoryDate = false;
$dateFormat = '';
$stripYear = false;
$linkOptions = array();
$categories = array();
+ $categoryMatches = array();
$excludeCategories = array();
$parameters = explode( "\n", $input );
$parser = new Parser;
$poptions = new ParserOptions;
@@ -146,12 +147,33 @@
$parser->transformMsg( $arg, $poptions )
);
if( is_null( $title ) ) {
continue;
}
$excludeCategories[] = $title;
+ break;
+ case 'categorymatch':
+ $matchedCategories = explode('|', $arg);
+ foreach($matchedCategories as $currentCategory) {
+ $value = null;
+ if(preg_match("/^\%[^%]*\%$/i", $currentCategory)) {
+ $value = mysql_real_escape_string(str_replace('%', '', $currentCategory));
+ $value = '%' . $value . '%';
+ } elseif(preg_match("/^\%[^%]*$/i", $currentCategory)) {
+ $value = mysql_real_escape_string(str_replace('%', '', $currentCategory));
+ $value = '%' . $value;
+ } elseif(preg_match("/^[^%]*\%$$/i", $currentCategory)) {
+ $value = mysql_real_escape_string(str_replace('%', '', $currentCategory));
+ $value = $value . '%';
+ }
+
+ if( is_null($value) ) continue;
+
+ $title = Title::newFromText( $parser->transformMsg( $value, $poptions ) );
+ $categoryMatches[] = $title;
+ }
break;
case 'namespace':
$ns = $wgContLang->getNsIndex( $arg );
if ( $ns != null ) {
$namespaceIndex = $ns;
$namespaceFiltering = true;
@@ -386,13 +408,14 @@
break;
} // end main switch()
} // end foreach()
$catCount = count( $categories );
$excludeCatCount = count( $excludeCategories );
- $totalCatCount = $catCount + $excludeCatCount;
+ $catMatchCount = empty($categoryMatches) ? 0 : 1;
+ $totalCatCount = $catCount + $excludeCatCount + $catMatchCount;
if ( $catCount < 1 && false == $namespaceFiltering ) {
if ( $suppressErrors == false ) {
return htmlspecialchars( wfMsgForContent( 'intersection_noincludecats' ) ); // "!!no included categories!!";
} else {
return '';
@@ -428,13 +451,13 @@
}
}
// build the SQL query
$dbr = wfGetDB( DB_SLAVE );
$tables = array( 'page' );
- $fields = array( 'page_namespace', 'page_title' );
+ $fields = array( 'DISTINCT page_id', 'page_namespace', 'page_title' );
$where = array();
$join = array();
$options = array();
if ( $googleHack ) {
$fields[] = 'page_id';
@@ -487,19 +510,38 @@
for ( $i = 0; $i < $catCount; $i++ ) {
$join["$categorylinks AS c$currentTableNumber"] = array(
'INNER JOIN',
array(
"page_id = c{$currentTableNumber}.cl_from",
- "c{$currentTableNumber}.cl_to={$dbr->addQuotes( $categories[$i]->getDBKey() )}"
+ "c{$currentTableNumber}.cl_to={$dbr->addQuotes( $categories[$i]->getDBKey() )}"
)
);
$tables[] = "$categorylinks AS c$currentTableNumber";
$currentTableNumber++;
}
+
+ if( !empty($categoryMatches) ) {
+ $onStatements = array();
+
+ foreach( $categoryMatches as $categoryMatch ) {
+ $onStatements[] = "LOWER(c{$currentTableNumber}.cl_to) LIKE LOWER({$dbr->addQuotes( $categoryMatch->getDBKey() )})";
+ }
+
+ $join["$categorylinks AS c$currentTableNumber"] = array(
+ 'INNER JOIN',
+ array(
+ "page_id = c{$currentTableNumber}.cl_from",
+ implode(' OR ', $onStatements)
+ )
+ );
+ $tables[] = "$categorylinks AS c$currentTableNumber";
+
+ $currentTableNumber++;
+ }
for ( $i = 0; $i < $excludeCatCount; $i++ ) {
$join["$categorylinks AS c$currentTableNumber"] = array(
'LEFT OUTER JOIN',
array(
"page_id = c{$currentTableNumber}.cl_from",
188.192.164.182 16:01, 4 January 2012 (UTC)
List doesn't refresh when categories are changed
[edit]I'm using DPL, but I'm finding the list doesn't actually refresh unless I edit the page it's on. For example, I put this on a "Category Intersection" page:
<DynamicPageList> category = CategoryOne category = CategoryTwo </DynamicPageList>
It correctly displays all the pages in both categories. However if I edit one of the listed pages and change it from CategoryOne to CategoryThree, I'd expect a refresh to drop it from the list. It doesn't. If I edit the "Category Intersection" page and save, the list refreshes.
Is this the expected behavior? JasonPenney 21:43, 6 January 2012 (UTC)
- Update: it appears to handle adds correctly, but not subtractions. If a page joins a category listed in the DPL tag, it shows up after a refresh. If a page is removed from a category in the DPL tag, the page with the tag must be edited before the item drops from the list. JasonPenney 21:57, 6 January 2012 (UTC)
- This is expected behaviour (as a compromise between giving super up to date output and performance) See bugzilla:11685. Bawolff 22:14, 6 January 2012 (UTC)
OR-operator for category
[edit]I can't figure out, how to use an OR Operator for the categories:
<DynamicPageList> category = Category1 category = Category2 </DynamicPageList>
Output: DLP shows only items, which are in both categories. Category1 AND Category2
I wish to combine the out in this manner: Category1 OR Category2. Is there an OR-Operator? Bertram Simon 15:14, 30 January 2012 (UTC)
- I don't think that is possible with this extension. Helder 20:48, 30 January 2012 (UTC)
- Helder is correct, such a feature is not implemented in the Wikimedia version of this extension. Bawolff 03:26, 31 January 2012 (UTC)
- Thank you for your answers. It is a pity. I use DLP for the frontpage of an business-wiki and want to show the last 5 entries of 3 categories. SimonWpt 11:44, 1 February 2012 (UTC)
- Well if you're not overly concerned about order you could do something like:
<DynamicPageList> category = Category1 </DynamicPageList> <DynamicPageList> category = Category2 </DynamicPageList>
- and it will look like one list (you can even use limit and offset parameters to make the lists interleved). Very far from an ideal solution though. Bawolff 01:17, 2 February 2012 (UTC)
- And if you are interested in alphabetical order, you could use JavaScript to sort the resulting list. Helder 12:14, 2 February 2012 (UTC)
- That's the way, I use it now:) SimonWpt 16:50, 6 February 2012 (UTC)
- I've requested this on Bugzilla. Helder 01:10, 19 March 2012 (UTC)
Group articles by first letter?
[edit]- Is it possible to show only the items in a certain category that begin with the letter "A" for example? I didn't find any setting for this. Harmageddon 15:37, 14 February 2012 (UTC)
- Not really. You can sort by sortkey (which is more or less like pagename). use offset to get to the a's, and use limit to make it stop after some amount of pages, but that isn't really what you'd want.
- Being able to do offset/limit based on the sorting method would be a good feature (not to mention more efficient than current limit/offset) Bawolff 16:19, 14 February 2012 (UTC)
Moving from the Third Party extension to this one
[edit]I'm thinking of moving from the Third Party extension to this one. Is there a page with an overview of the differences somewhere? Shall I start one? (And what would be the right location to start it? :) Guaka (talk) 11:59, 16 February 2012 (UTC)
- This extension is extremely limited compared to the Third Party extension. I'm not even sure that they should use the same name at all because of the differences. Jeblad (talk) 12:12, 16 February 2012 (UTC)
- Thanks! Then I'll start looking into why there's no version 2.0.0 yet of DPL3rdParty. I'm using it for an internal project but I want to see the security issues resolved. Guaka (talk) 13:11, 16 February 2012 (UTC)
- There are switches you can use to turn of the dangerous features. Jeblad (talk) 14:22, 16 February 2012 (UTC)
This extension is extremely limited compared to the Third Party extension. I'm not even sure that they should use the same name at all because of the differences.
- I really wish this was the case... Something like 50% of bugs files for this extension are really for the other one (and probably vice versa).
There are switches you can use to turn of the dangerous features.
- You sure? The "dangerous" features don't just include what the author of that extension thought was dangerous, but also things like 'replaceintitle' which isn't properly escaped, and a wide variety of innocent looking parts. Bawolff (talk) 22:41, 16 February 2012 (UTC)
- I've used both extensions and there are security holes in both of them. It seems like proponents of either one just bashing the other one about being the flawed one, instead of doing anything with claimed problems. As it is now there are one extension that actually works for the complex cases, and one limited one that also have issues (although less so) but don't handle the complex cases at all.
- If you have identified dangerous features and believe it should be possible to turn them of then at least post a note about it. Jeblad (talk) 20:28, 18 February 2012 (UTC)
- What are the security flaws in this one? I am not aware of any (Worst case senario that I'm aware of for this extension is it doesn't scale well. If your wiki has 100 000 pages, it could make your wiki quite slow). The other (third party) extension I can (Easily) take over user accounts and cause them to vandalize the wiki, in certain weird configs even execute arbitrary programs on the persons web server (and do essentially anything, spread viruses, etc). I have filed bugs about the third party extension. Bawolff (talk) 13:30, 19 February 2012 (UTC)
- Bawolff, where did you file the bugs? I would like to take a better look at the issues. Guaka (talk) 14:14, 21 February 2012 (UTC)
- bugzilla:24199. I also left a note on the extensions website somewhere (I think). It was a long time ago. Bawolff (talk) 02:54, 23 February 2012 (UTC)
- Bawolff, where did you file the bugs? I would like to take a better look at the issues. Guaka (talk) 14:14, 21 February 2012 (UTC)
- What are the security flaws in this one? I am not aware of any (Worst case senario that I'm aware of for this extension is it doesn't scale well. If your wiki has 100 000 pages, it could make your wiki quite slow). The other (third party) extension I can (Easily) take over user accounts and cause them to vandalize the wiki, in certain weird configs even execute arbitrary programs on the persons web server (and do essentially anything, spread viruses, etc). I have filed bugs about the third party extension. Bawolff (talk) 13:30, 19 February 2012 (UTC)
- There are switches you can use to turn of the dangerous features. Jeblad (talk) 14:22, 16 February 2012 (UTC)
- Thanks! Then I'll start looking into why there's no version 2.0.0 yet of DPL3rdParty. I'm using it for an internal project but I want to see the security issues resolved. Guaka (talk) 13:11, 16 February 2012 (UTC)
creationdate ?
[edit]hi.
There is an addfirstcategorydate option, but what about a creationdate ? Marc (talk) 14:32, 11 March 2012 (UTC)
- bugzilla:25012. (Really some day I should set aside some time and fix everything that sucks with this extension) Bawolff (talk) 01:43, 12 March 2012 (UTC)
- Thank for your answer. Marc (talk) 14:30, 15 March 2012 (UTC)
Performance concerns regarding the Intersection extension
[edit]I see in this bug comment and others that there are performance concerns regarding Extension:Intersection; Tim Starling said a year ago, "We don't want to enable it on any wikis which have a lot of pages, since there is a risk of DB overload due to extremely long-running queries." Is this still the case, or would it be have the performance concerns been addressed?
Also, it's a bit difficult for me to find more thorough discussion of these performance issues, and a link would be appreciated. Thanks. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator (talk) 10:16, 10 April 2012 (UTC)
- Yes this is still the case.
- The performance concerns would be difficult to address (or at least beyond my ability) unless we store category membership information in a different type of data structure (aka something other than the db).
- I don't think there were any discussions about this. Its fairly self-obvious if you look at the code. (People like to point at it being enabled at en.wikitonary for how it can't be that bad, but I think the fact its enabled there is more a historical accident than anything else [that is of course just my opinion]. One could easily make queries there that would take longer to complete then the timeout for rendering a page. Bawolff (talk) 16:39, 11 April 2012 (UTC)
- p.s. I should mention WM-DE is working on a project which may have implications to making this extension reasonably efficient (That's not their primary goal, but it may help this extension). Bawolff (talk) 20:19, 11 April 2012 (UTC)
- Do you mean m:WikiData? Helder 01:58, 13 April 2012 (UTC)
- No i mean catgraph/graphcore [1]. Note, that their goal is to make the toolserver catgraph thingy go faster, they weren't really concerned about DPL, but i think that DPL could possibly be integrated with that maybe (I say that without looking at code whatsoever. At the very least it would require a lot of refactoring of DPL). Bawolff (talk) 23:53, 13 April 2012 (UTC)
- Oh, good to know of that. Thanks for the link :-) Helder 17:10, 14 April 2012 (UTC)
- Yes, catserv could be used to make category intersection efficient. It was indeed designed for that. There's a PHP client library, and some demo code that shows how to do category intersections and other filtering. That par4t is pretty streight forwards. But:
- 1) Graphserv is a standalone graph db engine. It's a custom build c++ software, wich would have to be reviewed, deployed and maintained. And while I have done quite a bit of testing with it, and i'm pretty happy with the results, it hasn't seen any long term / heavy load testing yet.
- 2) For Graphserv to be useful, it needs to be up to date - i.e. whenever a categorylink entry is made or removed in mysql, this needs to be done in graphserv as well. This isn't totally trivial.
- Actually, I think 2) should actually be implememented as a separate extension (one that just keeps a graphserv instance in sync with the mediawiki db). DPL could then use graphserv if it's present. Daniel Kinzler (WMDE) (talk) 19:34, 21 April 2012 (UTC)
- For 2, I was assuming that a simple hook into LinksUpdateComplete could perhaps do it. That way whenever cat gets updated, so would graphserv (I again say this without even having looked at graphserv code once) Bawolff (talk) 19:46, 21 April 2012 (UTC)
- Right now, I am inferring that no one has specific plans to make those improvements in Graphserv and so on that would be necessary to move forward on deploying the Intersection (DPL) extension to more WMF wikis. So I'm going to remove this extension from Deployment queue. Thanks for the discussion! Sumana Harihareswara, Wikimedia Foundation Engineering Community Manager (talk) 04:39, 4 May 2012 (UTC)
- For 2, I was assuming that a simple hook into LinksUpdateComplete could perhaps do it. That way whenever cat gets updated, so would graphserv (I again say this without even having looked at graphserv code once) Bawolff (talk) 19:46, 21 April 2012 (UTC)
- No i mean catgraph/graphcore [1]. Note, that their goal is to make the toolserver catgraph thingy go faster, they weren't really concerned about DPL, but i think that DPL could possibly be integrated with that maybe (I say that without looking at code whatsoever. At the very least it would require a lot of refactoring of DPL). Bawolff (talk) 23:53, 13 April 2012 (UTC)
- Do you mean m:WikiData? Helder 01:58, 13 April 2012 (UTC)
- Who maintains GraphServ?
- Would storing categories in Wikidata be useful here?
- This query suggests to only use recentchanges table. Is that useful? --Gryllida 00:16, 28 August 2014 (UTC)
- p.s. I should mention WM-DE is working on a project which may have implications to making this extension reasonably efficient (That's not their primary goal, but it may help this extension). Bawolff (talk) 20:19, 11 April 2012 (UTC)
Redirect to another page on the wiki
[edit]I've included the diff of the changes I made to DynamicPageList.php for our wiki, where we wanted to have canonical links that would always point to the newest page in a category (for example.)
This adds a mode, 'redirect', to DynamicPageList.php which will cause PHP to do a header redirect to the first result it gets back. It's a little ghetto, but it works very well and doesn't add any kind of weird overhead.
Index: docroot/extensions/intersection/DynamicPageList.php
===================================================================
--- docroot/extensions/intersection/DynamicPageList.php (revision 31)
+++ docroot/extensions/intersection/DynamicPageList.php (revision 32)
@@ -197,6 +197,7 @@
$endList = '';
$startItem = '';
$endItem = '';
+ $redirectMode = false;
break;
case 'none':
$startList = '';
@@ -204,6 +205,7 @@
$startItem = '';
$endItem = '<br />';
$inlineMode = false;
+ $redirectMode = false;
break;
case 'ordered':
$startList = '<ol>';
@@ -211,6 +213,7 @@
$startItem = '<li>';
$endItem = '</li>';
$inlineMode = false;
+ $redirectMode = false;
break;
case 'inline':
// aka comma seperated list
@@ -219,7 +222,16 @@
$startItem = '';
$endItem = '';
$inlineMode = true;
+ $redirectMode = false;
break;
+ case 'redirect':
+ $startList = '';
+ $endList = '';
+ $startItem = '';
+ $endItem = '';
+ $inlineMode = false;
+ $redirectMode = true;
+ break;
case 'unordered':
default:
$startList = '<ul>';
@@ -227,6 +239,7 @@
$startItem = '<li>';
$endItem = '</li>';
$inlineMode = false;
+ $redirectMode = false;
break;
}
break;
@@ -627,7 +640,14 @@
}
// end unordered list
- if ( $useGallery ) {
+ if ( $redirectMode ) {
+ if (count($articleList) > 0) {
+ $uri = preg_replace('/^[^"]*"([^"]*)".*$/', '\1', $articleList[0]);
+ header("Location: $uri");
+ } else {
+ $output = 'No matches!';
+ }
+ } elseif ( $useGallery ) {
$gallery->setHideBadImages();
$gallery->setShowFilename( $galleryFileName );
$gallery->setShowBytes( $galleryFileSize );
Khamer (talk) 21:52, 24 April 2012 (UTC)
Request: Uncap the number of categories you can filter
[edit]Our wiki uses this extension quite a bit to generate reports. One thing our authors have noticed is that when you add too many notcategories it stops working. (Gives the error "Error: Too many categories!") Is there a way to increase this number? And what are the reasons for this limitation? 131.167.254.100 18:10, 27 April 2012 (UTC)
- Sorry. I found the settings, but before I alter it, what are the reasons for the current limits? 131.167.254.100 18:11, 27 April 2012 (UTC)
- The query gets more inefficient the more categories you have (In general). If someone tried to do the intersection of 200 categories, and all those categories were really big and mostly distinct, it could make your servers melt. Bawolff (talk) 17:04, 30 April 2012 (UTC)
- Ok, thanks! I'll give our authors the heads up. 131.167.254.100 14:00, 2 May 2012 (UTC)
- Actually it may not be that bad. While the cost of intersecting 2 large (mostly distinct) categories is probably O(n*log(n)), once the first two have been done you have a small set (which will only get smaller) so the cost of the next m categories is about m * n. If m is limited this can be considered O(n). Of course it may require something smarter than a generated SQL INTERSECT everything to avoid loading all categories at the same time. Rich Farmbrough 18:48, 29 November 2013 (UTC).
18:48, 29 November 2013 (UTC)
- Actually it may not be that bad. While the cost of intersecting 2 large (mostly distinct) categories is probably O(n*log(n)), once the first two have been done you have a small set (which will only get smaller) so the cost of the next m categories is about m * n. If m is limited this can be considered O(n). Of course it may require something smarter than a generated SQL INTERSECT everything to avoid loading all categories at the same time. Rich Farmbrough 18:48, 29 November 2013 (UTC).
- Ok, thanks! I'll give our authors the heads up. 131.167.254.100 14:00, 2 May 2012 (UTC)
- The query gets more inefficient the more categories you have (In general). If someone tried to do the intersection of 200 categories, and all those categories were really big and mostly distinct, it could make your servers melt. Bawolff (talk) 17:04, 30 April 2012 (UTC)
Will it be possible generate hot page in 30 days?
[edit]I'd like hot page within 30 days rather than hot page for all article. Zoglun (talk) 23:58, 19 June 2012 (UTC)
- By hot pages, you mean
ordermethod=popularity? Its not possible to limit hits to only those in the last 30 days. First and foremost mediawiki doesn't keep track of when the hit happened, so such data isn't even stored in the db. Bawolff (talk) 16:43, 20 June 2012 (UTC)- OK. Then, may this extension show hottest page created within 30 days?
- I think the create time is stored in the db. Zoglun (talk) 21:46, 24 June 2012 (UTC)
- This extension cannot. Date created is stored in db (not in the most convinent way though) however at the moment this extension cannot do things of the form "list top 30 pages by criteria A provided they also match criteria B". Bawolff (talk) 17:18, 25 June 2012 (UTC)
- Well, fine. Thank you for you help!
- I will go to find someone write a extension with these function for MediaWiki. Zoglun (talk) 15:59, 28 June 2012 (UTC)
- Hi Zoglun,
- did you find a solution in the meantime?
- I would be happy to hear from you since I want this page as well... Stefahn (talk) 13:45, 9 July 2012 (UTC)
- Sorry I do not find any solution for this yet. Zoglun (talk) 20:01, 17 July 2012 (UTC)
- Thanks for your feedback.
- Please let me know if you should find a solution - someday :) Stefahn (talk) 20:25, 17 July 2012 (UTC)
- Thanks for your feedback.
- Sorry I do not find any solution for this yet. Zoglun (talk) 20:01, 17 July 2012 (UTC)
- This extension cannot. Date created is stored in db (not in the most convinent way though) however at the moment this extension cannot do things of the form "list top 30 pages by criteria A provided they also match criteria B". Bawolff (talk) 17:18, 25 June 2012 (UTC)
Articles without categories
[edit]- I need to find every articles which don't have categories.
- i've tried to do things like category =_none_ , but nothing seems to work.
- if someone has any idea ? Thanks 88.169.254.205 16:03, 25 June 2012 (UTC)
- Cannot be done with this extension (best you can do is anything not in a specific category).
- Use Special:UncategorizedPages instead. Bawolff (talk) 17:05, 25 June 2012 (UTC)
- How do you sort by popularity? not restricted by date 209.23.179.98 (talk) 21:00, 5 October 2020 (UTC)
#titleparts?
[edit]The answer is probably no, but I thought I would ask to find out. Is it possible for the list to show only certain parts of the title (like #titleparts parser function does)? For instance, we have a list of artists we have had permission from and we list them on this page. Would it be possible to remove the "Copyrights/" before the name of the artist? --KingAragorn (talk) 16:59, 5 July 2012 (UTC)
- Not currently. I want to eventually (at some point in the mysterious future) add a template output mode to allow people to custom format the results via a template, but I don't have very much free time currently to devote to this extension. Bawolff (talk) 11:58, 6 July 2012 (UTC)
- Many thanks for the reply. I look forward to seeing this new feature at some point in the future. Best of luck! --94.193.198.128 13:31, 6 July 2012 (UTC)
- That will be very nice! Helder 14:45, 6 July 2012 (UTC)
- I would totally appreciate that! KonstantinK-HH (talk) 19:23, 3 January 2013 (UTC)
Wikisource
[edit]Hi,
This extension could be very useful on Wikisource, as you can see here : s:fr:Portail:Nouveautés. But there are some bugs and some features are needed, like a better way to choose categories. This is not simple for me to explain that in English ; so if you intend to improve this extension some day, it could be interesting to contact someone on Wikisource. Thanks. Marc (talk) 13:43, 22 July 2012 (UTC)
- Thanks for the message. I will do that some day in the mysterious future when I improve this extension (I have definite plans to, just not a lot of free time). Bawolff (talk) 12:15, 23 July 2012 (UTC)
String functions on inline list?
[edit]The code
{{lc:{{#tag:dynamicpagelist|
category = {{{1}}}
ordermethod = categorysortkey
mode = inline
order = ascending
suppresserrors = true
namespace = Main
}}}}doesn't make the result lower-case. How could I get this this work? 134.4.24.101 18:19, 11 October 2012 (UTC)
- Maybe the CSS text-transform Property is of some help for you. Helder 18:59, 15 October 2012 (UTC)
- No, I want to be able to use parser functions on the output, actually. Seems the problem is the output is in html markup instead of wiki, thus it is not compatible. 134.4.24.101 23:25, 18 October 2012 (UTC)
- >Seems the problem is the output is in html markup instead of wiki, thus it is not compatible.
- Yes, that is correct.
- Long term plans for this extension (Long term = whenever I next have a stretch of free time, which probably isn't going to be the near future) is to allow arbitrary templates to be used in formatting the results of the DPL which would allow you're usecase. Bawolff (talk) 22:25, 22 November 2012 (UTC)
- No, I want to be able to use parser functions on the output, actually. Seems the problem is the output is in html markup instead of wiki, thus it is not compatible. 134.4.24.101 23:25, 18 October 2012 (UTC)
Adding images into a Dynamic list
[edit]Hi, I'm wanting to create a dynamic list of various pages and to feature the title and the main image from that page. Is there any way to do this? I know you can easily create galleries of images but it is the pages that are what I want with an image for each of them. At the moment all images on the pages are in an info box starting with the following code {{ Infobox | photo = File:Hp-p6-2021uk.jpg|280px|p6-2140ea | imagecaption = HP Pavilion p6-2140ea
is there any way to tell the Dynamic list to drag whatever image is in the info box?
Thanks Pete Specindex (talk) 21:55, 22 October 2012 (UTC)
- Sorry not currently. Bawolff (talk) 22:24, 22 November 2012 (UTC)
Code suggestion: Sort by page title w/o specific category
[edit]Hi,
Couldn't find a way to simply sort all pages by title so I'd like to suggest one:
Code suggestion
[edit]foreach ( $parameters as $parameter ) {
...
case 'sorttitle':
...
case 'ordermethod':
switch ( $arg ) {
$orderMethod = 'sorttitle';
break;
...
followed by:
switch ( $orderMethod ) {
...
case 'sorttitle':
$sqlSort = 'page_title';
break;
...
Possible issue
[edit]- I guess the code will need to assert in case a category was selected, but all in all - how does this sound?
Plain vanilla usage
[edit]- MediaWiki
- Old projects/Image Store Requirements
- MediaWiki/es
- GNU Free Documentation License
- Customization
- Development
- Communication
- Documentation
- Download
- Documentation/es
- Customization/es
- Development/es
- Communication/es
- Download/es
- MediaWiki/ko
- MediaWiki/de
- Documentation/de
- MediaWiki/fr
- Customization/de
- Download/de
- Communication/de
- Development/de
- Documentation/zh
- MediaWiki/it
- Documentation/it
- Customization/it
- Download/it
- Development/it
- Communication/it
- Project of the Month Questionnaire
- MediaWiki/pt
- Documentation/pt
- Customization/pt
- MediaWiki/ja
- Documentation/fr
- Customization/fr
- Download/fr
- Communication/fr
- Development/fr
- 1.6 image storage
- Sites using MediaWiki
- Documentation/ja
- Customization/zh
- Development/zh
- Customization/ja
- MediaWiki/nb
- Sites using MediaWiki/de
- Sites using MediaWiki/fr
- Sites using MediaWiki/es
- Sites using MediaWiki/it
- Sites using MediaWiki/zh
- Sites using MediaWiki/en
- Sites using MediaWiki/multilingual
- Sites using MediaWiki/nl
- Sites using MediaWiki/sv
- Sites using MediaWiki/pt
- Bugzilla/Notes/4198
- Communication/ja
- Download from SVN
- Sites using MediaWiki/Wikimedia
- Communication/pt
- MediaWiki/fi
- Documentation/fi
- Download/ko
- Development/pt
- Sites using MediaWiki/fi
- MediaWiki/pl
- Download/ja
- Bitfields for rev deleted
- Development/ja
- Download from SVN/ja
- Sites using MediaWiki/ca
- Sites using MediaWiki/ja
- Release notes/1.6
- Download/pt
- Sites using MediaWiki/by size
- Sites using MediaWiki/gallery
- Subversion/auto-props
- Download from SVN/fr
- Sites using MediaWiki/ru
- Roadmap/Archive
- Sites using MediaWiki/pl
- Markup spec
- Sites using MediaWiki/no
- Unicode normalization considerations
- Markup spec/BNF/Links
- Security
- Markup spec/BNF
- Markup spec/BNF/Fundamental elements
- Markup spec/BNF/Article title
- Sites using MediaWiki/he
- Markup spec/BNF/Article
- Dbzip2
- Markup spec/BNF/Magic links
- Customization/pl
- Download/pl
- Documentation/pl
- Communication/pl
- Development/pl
- Markup spec/BNF/Noparse-block
- Watchlist subscriptions
- MediaWiki testimonials
- MediaWiki/sq
- Snapshot work branch
- Release notes/1.7
- Date formats
- Download from SVN/de
- SELinux
- MediaWiki/ru
- XHTML
- Forum
- Development/sq
- Perl
- User hub
- News
- Sysadmin hub
- Developer hub
- Developer account/Subversion
- News/ru
- Release notes/1.8
- Release notes
- News/de
- Download/ru
- News/fr
- News/ja
- Sysadmin hub/ru
- Special page names
- Subversion/branching guide
- Proposed Database Schema Changes
- Proposed Database Schema Changes/October 2004
- Proposed Database Schema Changes/August 2006
- Proposed Database Schema Changes/November 2006
- Localisation
- News/pt
- Snippets/Autoedit
- Calendars
- SVG benchmarks
- Patroller
- MediaWiki on IRC
- Subversion/layout
- MediaWiki/id
- News/zh
- News/yue
- MediaWiki/yue
- MediaWiki/zh-hant
- MediaWiki/zh-hans
- PHP 5.2 benchmarks
- MediaWiki/br
- Special page names/la
- MediaWiki/fa
- Parser function extensions
- Bugzilla
- Hacks
- MediaWiki/sv
- Version lifecycle
- Security issues with authorization extensions
- MediaWiki/ca
- Download/ca
- News/ca
- Extension Matrix
- Fun with mb strlen
- Fun with mb strlen/code
- IPv6 support roadmap
- MediaWiki/hu
- Communication/hu
- User hub/hu
- Download from SVN/es
- Version
- MediaWiki/cs
- MediaWiki/nl
- Communication/ca
- APC
- MediaWiki/ar
- Sites using MediaWiki/ko
- Bugzilla/ru
- Download/nl
- Development/nl
- Interwiki
- Release notes/1.9
- User hub/ru
- Developer hub/ru
- MWWRender.ml
- Localization checks
- Lucene
- User hub/fi
- Sysadmin hub/fi
- Development/ru
- Documentation/ru
- Customization/ru
- Documentation/ca
- Developer hub/fi
- Communication/fi
- Download/fi
- Customization/fi
- Communication/ru
- Customization/ca
- Development/ca
- User hub/nl
- MediaWiki/vi
- Download/vi
SkyDiver (talk) 02:00, 23 November 2012 (UTC)
- Would be kind of inefficient for larger wikis (but then again, there's a lot of other stuff in this extension that is inefficient). There's no index on page_title (only one on page_namespace, page_title) so that means it would have to filesort [instead of potentially just getting the top x results. In particular in the plain vanilla usage example it would have to sort all pages, instead of getting just the top x pages]. [However, again there is other things in this code that can cause that to. Sorting on page_touched for example].
- tl;dr: Some performance concerns, but this extension already has shitty performance. Otherwise looks good. :) Bawolff (talk) 17:04, 23 November 2012 (UTC)
- So you're basically saying that
$sqlSort = 'page_namespace, page_title';should yield better performance? (all my pages are in the default namespace anyway). - I must agree that it IS slow... any faster implementation out there or am I "stuck" with it? :) 82.80.166.168 02:22, 25 November 2012 (UTC)
- One more thing: is this .git worthy? 82.80.166.168 02:24, 25 November 2012 (UTC)
- Yes, 'page_namespace, page_title' would (should) be faster in the case that no categories were selected. (This is of course off the top of my head. Before making statements about which way is faster, I should really be doing sql EXPLAIN's to actually check what really happens).
- As for git - I would kind of prefer this (page_namespace, page_title) be used as what happens if someone selects an alphabetical listing but doesn't select any categories (instead of being a sorting method in its own right). Of course this is slightly different from the current alphabetical listing for categories where it is semi-sorted into namespaces, but nonetheless hopefully close enough. In the case where a category is chosen, the current sorting by cl_type, cl_sortkey would probably be faster then page_namespace, page_title, so I would like it to keep with the fastest method possible. Bawolff (talk) 18:07, 26 November 2012 (UTC)
- One more thing: is this .git worthy? 82.80.166.168 02:24, 25 November 2012 (UTC)
- So you're basically saying that
Number of results
[edit]Hi, all. First let me thank for the great DPL again, it is sooo valuable tool for Wikinews and I believe it will be more and more valuable, if it becomes more advance in the future.
Now my question, maybe not in a right place at all. I would love to know, whether it is possible to get from/into some variable the number of the results returned from the DPL (or it can be done a different way, maybe there is something tlike PAGESINCATEGORY, which is for one category, but I don't know). Can You please help me or show me the right direction? Thanks a lot. Okino (talk) 00:18, 26 November 2012 (UTC)
- Sorry, You can't really put dpl results into parser funcs at the moment. Bawolff (talk) 18:00, 26 November 2012 (UTC)
Only counting pages, without listing
[edit]Hello,
I wanted to count the number of Mainspace pages in a category, using:
<DPL> category=Incomplete Pages/Stubs namespace=main resultsheader=%TOTALPAGES% </DPL>
However, it also list them. I only want their number, without a list- either ordered or unordered. How can i do that?
77.125.239.126 19:46, 1 December 2012 (UTC)
- You're using DynamicPageList (3rd party). This page is for the Wikimedia version of this extension. You want Extension:DynamicPageList (third-party) Bawolff (talk) 20:40, 2 December 2012 (UTC)
- The magic word {{PAGESINCATEGORY}} would give you this number. Rich Farmbrough 01:37, 28 November 2013 (UTC).
01:37, 28 November 2013 (UTC) - I'd also recommend Rich Farmbrough's solution via PAGESINCATEGORY. Otherwise, the proper dpl call would be "format = %TOTALPAGES%,,," not "resultsheader", since you want to manually format the output and not put a number above the output. Theaitetos (talk) 02:15, 28 November 2013 (UTC)
Is it possible to siplay author's name of the article?
[edit]Could someone tell me if it is possible to diplay autor's name using DinamicPageList! I would be also glad if developers add function to make possible to display some part of the article! There is such function in DPL Third party, but I dont like how this (DPL third party) works, there are some bugs! Thx Fokebox (talk) 15:00, 9 January 2013 (UTC)
- Its not currently possible.
- Additionally, its somewhat hard to define what "author's name" means. Is the author the person who created the page, the last person to edit the page, the person who edited the page the most, a list of all people to edit the page, or something else? Bawolff (talk) 22:34, 10 January 2013 (UTC)
- For my wiki author of the article is those who created an aricle. Fokebox (talk) 15:55, 11 January 2013 (UTC)
How to display all recent added articles?
[edit]Could someone tell me how to display all recent created articles without specifying a category? Fokebox (talk) 16:16, 21 January 2013 (UTC)
- Well in core mediawiki you can put {{Special:newpages}} on a page.
- With this extension, something like
<dynamicpagelist> ordermethod=created count=10 namespace=main </dyanmicPageList>
- (For the main namespace) Bawolff (talk) 16:07, 23 January 2013 (UTC)
- Thx it works Fokebox (talk) 04:33, 24 January 2013 (UTC)
- It works but I have noticed that
addfirstcategorydate = true
doesnt work! How can I fix it? Fokebox (talk) 16:45, 26 January 2013 (UTC)
- you don't :P
- addfirstcategorydate adds the date the page was added to the category (not the date the page was created). You haven't specified any categories, so there's no date to add. Bawolff (talk) 02:12, 30 January 2013 (UTC)
- Ok, how can I make to display all recent added articles to my wiki?
- I specify several categories like this:
<DynamicPageList> category = Category 1 category = Category 2 ordermethod = created order = descending count = 10 addfirstcategorydate = true namespace = main </DynamicPageList>
- and there is no result. It says: <intersection_noresults> Fokebox (talk) 06:46, 30 January 2013 (UTC)
- While, are there pages that are both in category 1 and category 2? Note that addfirstcategorydate combined with ordermethod = created will result in dates that jump all over the place.
- -----
- "<intersection_noresults>" is not the error message you're supposed to see. If you're seeing that it means that either the localization files are missing, or something is wrong with MediaWiki (like stale localization cache). Bawolff (talk) 05:16, 3 February 2013 (UTC)
I have faced some problem!
[edit]I use this code to display some recent added articles
<DynamicPageList> ordermethod = created order = descending addfirstcategorydate = true namespace = main count = 10 </DynamicPageList>
But if I add new article or delete some the list is not refreshed. I have to add some changes to the page where the code is to refresh the list! Why does it happen? Fokebox (talk) 18:57, 28 April 2013 (UTC)
- Cache invalidation isn't implemented in this extension. In the default config it rechecks the list every 72 hours.
- You can manually trigger a recheck by purging the page. (Adding either ?action=purge or &action=purge to the end if the url) Bawolff (talk) 19:41, 28 April 2013 (UTC)
- you can configure how often the list gets rechecked. putting
$wgDLPMaxCacheTime =0;at bottom of LocalSettings.php would disable dpl caching altogether and make it always up to date at the expense of a little more server load. Bawolff (talk) 19:50, 28 April 2013 (UTC)- Thx! It works now! Fokebox (talk) 12:27, 29 April 2013 (UTC)
- you can configure how often the list gets rechecked. putting
References via Cite.php broken
[edit]I'm running Mediawiki 1.17.0 at http://bocpages.org with the latest Cite.php extension installed. If I put the <references /> tag after say for example a gallery generated with DPL the references will be empty. Placing the <references /> tag right before the DPL gallery code will result in the footnotes be rendered. I've seen a description of this exact same bug on the discussion page of the other DPL extension as well, alas no resolution there either. [2] Is this bug related to DPL or Cite? Is there a certain workaround? Fredd-E (talk) 19:19, 21 May 2013 (UTC)
Show Username?
[edit]I would be a nice feature to show the username that made the last edit of the page in the case of ordermethod = lastedit. In private wikis for people not used to MW it could be a simpler way of simplifying the Recent Changes content.
I imagine something like this: Page name (Username) 190.246.17.138 22:06, 2 June 2013 (UTC)
Use of undefined constant __DIR__ - assumed -- ERROR
[edit]- Hi,
- what did I wrong ? I downloaded the extension and have it in to the intersection folder.
- After adding the load entry to the config file following Error occured:
- Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/apache2/2.2/htdocs/mediawiki-1.18.1/extensions/intersection/DynamicPageList.php on line 51
- Warning: include(__DIR__/DynamicPageList.i18n.php) [function.include]: failed to open stream: No such file or directory in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408
- Warning: include() [function.include]: Failed opening '__DIR__/DynamicPageList.i18n.php' for inclusion (include_path='.:/var/php/5.2/pear') in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408
- What should I do ? 193.158.105.118 09:46, 19 June 2013 (UTC)
- Your version of PHP is too old. Update PHP (or use an older version of DynamicPageList, although you may have to go quite far back). Bawolff (talk) 17:43, 30 June 2013 (UTC)
- if ( !defined('__DIR__') ) define('__DIR__', dirname(__FILE__)); use this 124.29.220.32 (talk) 13:43, 14 February 2018 (UTC)
Error: No results
[edit]How I can avoid this:
Extension:DynamicPageList (DPL), version 1.9.0 : Error: No results!
Is there any param to ignore errors or show No results, or empty ? 85.250.26.132 16:47, 28 June 2013 (UTC)
- Use suppresserrors=true . See https://www.mediawiki.org/wiki/Extension:DynamicPageList_%28Wikimedia%29#suppresserrors Bawolff (talk) 17:45, 30 June 2013 (UTC)
Fatal error: Cannot redeclare wfDynamicPageList()
[edit]Hey, after upgrading from 1.5 to 1.6 (Mediawiki version: 1.21.2
Fatal error: Cannot redeclare wfDynamicPageList() (previously declared in /home/MyWeb/www/www/w/extensions/intersection/DynamicPageList.php:70) in /home/MyWeb/www/www/w/extensions/DynamicPageList/DynamicPageList.php on line 81
PHP: 5.3.26 (cgi-fcgi)
Any idea what's happen?
Regards Sia Neriman (talk) 02:02, 16 September 2013 (UTC)
- You have both DynamicPageList (Wikimedia) and DynamicPageList (Third party) installed. They seem to be conflicting with each other. (I think there's some setting in the third party version to stop it from trying to impinge on the Wikimedia version's function. Not sure). Bawolff (talk) 15:32, 28 October 2013 (UTC)
Not showing new pages added to category
[edit]I'm having an issue where new pages that are created are not being added to the list I have setup on the main page. They will show up if you click edit then click save (no changes to page) but it seems counter intuitive to have to manually refresh the page for something that is suppose to be 'Dynamic'... Please help. 68.112.199.206 21:49, 17 September 2013 (UTC)
- Sounds like a cache issue. Have you checked your settings regarding cache? Theaitetos (talk) 15:28, 20 September 2013 (UTC)
- I am seeing the same issue on MW 1.23. It randomly says there are no listings, even if there were prior, when adding a category that would result in getting displayed.
- As above, a null edit fixes the issue. What cache settings should I be looking at, on the MW end or browser (clearing browser cache does not help) 73.52.206.118 00:16, 5 August 2014 (UTC)
- At the MW end. Check your MW cache settings. There's also a "purge" button on every page (where "move page" is), that allows you to purge the server cache for this specific page; but this is of course just a manual workaround, not a fix for your cache settings. Theaitetos (talk) 01:30, 5 August 2014 (UTC)
Is it possible to make a list of recent added articles orderd by some user?
[edit]Hello, I'd like to ask if it is possible to make a list of recent added articles orderd by some user. I have a user page where a list of all articles created by user could be displayed on this page. Can I make it with this extension? Fokebox (talk) 17:08, 4 October 2013 (UTC)
- No, this extension does not support listing articles on a "per user" basis. If you want to create such lists, you could use the similar Extension:DynamicPageList (third-party) (more features, more resource-intensive), which has such a feature. Theaitetos (talk) 16:40, 5 October 2013 (UTC)
Using a sortable table
[edit]Adding these code at line 237, inside the switch, inside the foreach, inside function renderDynamicPageList().
case 'sortable':
$startList = '<table border=1 class="sortable"><th>Page</th>';
$endList = '</table>';
$startItem = '<tr><td>';
$endItem = '</td></tr>';
$inlineMode = false;
break;
Add them before
case 'unordered':
Then, it allows you to render a sortable table of the pages with the border. You may tune it as you like. Then, add these somewhere within the switch.
case 'tabletitle':
$startList = sprintf( '%s<th>%s</th>', $startList, htmlspecialchars($arg));
break;
Then, the plugin will behave this way:
<DynamicPageList>
namespace = Stuff
shownamespace = false
redirects = exclude
mode = sortable
</DynamicPageList>
gives
| Stuff 1 |
| Stuff 2 |
Then,
<DynamicPageList>
namespace = Stuff
shownamespace = false
redirects = exclude
mode = sortable
tabletitle = Stuff Title
</DynamicPageList>
gives
| Stuff Title |
|---|
| Stuff 1 |
| Stuff 2 |
It will only work if tabletitle appears after mode = sortable.
Edited at 08:51, 19 November 2013 (UTC) based on a recommendation by Bawolff. Joshua.yathin.yu (talk) 05:04, 15 November 2013 (UTC)
- You need to modify your instructions to instead do:
case 'tabletitle': $startList = sprintf( '%s<th>%s</th>', $startList, htmlspecialchars($arg)); break;- Or this would open you up to a cross-site-scripting security vulnerability. Bawolff (talk) 18:59, 15 November 2013 (UTC)
- Thank you. I will edit it accordingly. I am still new to this php so these things may be rusty for me. Joshua.yathin.yu (talk) 08:49, 19 November 2013 (UTC)
Hidden Categories
[edit]Does DPL work with hidden categories? 79.71.111.47 22:25, 26 November 2013 (UTC)
- Yes. It treats them just like normal categories. Bawolff (talk) 21:49, 27 November 2013 (UTC)
Show Last Modified Date
[edit]Is there any way to do this? I guess similar to addfirstcategorydate, but instead for the last modified date? 136.165.36.155 14:40, 3 December 2013 (UTC)
- Not currently with this extension. (However some future version might if I ever give this extension some tender loving care) Bawolff (talk) 01:34, 4 December 2013 (UTC)
Can I count the pages with a templates
[edit]Hi, I need to count the pages with a templates and post this number in another page. I'm interested to show the last five page with a templates, a random five page with a specific templates and the page most visited with the same templates. It's possible?
Thanks 87.16.181.80 22:39, 13 January 2014 (UTC)
- I don't think it's possible to do it with the Wikimedia version of DPL, but Extension:DynamicPageList (third-party) does have the capabilities you seek. There's even a random seed function for random output. Theaitetos (talk) 18:04, 15 January 2014 (UTC)
List regardless of category
[edit]I want to list latest or popular articles regardless of category. Is there any extension like this that you can do that? Peter Westerlund (talk) 12:45, 19 January 2014 (UTC)
- Latest articles can be listed with Special:New pages. And popular sites might even be in your Special:Statistics page, otherwise, the extended DynamicPageList extension can do that with
ordermethod=counter. Theaitetos (talk) 14:27, 19 January 2014 (UTC)- Interesting, is it possible to choose which parts you want to display. I just want to display the title. Maybe the date if it's possible to choose date format.
- It's 'Latest created', 'Popular articles' (right now) and 'Last edited articles' that I want to list the titles of on the startpage. Peter Westerlund (talk) 16:10, 19 January 2014 (UTC)
- Yes, all of that is possible. You can find extensive documentation in English on how to use DPL here. Theaitetos (talk) 18:43, 19 January 2014 (UTC)
- Is that about this: https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) or what? A bit confusing all this. Peter Westerlund (talk) 18:58, 19 January 2014 (UTC)
- Yes, it's about this extension. The Wikimedia DPL extension cannot do what you request. Theaitetos (talk) 01:17, 20 January 2014 (UTC)
- As I said below, I can't find how to do the list without category there in the manual. Peter Westerlund (talk) 10:18, 20 January 2014 (UTC)
- Try
firstrevisionsince=dateanttimeas written here. Theaitetos (talk) 00:18, 21 January 2014 (UTC)- Got: "You must include at least one category or enter a name space!" Peter Westerlund (talk) 01:06, 21 January 2014 (UTC)
- Are you sure you use the right version of DPL? Theaitetos (talk) 17:57, 21 January 2014 (UTC)
- Probably I had the wrong version. So I downloaded the version that existed through your link. I could now use "nottitlematch" and set the main page there. What I understand you can't use firstrevisionsince instead of title or category match. Peter Westerlund (talk) 19:09, 21 January 2014 (UTC)
- You don't need
titleorcategorymatchat all. Just set yourfirstrevisionsinceto the date you want. Theaitetos (talk) 20:44, 22 January 2014 (UTC)
- You don't need
- Probably I had the wrong version. So I downloaded the version that existed through your link. I could now use "nottitlematch" and set the main page there. What I understand you can't use firstrevisionsince instead of title or category match. Peter Westerlund (talk) 19:09, 21 January 2014 (UTC)
- Are you sure you use the right version of DPL? Theaitetos (talk) 17:57, 21 January 2014 (UTC)
- Got: "You must include at least one category or enter a name space!" Peter Westerlund (talk) 01:06, 21 January 2014 (UTC)
- Try
- As I said below, I can't find how to do the list without category there in the manual. Peter Westerlund (talk) 10:18, 20 January 2014 (UTC)
- Yes, it's about this extension. The Wikimedia DPL extension cannot do what you request. Theaitetos (talk) 01:17, 20 January 2014 (UTC)
- I can't find in the manual how to do the list without category. Can you show? Peter Westerlund (talk) 22:22, 19 January 2014 (UTC)
- Is that about this: https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) or what? A bit confusing all this. Peter Westerlund (talk) 18:58, 19 January 2014 (UTC)
- Yes, all of that is possible. You can find extensive documentation in English on how to use DPL here. Theaitetos (talk) 18:43, 19 January 2014 (UTC)
- for reference this is possible with wikimedia dpl. (ordermethod=popularity)
- in mediawiki 1.23 (not yet released) this is possible by doing {{special:popularpages}} Bawolff (talk) 21:14, 3 February 2014 (UTC)
- Wikimedia DPL can? How would you select the articles regardless of categories in Wikimedia DPL? Theaitetos (talk) 11:02, 4 February 2014 (UTC)
- Oh, I slightly missed that part when reading the original question (Reading too fast). You can do it if you're ok with results being only in the main namespace. (e.g. namespace=main) Bawolff (talk) 23:09, 9 February 2014 (UTC)
- Wikimedia DPL can? How would you select the articles regardless of categories in Wikimedia DPL? Theaitetos (talk) 11:02, 4 February 2014 (UTC)
to display some recent added articles by languages
[edit]Hello. My wiki is a small multilingual wiki with several categories. The languages are in subpages. For example russian pages are in subpages /ru. How to display recent added articles in russian language for all the categories ? Thanks you. 193.253.141.80 13:47, 20 April 2014 (UTC)
- You would need to add a "Category:Russian" or something similar to all the "…/ru" subpages. Otherwise the Wikimedia DPL cannot do it; the third-party DPL can do it without the extra category. Theaitetos (talk) 09:05, 23 April 2014 (UTC)
- By the way, you can use the excellent Extension:Translate to ease the translators' work. Ricordisamoa 21:51, 23 April 2014 (UTC)
Localization
[edit]There must be a reason why I can't find this extension from translatewiki.net ? I'd be interested to translate it to my language. 89.166.60.185 08:08, 1 May 2014 (UTC)
- It's called Intersection over there, which it's former name. [[kgh]] (talk) 08:15, 1 May 2014 (UTC)
Dynamically sized table?
[edit]I note the example of a 3 column table that has 5 rows and thus uses an offset of 5. http://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)#offset
What if I want the table to expand dynamically so it showed all pages (it is a small personal wiki), how would I code that? xxxmicrobexxx 06:11, 9 June 2014 (UTC)
- Afaik, that's not possible, though you could use Extension:DynamicPageList_(third-party), which supports dynamic column settings. Theaitetos (talk) 16:59, 9 June 2014 (UTC)
Ordermethod = sortkey doesn't work
[edit]I use the following code:
<DynamicPageList> category=MyCategory ordermethod=sortkey </DynamicPageList>
Then i get the following error:
Extension:DynamicPageList (DPL), version 2.02 : Warnung: Parameter 'ordermethod': Der Wert 'sortkey' ist unzulässig. Es wird der Defaultwert benutzt: 'categoryadd'. Hilfe: ordermethod= categoryadd | lastedit | none. 94.79.145.182 11:56, 2 July 2014 (UTC)
- That's a different extension. This page documents extension:DynamicPageList (Wikimedia) not extension:DynamicPageList (third-party) Bawolff (talk) 06:49, 5 July 2014 (UTC)
Mediaplayer in gallery mode
[edit]I tried to setup a gallery in a sandbox on Swedish Wikibooks for a category showing three videos but it doesn't show a mediaplayer. Is that a bug, or am I doing something wrong (or is it expected behaviour and not a developed feature)? Jan Ainali (WMSE) (talk) 16:31, 20 November 2014 (UTC)
- its a bug. I have a fix (https://gerrit.wikimedia.org/r/192959). might take a little while to get reviewed. Bawolff (talk) 22:02, 25 February 2015 (UTC)
- @Jan Ainali (WMSE): This should start working after next tuesday. Bawolff (talk) 22:51, 25 February 2015 (UTC)
Hide sub-categories?
[edit]Hi,
I'm trying to only show the articles, and not the sub-categories. Any way to do this without changing the categories? Lilis2nd (talk) 01:14, 2 January 2015 (UTC)
- If all the articles are in the main namespace, try
namespace=0Bawolff (talk) 20:02, 25 February 2015 (UTC)- Just the tip I needed.
- Thanks!! :D Lilis2nd (talk) 06:54, 9 March 2015 (UTC)
- Just the tip I needed.
Sort by Popularity in MediaWiki 1.25
[edit]- Am I correct in understanding that the sort by popularity feature of DPL will not work after 1.25? $wgDisableCounters has been removed. 170.29.64.11 20:51, 9 January 2015 (UTC)
- Can you please file a bug asking to restore the feature (hit counters) via an extension? Then we can recommend installation of that extension together with this. Nemo 21:47, 9 January 2015 (UTC)
- + per Nemo [[kgh]] (talk) 16:54, 12 January 2015 (UTC)
- Yes you are correct. It will not work. Bawolff (talk) 20:01, 25 February 2015 (UTC)
- Can you please file a bug asking to restore the feature (hit counters) via an extension? Then we can recommend installation of that extension together with this. Nemo 21:47, 9 January 2015 (UTC)
- Has this been added back in? Can you sort by popularity so you only see the top 30 pages? Kwprns (talk) 21:04, 5 October 2020 (UTC)
- no. Patches welcome, but i dont think too many people use these two extensions together so its not a high priority. Bawolff (talk) 05:37, 23 October 2020 (UTC)
Union of categories
[edit]Hello, is it possible to get a union of categories? Is it possible to combine unions and intersections? I want this:
No pages meet these criteria.
Thanks! NaBUru38 (talk) 22:14, 4 March 2015 (UTC)
- Not with this extension. But some other category intersection extensions support this. Bawolff (talk) 05:48, 23 April 2015 (UTC)
Selections based on multiple namespaces
[edit]Is it possible to list selections based on multiple namespaces at the same time ?
For example, how can we apply an OR operator to fetch namespaces=title together with namespace=file ?
Maybe something like the follow ?
<Dyn----PageList>
category =
ordermethod =categorysortkey
order= ascending
namespace = title OR file
</Dyn----PageList>
Thanks a lot in advance for any useful tip Trebiano (talk) 14:48, 16 July 2015 (UTC)
Random ordermethod
[edit]It would be great if it was possible to have the ordermethod set at random (specially when the count is set to a small number) so as to present the reader with a different list of articles on each visit.
And I wonder if having several instances of this plugin in a page slow down the performance? I suppose it would depend on the number of categories designated and the number of articles belonging to each category but is there any best-practice available for maximum performance and functionality? 91.117.213.127 (talk) 12:11, 9 November 2015 (UTC)
- ya really 78.48.77.210 (talk) 21:26, 9 March 2017 (UTC)
File cache incompatibility
[edit]Just had an issue with DynamicPageList on page which was cached by native mediawiki file cache - it simply haven't displayed new pages matched to category filter.
Cache purge helped to get them in list.
Is there any way to solve this issue in native way without manual cache purge? 91.218.144.129 (talk) 16:40, 19 May 2016 (UTC)
Main NS/Discussion
[edit]Hello. Is there a possibility to make an intersection of pages that are in one category and their discussion pages are in another? Thanks David.Mirth (talk) 09:47, 6 October 2016 (UTC)
- Take a look at Extension:DynamicPageList (Wikimedia)#category. Jeblad (talk) 10:24, 6 October 2016 (UTC)
- Looks like that won't help as the categories would need to be in the same page (not one in the article and the other on its talk page). Helder 13:59, 6 October 2016 (UTC)
- Sorry, didn't read the question! My bad! :D No I don't think you can do that with this extension. Jeblad (talk) 15:13, 6 October 2016 (UTC)
- that is the problem... might try it with pywikibot listpages (which would work somehow), but it wouldn't refresh, compared to DPL... We would like on our wiki to make a list of eg. anatomical pages marked as "wrong typography", but those technical categories are given by templates in the discussion pages, not to disturb the reader... David.Mirth (talk) 16:16, 6 October 2016 (UTC)
Only display page in current language
[edit]Hello,
I am using DynamicPageList with Translate extensions, and I wondered if I have the means to display only pages in the current language in my DPL ?
My pages are displayed like "Page name" - "Page name/en" - "Page name/fr"
Thanks in advance ! Tuxxic (talk) 08:32, 7 October 2016 (UTC)
- OK I managed to get what I wanted by using the other DPL: Extension_talk:DynamicPageList_(third-party)
- Then I wrote this, using parser functions I found here: ParserFunctions
- Here is the script I used to do this:
{{#ifeq: {{#translation:}} | | </code> <DPL> category = Category name format=«ul»,<li>[[%TITLE%]]\n</li>,,«/ul» </DPL> | <DPL> category = Category name format=«ul»,<li>[[%TITLE%|{{#ifexist: Translations:%TITLE%/Page display title/en <!-- then -->|{{Translations:%TITLE%/Page display title/en}}<!-- else -->|%TITLE%}}]]\n</li>,,«/ul» </DPL> }}- If someone needs help understanding this chunk of code, please feel free to ask :) Tuxxic (talk) 09:44, 8 December 2016 (UTC)
Avoiding duplicate pages from dynamic lists
[edit]I use duplicator extension to fork existing pages. Is there any way to ensure that only original page and not the duplicated pages gets listed in the dynamic page lists? TitusiMW (talk) 16:29, 18 April 2017 (UTC)
"shownav" style ("next 100") navigation bar for list generated by DPL
[edit]I would like to use DPL to generate a list of recently changed pages. List can run into 100s of entries. I would like to put a navigation bar like one that is automatically generated by Special:NewPages. I would like to generate links like (Newest) (Newer 100) (Older 100) (Oldest). Clicking on these links, DPL should generate a list of relevant set of pages. Can this be done? Can you show me how? Size of list is not predetermined. TitusiMW (talk) 16:32, 18 April 2017 (UTC)
Order ascending for other language
[edit]Hello,
I'm trying to show pages in category by alphabetic way, but because the pages names are in Hebrew, the "order=ascending" function doesn't work well. How can I modify it?
Thanks. 79.182.164.123 (talk) 23:31, 15 May 2017 (UTC)
Installation into Mediawiki 1.27 (lts)
[edit]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
the REL1.27 Branch doesn't support wfLoadExtension( 'intersection' );
you also have to use require_once "$IP/extensions/intersection/intersection.php";
unfortunately the "Installation" Section is using a template, so I'm not able to quickly edit this part
BR 91.114.200.218 (talk) 21:51, 19 September 2017 (UTC)
- I've updated the page to reflect that Ciencia Al Poder (talk) 09:26, 20 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Include sub-categories
[edit]While the search form includes pages in sub-categories, DynamicPageList appears not to do so. Can this be changed? ReplicationWiki-fan (talk) 15:12, 18 April 2018 (UTC)
- Honestly, nobody is really working on this extension right now, so probably not.
- In principle though, there are some complications from deepcat/etc being outside of the normal db, but probably nothing insurmountable. Bawolff (talk) 01:06, 21 April 2018 (UTC)
Can't find intersection.php ?
[edit]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Can't find intersection.php ? Alexandroslee (talk) 03:59, 10 September 2018 (UTC)
- I can see it right here: https://github.com/wikimedia/mediawiki-extensions-intersection/tree/REL1_27
- Are you sure you're downloading the correct version / understanding the installation instructions? Ciencia Al Poder (talk) 20:13, 12 September 2018 (UTC)
- Yes ! Thank's a lot, I got it! Alexandroslee (talk) 08:29, 13 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Interaction with VisualEditor
[edit]Please see VisualEditor/Feedback/Archive/2018/08#h-#dpl_template_allows_more_than_one_categories,_but_VisualEditor_keeps_only_the_f-2018-08-16T10:46:00.000Z for a limitation in DPL. Whatamidoing (WMF) (talk) 19:42, 26 October 2018 (UTC)
- That's extension:DynamicPageList (third-party), not this one.
- As an aside though, I think visual editor is in the wrong for assuming that parser functions (certainly parser funcs with a hash) cannot have duplicate arguments. Bawolff (talk) 23:55, 29 August 2019 (UTC)
- Would you like to file a bug against VisualEditor to say that? (If I file it, it's going to sound a lot like "Ask Bawolff what he meant", so it'd probably be more efficient for you to file it.) Whatamidoing (WMF) (talk) 17:29, 30 August 2019 (UTC)
- To be clear, I also think its a super minor bug, and not worth much fuss. Bawolff (talk) 00:50, 1 September 2019 (UTC)
- https://phabricator.wikimedia.org/T231740
- In core mediawiki you can use something like {{GENDER:USERNAME|user=male|user=female|user=neutral}} to demonstrate the same bug. Admittedly this is super contrived. Bawolff (talk) 01:06, 1 September 2019 (UTC)
Ability to set gallery title from information of File
[edit]Currently gallery mode uses the file name as the caption. I'd love to be able to use details from the file upload and display this as the caption name.
I wonder if this is easy to implement? Jamiehutber (talk) 11:48, 31 January 2019 (UTC)
- Same question. 72.28.199.40 (talk) 14:55, 31 May 2019 (UTC)
- I guess it could get that info from the same place as extension:MultimediaViewer does (aka via extension:CommonsMetadata or structured data on commons). Certainly not impossible to implement, although i'm not sure if there is anyone interested in doing the work. Bawolff (talk) 23:54, 29 August 2019 (UTC)
Wow
[edit]I use duplicator extension to fork existing pages. Is there any way to ensure that only original page and not the duplicated pages gets listed in the dynamic page lists? Nliz77 (talk) 13:14, 27 February 2019 (UTC)
New pages will not be shown until "edit and save without changes" of the page.
[edit]Hey!
I'm struggling with the extension.
The newest Pages will only be displayed when i edit the page (the page where the extension is used) and save it without changes. 91.249.165.178 (talk) 10:23, 8 October 2019 (UTC)
- The page is cached. You can adjust $wgDLPMaxCacheTime in LocalSettings.php to reduce the time the page is cached, or use a parser function or extension tag that has the side effect of disabling caching, like {{CURRENTTIMESTAMP}} (I don't know if that one actually works depending on the type of caching you have) Ciencia Al Poder (talk) 20:49, 9 October 2019 (UTC)
define defaults
[edit]Is there a way to define the defaults in local settings?
That would be nice (for example) to define suppresserrors as true by default, so the expression is not needed every time. --Gunnar.offel (talk) 11:22, 30 October 2019 (UTC)
- no.
- You can use templates (using the {{#tag:DynamicPageList|inside part of tag here...}} syntax) so you dont have to repeat stuff. Bawolff (talk) 13:57, 30 October 2019 (UTC)
Is it possible for gallery mode to use the page image, rather than a file?
[edit]When I try to create a Dynamic Page List of categories, I'd like to see the page images of the intersecting articles in a gallery format. Is this possible? I tried the following:
<dynamicpagelist>
category=Category1
category=Category2
ordermethod=sortkey
order=ascending
mode=gallery
</dynamicpagelist>
It creates a gallery as I would expect, but none of the tiles have images and each one says below it "File not Found" Blinkingline (talk) 21:10, 15 November 2019 (UTC)
- i think gallery mode was created before pageimages were a thing. I think this would make a good feature request Bawolff (talk) 18:41, 20 November 2019 (UTC)
- Filed as https://phabricator.wikimedia.org/T240108 Bawolff (talk) 15:15, 8 December 2019 (UTC)
- Just FYI, User:BrandonXLF did this. If you download the most recent version, pageimages will be taken into account. Bawolff (talk) 18:32, 29 December 2019 (UTC)
- I am using the latest version but have the same error "File not Found" when make a gallery for pages not in the File namespace. I have PageImages installed and working (e.g. it works for popups). Are there any other steps not documented in the readme to get this working? Thank you. InnerCitadel (talk) 01:16, 23 August 2020 (UTC)
- no, it should just work.
- Do the pages images appropriately appear in Special:PagesWithProp ? Bawolff (talk) 10:25, 24 August 2020 (UTC)
- Thanks for the reply. The page_image_free Property is present in that special page and it brings up the correct pages and lists the image file. The images from the pages don't show the images when in gallery mode of the extension, but do with popups. Maybe it's interacting with something. I'll try fiddle around.
- https://wikimsk.org/wiki/Special:PagesWithProp?propname=page_image_free&namespace= InnerCitadel (talk) 11:20, 25 August 2020 (UTC)
- huh, well that's weird. Your sure you have the latest version of (the wikimedia variant of) DPL?
- I guess i'll have to test on the weekend to see if the feature in dpl broke. Bawolff (talk) 15:58, 25 August 2020 (UTC)
- looking at special:version - your copy of DPL is too old (feature was introduced in december 2019 your version is from november 2019). Try upgrading your copy of dpl. Bawolff (talk) 16:05, 25 August 2020 (UTC)
- Ah thank you. I am still using Mediawiki 1.34 (waiting for the full release of 1.35), and the extension distributor linked me to the previous release of DPL (1_34). I tried installing DPL REL1_35 on mediawiki 1.34, but the gallery mode doesn't work, I get an internal error message: [ed47be08e7ac059aea9d4905] 2020-08-26 05:56:18: Fatal exception of type "Error"
- I presume it needs 1.35 to work? InnerCitadel (talk) 06:04, 26 August 2020 (UTC)
- setting $wgShowExceptionDetails = true; will give you a better error message, but probably yes.
- You can try the version at https://github.com/wikimedia/mediawiki-extensions-intersection/archive/5bc2b8001b28010c441ef4678377bec174924f05.zip which is halfway between 1.34 and 1.35. It might work. No garuntees. Bawolff (talk) 06:27, 26 August 2020 (UTC)
- The halfway version you linked works on version 1.34. Thank you so much, I really appreciate it.
- (The proper error message on 1.34 using the latest version by the way was DynamicPageListHooks.php: Class 'PageImages\PageImages' not found) InnerCitadel (talk) 08:33, 26 August 2020 (UTC)
Processing of tle element of the output list
[edit]May I processed the element of the output list? For example, show subpagenames for articles which is subpages by using SUBPAGENAME Magic Word. Фил Вечеровский (talk) 19:35, 28 March 2020 (UTC)
- Sorry, not with this version of the extension. Bawolff (talk) 11:30, 29 March 2020 (UTC)
Error 500 on install. Details follow:
[edit]Mediawiki 1.34
PHP Version: 7.3.6
I downloaded and installed DynamicPageList exactly as described, using wfLoadExtension( 'intersection' );, and get a 500 error immediately. PHP Error Log:
Fatal error: Uncaught Exception: Unable to open file /home/redacted/public_html/extensions/intersection/extension.json: filemtime(): stat failed for /home/redacted/public_html/extensions/intersection/extension.json in /home/redacted/public_html/includes/registration/ExtensionRegistry.php:136 Stack trace: #0 /home/redacted/public_html/includes/GlobalFunctions.php(52): ExtensionRegistry->queue('/home/mediawiki...') #1 /home/redacted/public_html/LocalSettings.php(134): wfLoadExtension('intersection') #2 /home/redacted/public_html/includes/Setup.php(124): require_once('/home/mediawiki...') #3 /home/redacted/public_html/includes/WebStart.php(81): require_once('/home/mediawiki...') #4 /home/redacted/public_html/index.php(41): require('/home/mediawiki...') #5 {main} thrown in /home/redacted/public_html/includes/registration/ExtensionRegistry.php on line 136
Can anyone point me in correct direction please? Thank you. 172.103.30.133 (talk) 15:11, 18 May 2020 (UTC)
- Figured it out. The installation instructions say:
- wfLoadExtension( 'intersection' );
- But to solve the problem, they need to say:
- wfLoadExtension( 'Intersection' );
- The difference is an upper-case I instead of lower-case i. K894 (talk) 16:43, 18 May 2020 (UTC)
- Thanks for noticing the error. Docs fixed! Ciencia Al Poder (talk) 21:42, 18 May 2020 (UTC)
- its lowercase i in the git repo, i think maybe it depends on how you download it Bawolff (talk) 04:14, 19 May 2020 (UTC)
- @Bawolff Thanks for the clarification. Should it be standard across either download? I can see that difference causing issues. Thanks for your work on this extension. It is exactly what I wanted! K894 (talk) 14:31, 19 May 2020 (UTC)
- @Bawolff I suggest standardization because Git directs people here for install instructions and the case difference may cause headaches. K894 (talk) 14:35, 19 May 2020 (UTC)
Redirects in Lists (italic)
[edit]I use many pages filtered by categories, that works, no problem there.
What me suprises is that the scheme of cat-pages is not covered. Redirects will be shown in italic.
To make the behavior act same just a addition of
.mw-redirect { font-style: italic; }
is needed. Gunnar.offel (talk) 10:41, 27 September 2020 (UTC)
Subcategories
[edit]Not all pages belonging to a category are usually placed directly in this category, but many of them can often be found in some of its subcategories. Would it be possible for the DynamicPageList to list also pages from subcategories? Jan.Kamenicek (talk) 20:58, 29 November 2020 (UTC)
Hide dates
[edit]When i sort by
<DynamicPageList>
category = xy
addfirstcategorydate = true
ordermethod = created
</DynamicPageList>
It also displays the date, which can be useful but is there any way to hide that? Bedtry (talk) 07:21, 23 March 2021 (UTC)
- It then looks like this
- 19. März 2021: xyz Bedtry (talk) 07:22, 23 March 2021 (UTC)
Hide image dimensions in gallery mode?
[edit]I'm using gallery mode with PageImages, and it's working great, I've hidden the file size, but under each image is the image's dimensions (i.e. "980 x 540") and I'm not seeing any obvious way to hide this. Is there a way to get gallery mode to show just the image and page title? Neilan (talk) 02:28, 19 April 2021 (UTC)
- same problem, have you found a solution? 86.219.236.74 (talk) 13:38, 9 January 2022 (UTC)
Show new created pages list
[edit]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone,
Could you please let me know how can I set a list showing recently created pages at my wiki? Thank you! Fokebox (talk) 17:44, 15 July 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Updating list
[edit]How often generated lists are updated?
New pages added to category, but if I do not edit and save page containing the list it is not updated.
How update can be forced? Fidoman (talk) 15:39, 27 July 2021 (UTC)
Notcategory
[edit]Hi!
Cannot understand how to restrict showing files in category (Media files). I see that there are files in list that has been uploaded to the category. So how to make so, that files are not shown in my list?
Thank you! Fokebox (talk) 15:02, 9 August 2021 (UTC)