Difference between revisions of "Issue:Add a template in the pages automatically by DPL"
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
|Type = Change Request | |Type = Change Request | ||
|Extension = DPL | |Extension = DPL | ||
− | |Version = | + | |Version = ? |
|Description = Add a template in the pages automatically by DPL | |Description = Add a template in the pages automatically by DPL | ||
− | |Status = | + | |Status = closed |
}} | }} | ||
Line 16: | Line 16: | ||
What do you want? Do you want to create a reference list: "which article uses DPL?" or do you want to create a list "which articles use a ceratin DPL query?". The second would be possible if you put that query into a template. | What do you want? Do you want to create a reference list: "which article uses DPL?" or do you want to create a list "which articles use a ceratin DPL query?". The second would be possible if you put that query into a template. | ||
-- [[User:Gero|Gero]] 08:12, 9 May 2008 (CEST) | -- [[User:Gero|Gero]] 08:12, 9 May 2008 (CEST) | ||
+ | ===Re reply=== | ||
+ | Thank you, Gero for repling.<br> | ||
+ | Since DPL have so many way to select pages (even use regexp), maybe a user can put DPL query in a page to specific some pages to use a specific template (without putting the parser tag like "<nowiki>{{template name}}</nowiki>" in those pages individually). For example,users upload files to a wiki don't need to fill in any information in the counterpart image page anymore if DPL have the function described above. It's just needs to assign a template for the image pages by using a DPL query in a page. Any idea.--[[User:Roc michael|Roc michael]] 23:54, 9 May 2008 (CEST) | ||
+ | |||
+ | === Final Remark === | ||
+ | The latest version of DPL can be used to update the wiki text of articles; see <tt>[[updaterules]]</tt>. This is a powerful feature but it can also cause trouble if used without caution. It can be used to insert templates into existing articles at a given position. [[User:Gero|Gero]] 15:27, 14 May 2009 (UTC) |
Latest revision as of 17:27, 14 May 2009
Description: | Add a template in the pages automatically by DPL |
Extension / Version: | DPL / ? |
Type / Status: | Change Request / closed |
Contents
Problem
Hi Gero.
Could it be possible that we can add DPL query in a template page. Then, the pages which match the DPL query will include the template into themself.--Roc michael 00:42, 9 May 2008 (CEST)
Reply
Hi Michael, you can place a query into a template page. And if you use the 'skithispage' parameter that query can even collect information about the current page. What do you want? Do you want to create a reference list: "which article uses DPL?" or do you want to create a list "which articles use a ceratin DPL query?". The second would be possible if you put that query into a template. -- Gero 08:12, 9 May 2008 (CEST)
Re reply
Thank you, Gero for repling.
Since DPL have so many way to select pages (even use regexp), maybe a user can put DPL query in a page to specific some pages to use a specific template (without putting the parser tag like "{{template name}}" in those pages individually). For example,users upload files to a wiki don't need to fill in any information in the counterpart image page anymore if DPL have the function described above. It's just needs to assign a template for the image pages by using a DPL query in a page. Any idea.--Roc michael 23:54, 9 May 2008 (CEST)
Final Remark
The latest version of DPL can be used to update the wiki text of articles; see updaterules. This is a powerful feature but it can also cause trouble if used without caution. It can be used to insert templates into existing articles at a given position. Gero 15:27, 14 May 2009 (UTC)