Last modified on 4 December 2013, at 18:03

Template talk:Editnotices/Namespace/Template

Return to "Editnotices/Namespace/Template" page.

{{editprotected}} Please add <noinclude>{{documentation}}</noinclude>, both here and at the subpages. Thanks. Rd232 (talk) 00:04, 14 July 2011 (UTC)

Done. Killiondude (talk) 18:39, 1 August 2011 (UTC)

Thanks, but DOH! The /doc page is covered by the protection schema of MediaWiki:Titleblacklist (right at the bottom). I've put a note at MediaWiki:Titlewhitelist. Rd232 (talk) 20:08, 1 August 2011 (UTC)

Swedish translationEdit

Please add this:

|sv='''OBS:''' Du kan enkelt uppdatera dessa översättningslänkar genom att ersätta hela sidan med:<code>{{[[Template:Lle|subst:lle]]}}</code>

Thank you! // WikiPhoenix (Talk) 18:30, 11 June 2012 (UTC)

✓ Done --Jarekt (talk) 19:05, 11 June 2012 (UTC)
Oh dear, I forgot to put a space between the colon and the angle bracket. Please fix it. // WikiPhoenix [Talk] 09:53, 25 September 2013 (UTC)
✓ Done --Hedwig in Washington (mail?) 17:41, 26 September 2013 (UTC)

"text" parameter forgotten in Dont overwriteEdit

{{editprotected}} Please replace {{Dont overwrite/layout .... to {{Dont overwrite/layout |text=.... Thank you beforehands. Ain92 (talk) 13:47, 30 August 2012 (UTC)

 Not done . As far as I can tell (the request is in the wrong place) your issue is with a subpage of {{Dont overwrite}}. I don't know which one, and as far as I know, those subpages are not protected, so you can fix any problems yourself. Rd232 (talk) 22:41, 10 October 2012 (UTC)

SloveneEdit

{{editprotected}} Please, add the following text:

  • |sl='''Opomba:''' Te povezave na prevode na enostaven način posodobite tako, da celotno stran zamenjate s kodo: <code>{{[[Template:Lle|subst:lle]]}}</code>

Thank you. --Eleassar (t/p) 08:51, 16 October 2012 (UTC)

✓ Done Rd232 (talk) 10:40, 16 October 2012 (UTC)

Turkish translationEdit

{{editprotected}} Please add this:

|tr='''Not:''' Şu anda kolayca sayfanın tamamını değiştirerek, içeriği çevirebilir ve güncelleyebilirsiniz: <code>{{[[Template:Lle|subst:lle]]}}</code>

Thank you! // --i.е. v-mail 18:22, 13 December 2012 (UTC)

✓ Done Rd232 (talk) 19:16, 13 December 2012 (UTC)

Adding LangSwitchEdit

{{editprotected}} Can someone please add {{LangSwitch}} to the other text parameters in this template? // WikiPhoenix [Talk] 09:48, 25 September 2013 (UTC)

Given the complexity of this template, it might be desirable using the translate extension/autotranslate or MediaWiki messages for translation. It's a pity that there is no way to flag "good translators" like you at Commons so they would not have to ask for editing translations anywhere... -- Rillke(q?) 22:32, 17 November 2013 (UTC)
They are now all MediaWiki messages for 2 reasons:
  1. Performance: Editnotices are not chached, MediaWiki messages are; additionally we are now benefit from MediaWiki's own language fallback logic.
  2. Protection: Everything under Template:Editnotices/ is protected by MediaWiki:Titleblacklist.
These are the messages to translate:
-- Rillke(q?) 18:03, 4 December 2013 (UTC)

Update language codes for template translationsEdit

{{editprotected}}

Hi, I was editing some template translations today and noticed, that the corresponding edit notice was not shown for all languages. Could someone please update the list of language codes identifying template translations? Those would be all UI languages selectable on Commons (the code would substitute lines 71 to 73 of the current editnotice):

 |aa|ab|ace|af|ak|aln|als|am|an|ang|anp|ar|arc|arn|ary|arz|as|ast|av|avk|ay|az|azb|ba|bar|bat-smg|bbc|bbc-latn|bcc|bcl|be
 |be-tarask|be-x-old|bg|bh|bho|bi|bjn|bm|bn|bo|bpy|bqi|br|brh|bs|bug|bxr|ca|cbk-zam|cdo|ce|ceb|ch|cho|chr|chy|ckb|co|cps
 |cr|crh|crh-cyrl|crh-latn|cs|csb|cu|cv|cy|da|de|de-at|de-ch|de-formal|diq|dsb|dtp|dv|dz|ee|egl|el|eml|en|en-ca|en-gb|eo
 |es|et|eu|ext|fa|ff|fi|fit|fiu-vro|fj|fo|fr|frc|frp|frr|fur|fy|ga|gag|gan|gan-hans|gan-hant|gd|gl|glk|gn|gom-latn|got|grc
 |gsw|gu|gv|ha|hak|haw|he|hi|hif|hif-latn|hil|ho|hr|hsb|ht|hu|hy|hz|ia|id|ie|ig|ii|ik|ike-cans|ike-latn|ilo|inh|io|is|it
 |iu|ja|jam|jbo|jut|jv|ka|kaa|kab|kbd|kbd-cyrl|kg|khw|ki|kiu|kj|kk|kk-arab|kk-cn|kk-cyrl|kk-kz|kk-latn|kk-tr|kl|km|kn|ko
 |ko-kp|koi|kr|krc|kri|krj|ks|ks-arab|ks-deva|ksh|ku|ku-arab|ku-latn|kv|kw|ky|la|lad|lb|lbe|lez|lfn|lg|li|lij|liv|lmo|ln
 |lo|loz|lt|ltg|lus|lv|lzh|lzz|mai|map-bms|mdf|mg|mh|mhr|mi|min|mk|ml|mn|mo|mr|mrj|ms|mt|mus|mwl|my|myv|mzn|na|nah|nan|nap
 |nb|nds|nds-nl|ne|new|ng|niu|nl|nl-informal|nn|no|nov|nrm|nso|nv|ny|oc|om|or|os|pa|pag|pam|pap|pcd|pdc|pdt|pfl|pi|pih|pl
 |pms|pnb|pnt|prg|ps|pt|pt-br|qu|qug|rgn|rif|rm|rmy|rn|ro|roa-rup|roa-tara|ru|rue|rup|ruq|ruq-cyrl|ruq-latn|rw|sa|sah|sat
 |sc|scn|sco|sd|sdc|se|sei|sg|sgs|sh|shi|shi-latn|shi-tfng|si|simple|sk|sl|sli|sm|sma|sn|so|sq|sr|sr-ec|sr-el|srn|ss|st
 |stq|su|sv|sw|szl|ta|tcy|te|tet|tg|tg-cyrl|tg-latn|th|ti|tk|tl|tly|tn|to|tokipona|tpi|tr|tru|ts|tt|tt-cyrl|tt-latn|tum|tw
 |ty|tyv|udm|ug|ug-arab|ug-latn|uk|ur|uz|ve|vec|vep|vi|vls|vmf|vo|vot|vro|wa|war|wo|wuu|xal|xh|xmf|yi|yo|yue|za|zea|zh
 |zh-classical|zh-cn|zh-hans|zh-hant|zh-hk|zh-min-nan|zh-mo|zh-my|zh-sg|zh-tw|zh-yue|zu={{editnotice

I don't know if we really need all languages, but picking only few seems rather arbitrary, too. --Patrick87 (talk) 01:40, 25 November 2013 (UTC)

I Do not know if we need all of those. Below are the languages used by templates transcluding {{translated tag}}:
  • als - 4 templates
  • ar - 31
  • ast - 4
  • bg - 5
  • bs - 1
  • ca - 8
  • cs - 21
  • cy - 1
  • da - 20
  • de - 74
  • de-formal - 1
  • el - 6
  • en - 75
  • eo - 7
  • es - 63
  • eu - 3
  • fa - 4
  • fi - 12
  • fr - 87
  • gl - 11
  • he - 14
  • hi - 8
  • hu - 11
  • id - 10
  • io - 1
  • is - 1
  • it - 32
  • ja - 87
  • ko - 21
  • ku - 11
  • ku-latn - 1
  • la - 1
  • lv - 1
  • mk - 3
  • ms - 2
  • nds - 1
  • nl - 29
  • nn - 8
  • no - 14
  • pl - 43
  • pt - 82
  • pt-br - 2
  • qu - 1
  • ro - 4
  • ru - 26
  • se - 1
  • sk - 8
  • sl - 8
  • sq - 2
  • sr - 5
  • su - 1
  • sv - 9
  • sw - 1
  • ta - 1
  • th - 1
  • tr - 14
  • vec - 1
  • vi - 2
  • wa - 1
  • yue - 1
  • zh - 1
  • zh-hans - 17
  • zh-hant - 18

May be we should just use those: "als|ar|ast|bg|bs|ca|cs|cy|da|de|de-formal|el|en|eo|es|eu|fa|fi|fr|gl|he|hi|hu|id|io|is|it|ja|ko|ku|ku-latn|la|lv|mk|ms|nds|nl|nn|no|pl|pt|pt-br|qu|ro|ru|se|sk|sl|sq|sr|su|sv|sw|ta|th|tr|vec|vi|wa|yue|zh|zh-hans|zh-hant". --Jarekt (talk) 05:02, 25 November 2013 (UTC)

First of all it seems you're still missing some languages here (how did you get that list?). I noticed the problem on {{Translate/pms}} which is still not in your proposed list. Also in Category:Translated templates by language there are still some more. I'm even not sure how good {{translated tag}} is as an indicator anyway, since it basically requires that someone put {{translated tag}} on the translated template in the first place (which get's even less probable if we omit the editnotice with the instructions how to do so).
That said I thought about restricting the list in the first place, too. Then I realized that the info contained in the editnotice will actually ease editors to create new translations (which we want, don't we?). So neglecting languages without translated templates is actually counter-productive. That's why I proposed to just add all languages (given that it doesn't cause any performance problems). A quick test of mine on a switch statement with 1000 elements didn't indicate any severe issues though, except raising "visited nodes count" when many of the switch parameters have to be evaluated. --Patrick87 (talk) 11:00, 25 November 2013 (UTC)
I got the list by doing in Excel a quick word frequency calculation among names of all templates transcluding {{translated tag}}. We probably had more languages in the past but since most major license templates moved to translatewiki, we lost many rare languages. I guess I am fine with full list. Any other opinions before I implement it? --Jarekt (talk) 12:39, 25 November 2013 (UTC)
{{#if:{{#invoke:Languages|isKnownLanguageTag|{{SUBPAGENAME}}}}|ok, that's it}} should do the job very well and without that clutter. -- Rillke(q?) 00:39, 26 November 2013 (UTC)
Perfect! Probably the best and cleanest solution after all. --Patrick87 (talk) 01:43, 26 November 2013 (UTC)
✓ Done I checked few pages an they seem fine . --Jarekt (talk) 04:16, 26 November 2013 (UTC)