Jump to content

Template talk:Documentation/Archive 8

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lowercase sigmabot III (talk | contribs) at 01:11, 29 January 2014 (Archiving 1 discussion(s) from Template talk:Documentation) (bot). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 5Archive 6Archive 7Archive 8Archive 9Archive 10

Languges

Hi I would like to add these languges please

List of interwiki links
[[als:Vorlage:Dokumentation]]
[[ar:قالب:توثيق]]
[[as:Template:Documentation]]
[[ba:Ҡалып:Doc]]
[[bar:Vorlage:Dokumentation]]
[[bg:Шаблон:Документация]]
[[br:Patrom:Implijout patromoù]]
[[bs:Šablon:Dokumentacija]]
[[ca:Plantilla:Ús de la plantilla]]
[[ckb:داڕێژە:Documentation]]
[[cs:Šablona:Dokumentace]]
[[cy:Nodyn:Doc]]
[[da:Skabelon:Dokumentation]]
[[de:Vorlage:Dokumentation]]
[[diq:Şablon:Documentation]]
[[dsb:Pśedłoga:Dokumentacija]]
[[el:Πρότυπο:Τεκμηρίωση προτύπου]]
[[eo:Ŝablono:Dok]]
[[et:Mall:Dokumentatsioon]]
[[es:Plantilla:Documentación]]
[[eu:Txantiloi:Txantiloi dokumentazioa]]
[[fa:الگو:توضیحات]]
[[fr:Modèle:Documentation]]
[[ga:Teimpléad:Documentation]]
[[gl:Modelo:Uso de marcador]]
[[he:תבנית:תיעוד]]
[[hsb:Předłoha:Dokumentacija]]
[[hu:Sablon:Sablondokumentáció]]
[[hy:Կաղապար:Փաստաթղթեր]]
[[la:Formula:Documentation]]
[[lad:Xablón:Uso de Templates]]
[[lez:Шаблон:Doc]]
[[lv:Veidne:Dokumentācija]]
[[ltg:Taiss:Dokumentaceja]]
[[ja:Template:Documentation]]
[[ko:틀:틀 설명문서]]
[[ku:Şablon:Belgekirin]]
[[map-bms:Cithakan:Dokumentasi]]
[[ml:ഫലകം:വിവരണം]]
[[ms:Templat:Dokumentasi]]
[[nds-nl:Mal:Dokumentatie]]
[[no:mal:Dokumentasjon]]
[[nl:Sjabloon:Sjabdoc]]
[[nso:Template:Documentation]]
[[pl:Szablon:Dokumentacja]]
[[pt:Predefinição:Documentação]]
[[ro:Format:Documentaţie]]
[[ru:Шаблон:Doc]]
[[se:Málle:Documentation]]
[[simple:Template:Documentation]]
[[sk:Šablóna:Dokumentácia]]
[[sl:Predloga:Dokumentacija]]
[[sr:Шаблон:Документација]]
[[sq:Stampa:Dokumentacion]]
[[stq:Foarloage:Dokumentation]]
[[sv:Mall:Dokumentation]]
[[sw:Kigezo:Documentation]]
[[te:మూస:Documentation]]
[[tl:Suleras:Documentation]]
[[tr:Şablon:Belgeleme]]
[[tt:Үрнәк:Doc]]
[[tpi:Template:Template doc]]
[[uk:Шаблон:Документація]]
[[ur:سانچہ:Documentation]]
[[war:Batakan:Documentation]]
[[yo:Àdàkọ:Aṣàlàyé]]
[[zh:Template:Documentation]]
[[te:మూస:Documentation]]

90.222.250.124 (talk) 10:40, 11 January 2013 (UTC)

 Done. -- -- -- 04:38, 16 January 2013 (UTC)
List of interwiki links
[[ab:Ашаблон:Documentation]]
[[ace:Pola:Documentation]]
[[af:Sjabloon:Dokumentasie]]
[[ak:Şablon:Documentation]]
[[am:መለጠፊያ:አጠቃቀም]]
[[ang:Bysen:Documentation]]
[[arc:ܩܠܒܐ:ܐܫܛܪܘܬܐ]]
[[az:Şablon:Doc]]
[[av:Шаблон:Documentation]]
[[bjn:Citakan:Documentation]]
[[bn:টেমপ্লেট:Documentation]]
[[id:Templat:Dokumentasi]]
[[it:Template:Man]]
[[lo:ແມ່ແບບ:Documentation]]
I have add some more new one on march 4 2013 — Preceding unsigned comment added by 109.74.10.91 (talk) 19:53, 4 March 2013
Please don't alter old threads. I've separated out your additions. Please note that Interlanguage links should be added via Wikidata; the link is d:Special:ItemByTitle/enwiki/Template:Documentation. --Redrose64 (talk) 23:25, 4 March 2013 (UTC)

Template:documentation languges

Hi could I suggest that someone create the page Template:documentation/interwiki so that people can add languges without asking to add them so it is easer please 216.185.105.36 (talk) 21:15, 1 March 2013 (UTC)

Please see below. — Martin (MSGJ · talk) 20:35, 4 March 2013 (UTC)

Hi could someone add all the languges from [http://www.wikidata.org/wiki/Q4608595] please — Preceding unsigned comment added by 216.185.105.36 (talk) 21:40, 1 March 2013 (UTC)

Interwiki links are now added through Wikidata by using 'Edit links' at the bottom of the language list. If you can't figure it out, let us know which link is missing.
And on that point: I just migrated the current links on the doc page with a script. There are a number of links left with language codes not recognized by Wikidata. --— Gadget850 (Ed) talk 21:59, 1 March 2013 (UTC)
Since you changed your question: the Wikidata links are automatically added. --— Gadget850 (Ed) talk 21:59, 1 March 2013 (UTC)
could you copy all the links in the wiki data for documentation and out it in the documentation/doc because if I do it I have to click edit for each one when aan administrator on it can click edit and copy them all 90.222.250.124 (talk) 18:09, 4 March 2013 (UTC)
Can you see any that are missing? — Martin (MSGJ · talk) 20:37, 4 March 2013 (UTC)

Could someone add view at the end where it says template:documentation/end so that you can view it without clicking edit 90.222.250.124 (talk) 18:13, 4 March 2013 (UTC)

This seems sensible because there is a "view" link at the top as well. — Martin (MSGJ · talk) 20:32, 4 March 2013 (UTC)

Mirror

Could someone alow people when you click mirror it only shows some bit of the page your on to create a sandbox please could someone allow us to copy all the codes so it includes

 <noinclude></noinclude> and <includeonly></includeonly>

please 90.222.250.124 (talk) 18:15, 4 March 2013 (UTC)

 Not done. I don't think this is possible, because "mirror" works by substituting the template, so the noinclude stuff will be omitted. — Martin (MSGJ · talk) 20:30, 4 March 2013 (UTC)
Maybe we should add some hint to the "mirror" link then or remove it completely. I used it yesterday to clone a template into sandbox and it promtly stripped out all content between <noinclude> tags as well as <includeonly> tags. The "mirrored" template should be identical to the original, though. -- Patrick87 (talk) 11:49, 23 April 2013 (UTC)

Protection of /doc page

Hi could I suggest that someone create template:Documentation/doc/sandbox so that people can add ideas and if it approves then put it in the template:documentation/doc page so that people can help add and remove cogent without distrusting the template:documentation/doc page 216.185.105.36 (talk) 21:12, 1 March 2013 (UTC)

Shouldn't be required now, see below. — Martin (MSGJ · talk) 20:38, 4 March 2013 (UTC)

Could someone change the protection level off template:documentation/doc please so that other users can add if it starts to get vandalised agin please put it back on 109.74.10.91 (talk) 19:48, 4 March 2013 (UTC)

 Done — Martin (MSGJ · talk) 20:29, 4 March 2013 (UTC)

Template:documentation

Hi could we create a code which allows this documentation change it languge to the languge you want so that users can help en wikipedia and find it easer to use documentation 46.252.151.25 (talk) 21:27, 4 March 2013 (UTC)

Are you asking for a translation from English to another language, such as Italian? --— Gadget850 (Ed) talk 21:31, 4 March 2013 (UTC)
yes like bult a code which then you can change the languge without needing to change the whole code 46.252.151.25 (talk) 21:35, 4 March 2013 (UTC)
Unless someone translates the doc page and keeps it updated, that isn't going to happen. You can try Google Translate with mixed results.
Since you restored the IW links that I migrated, I presume you don't understand the place of Wikidata. IW links for a page are now centrally stored in Wikidata and pulled when the page is loaded. See d:Q4608595 for the links for {{Documentation}}. IW links do not translate, they link to the version of a page on another language Wikipedia.
What are you trying to accomplish? --— Gadget850 (Ed) talk 21:46, 4 March 2013 (UTC)
oh ok I thought you had to have links on the doc and wiki data 46.252.151.25 (talk) 21:52, 4 March 2013 (UTC)

Interwikis to Wikidata

Please update the template indicating the interwikis are now added in Wikidata. --Vivaelcelta {discussion  · contributions} 13:48, 6 March 2013 (UTC)

You will have to be more specific. All pages now have the interwikis rendered from Wikidata, so this template is not unique. --— Gadget850 (Ed) talk 17:58, 6 March 2013 (UTC)
I'm guessing that it would be removing the interwiki message from Template:Documentation/end box which I've done in the sandbox for discussion purposes. -- WOSlinker (talk) 19:27, 6 March 2013 (UTC)
The proposed change seems good to me. Helder 20:24, 6 March 2013 (UTC)
 Done -- WOSlinker (talk) 20:52, 6 March 2013 (UTC)

Add a view button to end box

Hi I have done some testing in Template:Documentation/end box/sandbox and have added view button to it and it seems to now be working so I would like to include it in Template:Documentation/end box please 46.45.182.142 (talk) 13:14, 10 March 2013 (UTC)

This is unnecessary. The links are already present. For example, at Template:Infobox, the documentation end box currently has twelve links: of these, two are help; three are edit links; one is a page history link; one is a diff link; one (the subpages one) is a search utility. This leaves four, as follows:
Of these, the first and fourth go to the same place, so really there are three to consider - but these seem to have identical targets to the three links that you wish to add. Why would we need to duplicate existing links? --Redrose64 (talk) 16:01, 10 March 2013 (UTC)
the view link is to view sandbox or test case like the start box has a view bottom it would be easer instead of clicking edit and then view 46.45.182.142 (talk) 17:06, 10 March 2013 (UTC)
But you don't need to click "edit" then "view". Here is how Template:Infobox would look if it used your version:
Notice that before each of your three "view" links, there is an existing link which takes you to exactly the same place. In one case,
the link is identical; in the other two cases,
it's different but has the same effect. You just need to click the link that already exists; there is no need for any more. --Redrose64 (talk) 18:26, 10 March 2013 (UTC)
should I remove view for the doc and keep view for sandbox and test case 46.45.182.142 (talk) 18:43, 10 March 2013 (UTC)
Why do you need those? They go to exactly the same page as the existing links albeit via a different URL. Any page in Wikipedia has at least two URLs. For example, this talk page may be accessed either as http://en.wikipedia.org/wiki/Template_talk:Documentation http://en.wikipedia.org/w/index.php?title=Template_talk:Documentation or http://en.wikipedia.org/w/index.php?title=Template_talk:Documentation&action=view - the &action=view part of the query string is superfluous, since this is the default. But all this is entirely unnecessary since the internal link syntax [[Template talk:Documentation]] does the same job in much less code. --Redrose64 (talk) 20:21, 10 March 2013 (UTC)
well I think we need a view button is because to do it through the edit button then click view is a longer way if you want to do it quicker we might as well add a view button start box has a view button so I think sandbox and testcases needs one 46.45.182.142 (talk) 20:23, 10 March 2013 (UTC)
But you don't need to do it through the edit button then click view. All you need to do is click on a single existing links that I have already demonstrated. Try it yourself: Here is a link to a template Template:Infobox. Now, follow that link, go to the bottom of the page to the box where you want to add three more links, and click on any one of
from Template:Infobox/doc.
this template's sandbox
and testcases
Any one. Doesn't matter. Now, having tried it, how does that differ from the "view" link that you want adding? --Redrose64 (talk) 21:20, 10 March 2013 (UTC)
In other words, view links aren't needed for Template:Infobox/doc, sandbox and testcases as clicking on Template:Infobox/doc, sandbox or testcases is what to do to view them.
Hope I've not (also) misunderstood. CsDix (talk) 00:34, 11 March 2013 (UTC)

end box {{ns:Module}}

Please add | {{ns:Module}} to documentation end box please under user box and by sandbox please 90.216.122.147 (talk) 15:59, 18 April 2013 (UTC)

Template:Documentation/link_box should be merged to Template:Documentation/end_box. --Nullzero (talk) 06:06, 23 April 2013 (UTC)
No actually link box should be used from end box. (Because module pages also show this if there is NO /doc page yet, whereas endbox explicitly closes of the transclusion of a /doc page.). I was in the process of writing that, but got distracted. —TheDJ (talkcontribs) 07:55, 23 April 2013 (UTC)

The [view], [edit], [history] and [purge] links are now appearing in front of the "Template documentation" heading. Looking at {{Documentation/start box}}, these links use class="editsection", which used to be the class used by MediaWiki itself to align section [edit] links to the right. However, the way MediaWiki does section edit links changed a little while back – the class is now called "mw-editsection", and the links should be placed after the text of the heading rather than before it. Hence, please apply this change to {{Documentation/start box}}, to make it consistent with the section edit links generated by MediaWiki once more.

Thank you. – PartTimeGnome (talk | contribs) 20:42, 20 June 2013 (UTC)

Question: I've just tried viewing some template doc pages when logged out - and they all look normal: there is an image and the heading "Template documentation" at the left, then a gap, then "[view] [edit] [history] [purge]" at right. The relevant styling is
.mw-content-ltr .editsection, .mw-content-rtl .mw-content-ltr .editsection { float: right; margin-left: 5px; }
Do you have any custom CSS that is moving the links? --Redrose64 (talk) 20:56, 20 June 2013 (UTC)
The links are showing wrong (left of the heading) for me, too. Sandbox looks fine. Changing the class name to "mw-editsection" also allows to float the links right (default behavior before the MediaWiki change) instead of next to the heading with some custom CSS (also provided as Gadget here on enwiki). --Patrick87 (talk) 21:26, 20 June 2013 (UTC)
 Done -- WOSlinker (talk) 21:31, 20 June 2013 (UTC)
Redrose64, I suspect this only changed recently (perhaps the developers removed the obsolete CSS in the last update?), so you might have needed to clear your cache to get the updated CSS. Thank you to WOSlinker for making the change. – PartTimeGnome (talk | contribs) 21:39, 20 June 2013 (UTC)

Fix for non-transcluded documentation

If you check the "This is in line documentation" example in the testcases, you will notice that at the bottom of the documentation it states "The above documentation is transcluded from Template:Documentation/doc", which is entirely false. the reason for this is that the code in template:Documentation/end box does not check to see if {{{content}}} is blank before generating this statement. there are many ways to fix this, but the best is probably to simply bypass the ifexist check if {{{content}}} is blank. I did this in Template:Documentation/end box2/sandbox. I also made a minor change to Template:Documentation/sandbox to avoid sending the entire value of {{{content}}} to all the subtemplates, which is pointless, since the subtemplates only need to know if this parameter is blank. Frietjes (talk) 23:27, 11 July 2013 (UTC)

I think this needs more consideration, it is legal to have a /doc page in addition to inline doc content - see Template:Documentation#Usage, the part from "When the |content= parameter is used" to the end of the section. --Redrose64 (talk) 09:06, 12 July 2013 (UTC)
Ah, I implemented this before I saw your post, Redrose. Let me know if you want me to revert the edits, or feel free to do it yourself if you want. — Mr. Stradivarius ♪ talk ♪ 09:16, 12 July 2013 (UTC)
Actually, I could see that this broke the test cases that use both |1= and |content=, so I've undone my edits myself. — Mr. Stradivarius ♪ talk ♪ 09:25, 12 July 2013 (UTC)

Template:Documentation/start box

Hi please go to Template:Documentation/start box/sandbox and copy the code and paste it in Template:Documentation/start box please because I have managed to put view edit history and purge to the rot like it was before they removed something in Mediawiki 1.22 90.218.219.230 (talk) 14:50, 10 July 2013 (UTC)

Just use the Gadget "Move section [edit] links to the right side of the screen." you can find here. It will move all edit links (section edit links as well as those found in this template) to the right, similar as it has been before. The links were moved on purpose in this template to be on par with the current default. --Patrick87 (talk) 15:09, 10 July 2013 (UTC)
oh ok but I have moved it back to the right using <span style="float:right; font-size:100%;"> 90.218.219.230 (talk) 15:25, 10 July 2013 (UTC)
Yes but you 1) probably used old code in the sandbox (class="editsection" instead of the current "mw-editsection"); 2) should not move the link manually. It's better to have it consistently with other section edit links. --Patrick87 (talk) 15:33, 10 July 2013 (UTC)
ok yes I put it back to edit section and remove mw- because when I used the code shown above it would work with mw- 90.218.219.230 (talk) 15:35, 10 July 2013 (UTC)
Not done: The proposed change will revert to an old version and introduce a bug at the same time - a potentially unbalanced opening <span> --Redrose64 (talk) 16:59, 10 July 2013 (UTC)
do you how I can fix the bug and what will the bug cause 90.218.219.230 (talk) 18:20, 10 July 2013 (UTC)
I've already introduced it to several other wikipedia wikis and it works for example [1] and [2] 90.218.219.230 (talk) 18:22, 10 July 2013 (UTC)
Not done: please establish a consensus for this alteration before using the {{edit protected}} template. In the case of the second one, your actual edit differs little from the edit that you want to make here; but in the case of the first, your actual edit is not just a regression but is even more buggy than the edit that you want here - there is an opening <span> which is not potentially unbalanced, but always unbalanced. It might be that those other Wikipedias didn't realise the potential harm in these edits, but the fact that they permitted them doesn't mean that they were beneficial edits, nor that they will be beneficial here. --Redrose64 (talk) 19:01, 10 July 2013 (UTC)

Hi I am not sure if I've fix the bug because I have moved <span> down a bit on Template:Documentation/start box/sandbox 90.215.222.243 (talk) 17:50, 11 July 2013 (UTC)

Not done: (i) there is no consensus; (ii) it is still a regression; (iii) it is still opening more <span> than it is closing. Please do not reactivate this unless you can prove that it is a necessary change that will not compromise existing usage. --Redrose64 (talk) 18:35, 11 July 2013 (UTC)
Hi I have reverted to the new mw- edit and have added <span style="float:right; font-size:100%;"> to it 90.216.250.151 (talk) 07:37, 18 July 2013 (UTC)
Although this is no longer a regression, there is still no consensus, and it is still opening more <span> than it is closing. --Redrose64 (talk) 09:05, 18 July 2013 (UTC)
so if I close <span> will that fix the problem 90.218.199.20 (talk) 18:11, 18 July 2013 (UTC)
I don't even see why you need two spans. Your additional one seems to be present solely to apply style="float:right; font-size:100%;" but there is no apparent reason why that could not go as an additional attribute of the existing span:
<span class="mw-editsection plainlinks" id="doc_editlinks" style="float:right; font-size:100%;">
But I'm still not putting this live without consensus - which means that there has to be a demonstrable need for it. --Redrose64 (talk) 19:35, 18 July 2013 (UTC)
ok how do I start a consensus 81.129.86.23 (talk) 13:58, 20 July 2013 (UTC)
Not at all... consensus would be if some editors answered here in favor of your proposal. Actually I already opposed your suggestion, so there is clearly no consensus for your change right now.
What do you try to achieve with it anyway? If you don't like the current look, just use the Gadget I mentioned (as I do! – at least the CSS out of it...) and all edit links will be moved to the right for you, exactly as they were before the MediaWiki change. It doesn't make any sense to introduce an inconsistency on purpose here, by moving the edit section links of the documentation template to the right. Other edit links will stays next to the heading. --Patrick87 (talk) 14:52, 20 July 2013 (UTC)
BTW, you need to create an account to use the gadget Patrick mentioned. (For a more technical alternative that doesn't need an account, copy the contents of MediaWiki:Gadget-righteditlinks.css into your browser's user CSS file. Where to find this depends on your browser and operating system; you might need to create it if it doesn't exist.)
For more information on consensus, I suggest you read Wikipedia:Consensus. – PartTimeGnome (talk | contribs) 22:11, 20 July 2013 (UTC)

Hi could we move the codes to module:documentation please because if we have a look at fr:Module:Documentation they have moved it to lua scripting 109.151.161.64 (talk) 11:40, 29 July 2013 (UTC)

Not done: please establish a consensus for this alteration before using the {{edit protected}} template.; also which "codes" are these? --Redrose64 (talk) 15:24, 29 July 2013 (UTC)
there in French and I am hoping someone on here know how to speaks English and France and can translate them into English and also knows how to script in lua 109.151.161.64 (talk) 17:46, 29 July 2013 (UTC)
I have created the module at simple:Module:Documentation I have translated as much of the French words as I can but it should look like that and if you visit simple:Template:documentation/sandbox 109.151.161.64 (talk) 20:11, 29 July 2013 (UTC)

I have asked some one translate the words and they have and have done the end box all I have to do is redo the end box because it is missing some bits from end box and I have to also add module and user and file support to it on module 109.151.161.64 (talk) 18:49, 30 July 2013 (UTC)

Edit request on 5 August 2013

Change "Subpages of this page." to "Subpages of this page" and "Subpages of this template." to "Subpages of this template", because according to MOS:FULLSTOP, a mere fragment of a sentence shouldn't end in a full stop. Now I don't know if the manual of style applies to templates too, but there you go. smtchahaltalk 10:27, 5 August 2013 (UTC)

This warrants some discussion first, so disabled request. The line would look 'unfinished' without the full stop. Edokter (talk) — 14:59, 5 August 2013 (UTC)
I really couldn't care less. If someone want to replace it with a ; or something go right ahead, or leave it as is. As long as there is something of a separator between components. The MoS does not apply to the 'meta' world as far as I know. I would say, that as long as no one has ever been confused about the function of the link due to the language, it is very low priority (in lieu of the possibility of actually starting to confuse people). —TheDJ (talkcontribs) 15:16, 5 August 2013 (UTC)
I'd prefer expanding "Subpages of..." to "List subpages of..." so it becomes an imperative statement and no longer a fragment. The problem with removing the full stop is that the phrase would then become inconsistent with the sentence before it.
The guideline you refer to is about standalone fragments in lists or captions. Where a full sentence and a fragment are combined like this I think the rule on sentence fragments in captions is most applicable: "If any complete sentence occurs in a caption, all sentences and any sentence fragments in that caption should end with a period."
Regarding whether the MOS applies to non-articles, I think technically it does not. However, that doesn't mean project pages are a wild west without any consistency. Common sense should be used. Often it is convenient to apply the same guidelines we use in articles to project pages where sensible to do so. – PartTimeGnome (talk | contribs) 20:53, 5 August 2013 (UTC)

'See also' heading

Can we remove the 'See also' heading from the default content when creating a new instance of documentation? I see many templates which have that heading, but no content. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:53, 25 August 2013 (UTC)

I concur. It's intuitive enough to add the heading if one has something to put under it. I've added an edit protected request. The change is simple enough, but here's a diff of what we want anyway. Note that Wikipedia:Template documentation#How to create a documentation subpage will also need updating to match. – PartTimeGnome (talk | contribs) 20:57, 2 September 2013 (UTC)
The subtemplate Template:Documentation/preload is not protected, so you may make the required changes yourself. Regards — Martin (MSGJ · talk) 08:51, 3 September 2013 (UTC)
You are quite right. I need to get more sleep. Andy has now made the change. – PartTimeGnome (talk | contribs) 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 here. Of course, this won't help for existing docs, but maybe we could run a bot or script to deal with those. Cenarium (talk) 22:46, 9 November 2013 (UTC)

I concur. I've occasionally made 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). – PartTimeGnome (talk | contribs) 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. 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. 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. -- 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. {{Documentation/end box}}, {{Used in system}}, the 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 namespaces and behaviour switches (e.g. __DISAMBIG__). 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. – PartTimeGnome (talk | contribs) 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. Debresser (talk) 18:59, 1 December 2013 (UTC)
I've made the change. – PartTimeGnome (talk | contribs) 21:28, 4 December 2013 (UTC)