Forum:Report template

Hello, anyone knows a way to let a template automatically edit another page? For example, by adding a template to a page (or by met some conditions) the template will add a text (or make some kind of edits) to another page. I know it's odd, because the simplest way is adding the page to a category through the template, but it's not really the same thing. So is there a way to do that or is currently impossible with the wiki code? 20:39, July 7, 2011 (UTC)


 * Not exactly sure what you want to do, but see Help:Preloaded templates and maybe it will do what you want. Please give a link to where you're experimenting so maybe we can see how it is going and help out. -- Fandyllic (talk &middot; contr) 7 Jul 2011 2:12 PM Pacific
 * Wouldn't a simple link work?
 * Of course you could make it more fancy and the http:.... up to the title= plus the &action=edit could be inside the template, that way the person editing would only need to supply the page name.
 * 21:19, July 7, 2011 (UTC)
 * 21:19, July 7, 2011 (UTC)
 * 21:19, July 7, 2011 (UTC)


 * I beleive OP wants to make & save a change in article A simply by adding a template to article B. If that's the case, then according to my knowledge it's impossible, certainly not with just wiki-markup. You can transclude parts or entire articles to another article - that's the closest thing to what I understand you want. — Sovq 21:30, July 7, 2011 (UTC)

Yes, thought so. My objective is basically the reverse of a transclusion: let's say, I add the template "report" to this page and then this page name (or another text) will appear in the page B, for example a subpage to my talk page. Well thanx anyway, I thought maybe there was a solution I couldn't think of. 21:41, July 7, 2011 (UTC)
 * Well... If you add to page A, then the page Category:page_B will have the name of the page where you added it (page A).
 * You may be over thinking it. ;)
 * 22:48, July 7, 2011 (UTC)
 * You may be over thinking it. ;)
 * 22:48, July 7, 2011 (UTC)
 * 22:48, July 7, 2011 (UTC)


 * There are ways to include parts of page A to page B, using either the DPL extension or Semantic MediaWiki. But both of them require you to edit article B at least once, to define what the article is supposed to include.


 * See this article (article B) for example. Every time an article gets created (article A) which uses Template:Item and the itemtype2 parameter in that template is defined as "Grenade", then the summary table (article B) gets automatically updated with the data from article A. But article B had to be edited, at least once, to define what content it is to derive from all the 'Grenade' articles. — Sovq 07:17, July 8, 2011 (UTC)

Well, it's not what I thought but it can works too. But a few questions: the DPL are enabled by default, meaning I have simply to use this code, because what is this template? And how can you automatically pass the other informations in the table (like level, attack, sell cost...)? Because doesn't the DPL list only the pages in a category? 11:06, July 8, 2011 (UTC)
 * DPL should be in all wikis but to be sure check Special:Version in your wiki.
 * 11:41, July 8, 2011 (UTC)
 * 11:41, July 8, 2011 (UTC)
 * 11:41, July 8, 2011 (UTC)


 * If you want to try the DPL extension out, you need to request it being enabled by Special:Contact on your wiki. The Extension_DPL template gets automatically created on a wiki with dpl enambled - it can help you track all the dpl calls on the wiki, but it's not a crucial part of the extension. Here's a manual on dpl, I wouldn't use the one from the mediawiki page - might be outdated. DPL can do all sorts of magic with the data stored on the pages it calls, listing pages in a category is just the basic functionality. If you want to try it out, I'd be happy to help you with creating a dpl query you require. — Sovq 11:41, July 8, 2011 (UTC)