Difference between revisions of "14 January 2009"
m |
(dynamic export queriesd) |
||
Line 24: | Line 24: | ||
</td></tr></table> | </td></tr></table> | ||
}} | }} | ||
+ | |||
+ | The list of articles to be used by the export doesn't have to be fixed, a [[MW:DPL|DPL]] query or other kind of dynamic operation can be used to generate it. The query must be made to specify the results be simple textual names separated by newline characters as in the following example which exports all articles containing the <nowiki>{{book}}</nowiki> template. | ||
+ | {{code|1= | ||
+ | '''The wikitext:''' <tt><nowiki>{{export|{{#dpl:uses=Template:Book|format=,%NAMESPACE%:%TITLE%\n,,}}}}</nowiki></tt> | ||
+ | |||
+ | |||
+ | '''The resulting export button:'''{{export|{{#dpl:uses=Template:Book|format=,%NAMESPACE%:%TITLE%\n,,}}}} | ||
+ | }} | ||
+ | |||
We intend to maintain a number of "article packages" in this way in the [[wiki article packages]] article. | We intend to maintain a number of "article packages" in this way in the [[wiki article packages]] article. |
Revision as of 08:49, 14 January 2009
Automatic article export lists
We have a lot of collections of articles which we tend to re-use a lot on many wikis in the field. We don't want to use cross-wiki transclusion because we don't want these wikis to rely on external content for their day-to-day use, so we needed a simple way to maintain these collections and export them when needed.
We've been working on the Packages extension for a while to solve this problem, but in the mean time I created Template:Export which offers a simple interface to the Special:Export functionality. Here's an example,
The list of articles to be used by the export doesn't have to be fixed, a DPL query or other kind of dynamic operation can be used to generate it. The query must be made to specify the results be simple textual names separated by newline characters as in the following example which exports all articles containing the {{book}} template.
We intend to maintain a number of "article packages" in this way in the wiki article packages article.