Content deleted Content added
m Substing templates: {{EP}}. See User:AnomieBOT/docs/TemplateSubster for info. |
m Archiving 1 discussion(s) from Template talk:Documentation) (bot |
||
Line 278:
::The subtemplate [[Template:Documentation/preload]] is not protected, so you may make the required changes yourself. Regards — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:51, 3 September 2013 (UTC)
:::You are quite right. I need to get more sleep. [[User:Pigsonthewing|Andy]] has now made the change. – '''[[User:PartTimeGnome|PartTimeGnome]]''' <span style="font-size:79%">([[User talk:PartTimeGnome|talk]] | [[Special:Contributions/PartTimeGnome|contribs]])</span> 21:28, 3 September 2013 (UTC)
== Avoid categorizing template sandboxes ==
Template categories are polluted by template sandboxes. I suggest to modify [[Template:Documentation/preload]] in such a way that categories are not added in sandbox subpages, as shown [https://en.wikipedia.org/w/index.php?title=Template:Documentation/preload/sandbox&diff=prev&oldid=580957727 here]. Of course, this won't help for existing docs, but maybe we could run a bot or script to deal with those. [[User:Cenarium|Cenarium]] ([[User talk:Cenarium|talk]]) 22:46, 9 November 2013 (UTC)
:I concur. I've occasionally made {{diff|Template:Service awards/doc|prev|503649690|the same change}} to /doc pages myself (I think I borrowed this trick from someone else, though I don't remember who). It would be a good idea to have it in the preload for new doc pages. I don't think the <includeonly> tags you added are really needed though (it doesn't make any difference if the #ifeq is parsed on the preload page itself). – '''[[User:PartTimeGnome|PartTimeGnome]]''' <span style="font-size:79%">([[User talk:PartTimeGnome|talk]] | [[Special:Contributions/PartTimeGnome|contribs]])</span> 15:22, 10 November 2013 (UTC)
::Yes those aren't necessary. Debresser reverted this proposed solution at [[Template:Reviewer topicon/doc]] so I've asked for input. With regards to the stated objections, the sandbox preload includes the doc template and according to past discussions here, it can be helpful to have it there (it shows the template sandbox template for example), so simply removing the doc from the sandbox doesn't seem advisable. It is problematic to have those template sandboxes in categories, one reason being it becomes harder to find the templates one is searching for - mechanically by increasing the number of categorized pages (some categories have a proportionally large number of template sandboxes). The added code is small and outside of the space users normally edit, so it shouldn't bother them. [[User:Cenarium|Cenarium]] ([[User talk:Cenarium|talk]]) 23:03, 13 November 2013 (UTC)
::: I reverted mainly because this is not regularly implemented on documentation pages and would need wide consensus, probably on the village pump. Some short reactions to this proposal. 1. It is ugly code. 2. It should probably filter both "sandbox" and "Sandbox", or is this code capitalization neutral? 3. I'd prefer a more general change to the software that would remove all categories automatically from sandboxes, apart from an automatically generated "sandbox" category. [[User:Debresser|Debresser]] ([[User talk:Debresser|talk]]) 00:30, 14 November 2013 (UTC)
:::: The code could be moved to a template and the template used instead of the #if on the doc pages. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:57, 14 November 2013 (UTC)
::::The proposed code could easily be made case-insensitive. However, this is a rare case where the normal fix is to move the page to the right title. Most templates linking to sandboxes only check for /sandbox (e.g. {{tl|Documentation/end box}}, {{tl|Used in system}}, the [[Template:Editnotices/Namespace/Template|edit notice]], etc). Odd /Sandbox cases do not merit extra preload code that is unnecessary on most pages. If there's a special case, the /doc page for that special case can be edited directly.
::::Regarding the software changes, I'm not sure that's likely to happen; we shouldn't avoid acting because we the hope the developers might make a change. On-wiki changes are faster to make than changes to MediaWiki's core.
::::The normal MediaWiki mechanisms for treating pages differently from others are [[mw:Help:Namespaces|namespaces]] and [[mw:Help:Magic words#Behavior switches|behaviour switches]] (e.g. <nowiki>__DISAMBIG__</nowiki>). I don't like the idea of core MediaWiki code treating pages differently based on title. If a change were to be made in MediaWiki, I'd like to see a <nocat> tag to suppress categories from wiki code inside it. If the Documentation template detected it is not on the main template page, it would wrap the transclusion of /doc in <nocat>. This would also be a clean way to suppress categories when demonstrating templates in examples. – '''[[User:PartTimeGnome|PartTimeGnome]]''' <span style="font-size:79%">([[User talk:PartTimeGnome|talk]] | [[Special:Contributions/PartTimeGnome|contribs]])</span> 21:29, 14 November 2013 (UTC)
::::: The more I think about this, the more I get to agree with the proposal of adding the code. [[User:Debresser|Debresser]] ([[User talk:Debresser|talk]]) 18:59, 1 December 2013 (UTC)
:{{od|::::}}I've {{diff|Template:Documentation/preload|prev|584583741|made the change}}. – '''[[User:PartTimeGnome|PartTimeGnome]]''' <span style="font-size:79%">([[User talk:PartTimeGnome|talk]] | [[Special:Contributions/PartTimeGnome|contribs]])</span> 21:28, 4 December 2013 (UTC)
|