Template talk:Transferred from

Latest comment: 2 years ago by Hike395 in topic Suggested simplification

CommonsHelper edit

What about enabling CommonsHelper as a “keyword” for parameter 3 instead of [http://tools.wikimedia.de/~magnus/commonshelper.php CommonsHelper]? The link generated by the template might then be //toolserver.org/~magnus/commonshelper.php. --Leyo 17:17, 7 August 2012 (UTC)Reply

  Done
It now reads:
The trick is now to get the bots to automatically use this instead of a hard link. I can do it with my bot and script; you can file a feature request on Jira or contact Magnus directly, I suppose. Magog the Ogre (talk) (contribs) 19:01, 7 August 2012 (UTC)Reply
Thank you. I asked Magnus for implementation on his talk page. --Leyo 22:16, 7 August 2012 (UTC)Reply
I've updated my code for SamoaBot 3 to do this replacement (example). --Ricordisamoa 03:57, 31 August 2013 (UTC)Reply

Also, what about linking to "//tools.wmflabs.org/commonshelper/" by default? --Ricordisamoa 03:58, 31 August 2013 (UTC)Reply

In the example, our bot could have removed {{en|''no original description''}}, too. Feel free to update the link to CommonsHelper. --Leyo 09:25, 31 August 2013 (UTC)Reply

Edit request edit

{{Editprotected}} Please remove |fi= työkalulla. and add the same text (without a period) to the following place:

{{LangSwitch
 |cs= pomocí nástroje
 |de= mithilfe des
 |en= using
 ...
 |fi=työkalulla

--Stryn (talk) 15:38, 21 November 2014 (UTC)Reply

  Done Magog the Ogre (talk) (contribs) 23:21, 21 November 2014 (UTC)Reply

Edit request2 edit

{{Editrequest}}

Please, add Lithuanian translations:

|lt=Perkelta iš 
|lt= į Vikiteką

Thank You, Hugo.arg (talk) 08:12, 2 February 2015 (UTC)Reply

@Hugo.arg   Not done which fields do you want that added to? Magog the Ogre (talk) (contribs) 04:57, 3 February 2015 (UTC)Reply

{{Editrequest}} The first goes between these..

|it=Trasferito da 
|lt=Perkelta iš 
|mk=Префрлено од 

And the second...

|it= su Commons
|lt= į Vikiteką
|mk= на Ризницата

Also You can add the third (although not currently in use):

|it= utilizzando
|lt= naudojant
|mk= користејќи

Hugo.arg (talk) 08:44, 3 February 2015 (UTC)Reply

@Hugo.arg:   Done Magog the Ogre (talk) (contribs) 22:48, 11 February 2015 (UTC)Reply


eu edit

Hello ! I need your hand. In Basque language you write down that way.

Person(e)k Wikipediatik Commonsera transferitutako fitxategi hau.

Example : [[User:Zorion|Zorion]](e)k [[:eu:Wikipedia|Wikipedia]]tik Commonsera transferitutako fitxategi hau. = Zorion(e)k Wikipediatik Commonsera transferitutako fitxategi hau.

or

[[:eu:Wikipedia|Wikipedia]]tik Commonsera transferitutako fitxategi hau. = Wikipediatik Commonsera transferitutako fitxategi hau.

  Thank you.. --Zorion (talk) 14:51, 18 May 2015 (UTC)Reply

be-tarask edit

{{Edit request}}

 |be-tarask = Перанесена зnbsp;

 |be-tarask= у ВікіСховішча

 |be-tarask= удзельнікам 

 |be-tarask= з дапамогай

 |be-tarask=.

Thanks in advance, Renessaince (talk) 13:06, 25 November 2015 (UTC)Reply

  Done. I assumed the first had a missing "&". I'd appreciate it if you could confirm that the template now looks correct. —RP88 (talk) 13:42, 25 November 2015 (UTC)Reply
Really it had. Thanks, everything's fine. --Renessaince (talk) 21:46, 30 November 2015 (UTC)Reply

Edit request - gl translation edit

{{Edit request}}

|fr=Transféré de 
|gl=Transferido de 
|he=<div style="direction: rtl;">הועבר מ- 
|fr= à Commons
|gl= a Commons
|he= לוויקישיתוף
|fr= par 
|gl= por 
|he= על ידי 
|fr= utilisant
|gl= empregando
|he= באמצעות
|fr=.
|gl=.
|he=.</div>

Thanks. ☣Banjo tell me 20:41, 6 January 2016 (UTC)Reply

  Done --Hedwig in Washington (mail?) 00:35, 7 January 2016 (UTC)Reply

vi translation edit

{{Edit request}} Please add this Vietnamese translation for this template.

Transferred from {{{1}}} to Commons.

to:

Chuyển từ {{{1}}} sang Commons.

Thanks in advance! Quenhitran (talk) 16:56, 11 February 2016 (UTC)Reply

  Done --Jarekt (talk) 17:37, 11 February 2016 (UTC)Reply

Protocol relative link edit

{{Editprotected}}

Please change [http://{{{1}}}.org {{{1}}}] to [//{{{1}}}.org {{{1}}}] as all Wikimedia sites support HTTPS (and redirect HTTP requests to HTTPS). Thanks, --Tacsipacsi (talk) 22:30, 23 April 2016 (UTC)Reply

  Done --Jarekt (talk) 23:18, 25 April 2016 (UTC)Reply

Add 中文 to this template edit

{{Editprotected}}

It should look like:

從{{{1}}}轉移到共享資源,由[[:User:{{{2}}}|{{{2}}}]]使用{{{3}}}轉移。

Thank you.

----
|de= nach Commons
|en= to Commons
...
|zh=轉移到 Commons 
----
|de=Übertragen aus 
|en=Transferred from 
...
|zh=從
---
|de= durch 
|en= by 
...
|zh=,由
----
|de= mithilfe {{{de-art|des}}}
|en= using
...
|zh=使用
---
|hu= használatával
|ml= എന്ന ഉപകരണം ഉപയോഗിച്ച്
|zh=轉移
----
|en=.
|eo=.
...
|zh=。

--S099001 (talk) 06:33, 29 January 2017 (UTC)Reply

@S099001: I created a sandbox version at {{Transferred from/sandbox}} using your suggestions in order to test them before I made the edit to the live version, and your suggested ccde does not exactly match the appearance you want. Here is an example of what your code produces:
本檔案是由Example使用CommonsHelper,從zh.wikipedia轉移到維基共享資源。
Is that what you wanted? If you want output that looks like your example, instead of your suggestion of...
|zh=轉移到 Commons 
...I think...
|zh=轉移到共享資源
would work . Which do you prefer? Also, you didn't mention it in your code suggestions, but should I add some code to eliminate the space between 使用 and the tool name (CommonsHelper in my example) if the language code is zh? —RP88 (talk) 12:03, 29 January 2017 (UTC)Reply
@RP88: Sorry, it should use "共享資源". If you are say about that space (punctuation), I don't know how to eliminate it, perhaps add "(ampersand)nbsp;" in front of "轉移"? If an English word in a Chinese sentence, somebody are add space for them.
----
|de= nach Commons
|en= to Commons
...
|zh= 轉移到共享資源
----
|de=Übertragen aus 
|en=Transferred from 
...
|zh=從 
---
|hu= használatával
|ml= എന്ന ഉപകരണം ഉപയോഗിച്ച്
|zh= 轉移
--S099001(talk on Commons/talk on zh.wikipedia) 13:15, 29 January 2017 (UTC)Reply
@S099001: OK, I've updated the test code at Template:Transferred from/sandbox to use 轉移到共享資源 and to remove the space after 使用. Here is an updated example:
本檔案是由Example使用CommonsHelper,從zh.wikipedia轉移到維基共享資源。
Please let me know If that looks good to you. If you say it is good, I'll update the code at {{Transferred from}} with the code from {{Transferred from/sandbox}}. —RP88 (talk) 13:25, 29 January 2017 (UTC)Reply
It's great.--S099001(talk on Commons/talk on zh.wikipedia) 13:35, 29 January 2017 (UTC)Reply
  Done I've updated the main template at {{Transferred from}}. That template is used on more than 500000 files, so it may take awhile before all of those pages are updated. However, any page that is edited will get the new code immediately. Thank you very much for your contribution. —RP88 (talk) 13:40, 29 January 2017 (UTC)Reply

Autotranslate edit

{{Editprotected}}

Please change the appropriate part of the template to the first line of the sandbox to enable {{Autotranslate}}, which makes translation a lot easier. Thanks in advance, --Tacsipacsi (talk) 20:37, 18 March 2017 (UTC)Reply

  Done Awesome! Thank you! jdx Re: 08:21, 19 March 2017 (UTC)Reply

Suggested simplification edit

  1. Instead of submitting parameter 2 and 4 to each one of the 33 subtemplates, where each one needs to construct the user link, it seems much better to create that link only once by the template, and to pass it then to the subtemplates so they can use it without any need to check it.
  2. Currently it is not possible to use the template with a more complicated user link; the only possibilities are [[:User:xxx|xxx]] and [[:lc:User:xxx|xxx]]. With a very small expansion also this template will be able to use also complex user links as e.g
  • [[User:xxx|yyy]] or short {{U|xxx|yyy}}: yyy
  • [[User talk:xxx|xxx]] or short {{Ut|xxx}}: xxx
  • [[User:xxx~commonswiki|xxx]] or short {{Uw|xxx}}: xxx
  • [[User talk:xxx~commonswiki|xxx]] or short {{Uwt|xxx}}: xxx
  • [[pt:User:example|example]] or short {{U|example||pt}}: example
  • [[es:User talk:example|example]] or short {{Ut|example||es}}: example
  • [[de:User:test|test]] & [[User:example|example]] or short {{Ud|test}} & {{U|example}} : test & example
  • or all the numerous other possibilities tlo create a user link.

In some few cases it will be fine to have these additional possibilities, as many other templates e.g that mentioned in By.

The template will check for the &#91; "[" and then either pass parameter 2 as-it-is, or create an appropriate user link, like that

{{#invoke:Fallback|autotranslate |base=Transferred from/i18n |lang={{{lang|}}} 
|1={{{1}}} 
|2={{#if:{{{2|}}}|{{#switch:{{padleft:|1|{{{2}}}}}
|[={{{2}}}
|[[:{{#if:{{{localuser|}}}|{{{localuser}}}:|{{#if:{{{4|}}}|{{{4}}}:}}}}User:{{{2}}}|{{{2}}}]]}}}}
|3={{{3|}}}
}}<includeonly>{{#if:{{{1|}}}||[[Category:Pages with incorrect template usage]]}}</includeonly><noinclude>
{{documentation}}
[[Category:Internationalization subtemplates]]
[[Category:Internationalization templates using LangSwitch]]
</noinclude>

The subtemplates don't need to evaluate parameter 2 and 4, they just use parameter 2 as-it-is, like that

<languages />
<onlyinclude>Transferred from <span class="plainlinks">[//{{{1}}}.org {{{1}}}]</span> to Commons
{{#if:{{{2|}}}|<nowiki /> by {{{2}}}}}
{{#if:{{{3|}}}|<nowiki /> using {{#switch:{{lc:{{{3}}}}} |commonshelper|commonshelperlabs=[[toollabs:commonshelper/|CommonsHelper]] |ftcg=[[:en:WP:FTCG|For the Common Good]][[Category:Files uploaded with For the Common Good]] |#default={{{3}}} }}}}.</onlyinclude>
{{translated tag|source}}

-- sarang사랑 16:46, 17 September 2018 (UTC)Reply

Simplification done edit

Some days ago this simplification was done, with some expansions like it was desribed above: only the main template uses parameter 4, 5, 6 together with parameter 2 to build the user name, which is then passed in ready format to the currently 36 subtemplates – none of them has anymore to investigate about the content of the parameter(s). If changes become necessary, only the main template will be affected, no translation becomes necessary. -- sarang사랑


@Sarang: I believe that the edits on August 4 broke the template:

{{Transferred from|en.wikipedia|Hike395|Commonshelper}}
→ Transferred from en.wikipedia to Commons by Hike395 using CommonsHelper.

Notice the extra brace and parenthesis. Could you kindly fix? — hike395 (talk) 02:56, 8 August 2021 (UTC)Reply

@Hike395: Thank you for telling me! The problem with the translate tool is that I cannnot get a final test of alterations; I can check everything, but then I have to prepare the changes at Transferred from/i18n for the automatic translation; and when there at the final step an error or typo occurs it remains undetected, until the translation reveals it. Sorry, in spite of all the care I used an error happened. I fixed it (hopefully – again I cannot see the result!) and will try to trigger another automatic translation. The error is not too bad, so to live with it for some time, until the next translation task, will be a reasonable need. -- sarang사랑 04:50, 8 August 2021 (UTC)Reply

For a long time I studied all the information about the translation tool. Sorry, nowhere I could find how to mark my correction for translation. It will depend on mere randomness whether translation occurs, and when - or not. -- sarang사랑 05:50, 8 August 2021 (UTC)Reply
I got the idea to ask at the Admins' noteboard – and User:‍Minorax made it seconds later! AFAIK my fault is now repaired. -- sarang사랑 07:47, 8 August 2021 (UTC)Reply
@Sarang: Thank you for fixing the problem! — hike395 (talk) 10:15, 8 August 2021 (UTC)Reply
Return to "Transferred from" page.