Difference between revisions of "14 January 2009"
(dynamic export queriesd) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
Sandbox | Sandbox | ||
}} | }} | ||
− | + | </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. | 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= | {{code|1= | ||
− | '''The wikitext:''' <tt><nowiki>{{export|{{#dpl:uses=Template:Book|format=,%NAMESPACE%:%TITLE%\n,,}}}}</nowiki></tt> | + | '''The wikitext:'''<br><tt><nowiki>{{export|{{#dpl:uses=Template:Book|format=,%NAMESPACE%:%TITLE%\n,,}}}}</nowiki></tt> |
Line 35: | Line 33: | ||
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. | ||
+ | }} |
Latest revision as of 00:27, 20 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.