I would like to create a page that lists all pages that are displaying the Under_Construction template. I thought that maybe the path might be to use What Links Here, transcluded, but {{:Special:WhatLinksHere&target=Template:Under+Construction&namespace=0}} doesn't work.
Am I taking the wrong approach, or is it an impossibility - I don't like that word :-)
Anne
One trick I use is to include a Category definition on the template page. Then you can easily get the pages using the template by querying the category instead.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Anne Wilson Sent: Monday, August 09, 2010 2:08 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Listing pages that use a template
I would like to create a page that lists all pages that are displaying the Under_Construction template. I thought that maybe the path might be to use What Links Here, transcluded, but {{:Special:WhatLinksHere&target=Template:Under+Construction&namespace=0} } doesn't work.
Am I taking the wrong approach, or is it an impossibility - I don't like that word :-)
Anne
On Monday 09 August 2010 19:20:10 Edward Swing wrote:
One trick I use is to
include a Category definition on the template
page. Then you can easily
get the pages using the template by querying
the category instead.
I've just been experimenting with that, but unfortunately the exising template is a complex one, and so far I haven't had any success. I think this is the way to go, though, so I'll keep on trying.
Anne
Check out the DPL extension, http://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29. It has hundreds of practical uses. Your solution would be simply:
<dpl> uses=Template:Under_Construction </dpl>
DanB
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Anne Wilson Sent: Monday, August 09, 2010 2:08 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Listing pages that use a template
I would like to create a page that lists all pages that are displaying the Under_Construction template. I thought that maybe the path might be to use What Links Here, transcluded, but {{:Special:WhatLinksHere&target=Template:Under+Construction&namespace=0}} doesn't work.
Am I taking the wrong approach, or is it an impossibility - I don't like that word :-)
Anne -- KDE Community Working Group New to KDE Software? - get help from http://userbase.kde.org
One trick I use is to
include a Category definition on the template
page. Then you can easily
get the pages using the template by querying
the category instead.
I've
just been experimenting with that, but unfortunately the exising template is
a complex one, and so far I haven't had any success. I think this is the
way to go, though, so I'll keep on trying.
You must use <includeonly>...</includeonly> Att, Nevio
2010/8/9 Daniel Barrett danb@vistaprint.com
Check out the DPL extension, http://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29. It has hundreds of practical uses. Your solution would be simply:
<dpl> uses=Template:Under_Construction </dpl>
DanB
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto: mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Anne Wilson Sent: Monday, August 09, 2010 2:08 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Listing pages that use a template
I would like to create a page that lists all pages that are displaying the Under_Construction template. I thought that maybe the path might be to use What Links Here, transcluded, but {{:Special:WhatLinksHere&target=Template:Under+Construction&namespace=0}} doesn't work.
Am I taking the wrong approach, or is it an impossibility - I don't like that word :-)
Anne
KDE Community Working Group New to KDE Software? - get help from http://userbase.kde.org
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Monday 09 August 2010 22:47:44 nevio carlos de alarcão wrote:
One trick I use is to
include a Category definition on the template
page. Then you can easily
get the pages using the template by querying
the category instead.
I've
just been experimenting with that, but unfortunately the exising template is
a complex one, and so far I haven't had any success. I think this is the
way to go, though, so I'll keep on trying.
You must use <includeonly>...</includeonly> Att, Nevio
2010/8/9 Daniel Barrett danb@vistaprint.com
Check out the DPL extension, http://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29 . It has hundreds of practical uses. Your solution would be simply:
<dpl> uses=Template:Under_Construction </dpl>
DanB
I had one of those middle-of-the-night revelations :-) It was a syntax problem - I had added the category statement in the wrong place. It now works perfectly.
Thanks to all who responded.
Anne
I had one of those middle-of-the-night revelations :-) It was a syntax
problem - I had added the category statement in the wrong place. It now
works
perfectly.
Share your revelations, please
2010/8/10 Anne Wilson annew@kde.org
On Monday 09 August 2010 22:47:44 nevio carlos de alarcão wrote:
One trick I use is to
include a Category definition on the template
page. Then you can easily
get the pages using the template by querying
the category instead.
I've
just been experimenting with that, but unfortunately the exising template is
a complex one, and so far I haven't had any success. I think this is the
way to go, though, so I'll keep on trying.
You must use <includeonly>...</includeonly> Att, Nevio
2010/8/9 Daniel Barrett danb@vistaprint.com
Check out the DPL extension,
http://www.mediawiki.org/wiki/Extension:DynamicPageList_%28third-party%29
. It has hundreds of practical uses. Your solution would be simply:
<dpl> uses=Template:Under_Construction </dpl>
DanB
I had one of those middle-of-the-night revelations :-) It was a syntax problem - I had added the category statement in the wrong place. It now works perfectly.
Thanks to all who responded.
Anne
KDE Community Working Group New to KDE Software? - get help from http://userbase.kde.org
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Tuesday 10 August 2010 14:20:50 nevio carlos de alarcão wrote:
I had one of those middle-of-the-night revelations :-) It was a syntax
problem - I had added the category statement in the wrong place. It now
works
perfectly.
Share your revelations, please
Sorry - the place I had added the category statement would have put it inside the transcluded elements. The correct solution was
{{Box||1={{{3|Under Construction}}}|2=[[Image:Dialog-information.png|left| 40px]]'''This is a new page, currently under construction''' <div class="clear"></div>|3={{{4}}}|4={{{5}}} }}[[Category:Under_Construction]]
Now the category page shows a whole list of pages using {{Construction}}
Anne
mediawiki-l@lists.wikimedia.org