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 MiszaBot II (talk | contribs) at 07:11, 18 August 2013 (Robot: Archiving 1 thread from Template talk:Documentation.). 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 for now: 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)