Template talk:Original description page

(Redirected from Template talk:Original description)
Latest comment: 2 years ago by Lasunncty in topic defunct wikivoyage links

urlencode edit

Moved from User talk:Magog the Ogre/cleanup.js:
What about urlencoding parameter 2 in Template:Original description? Otherwise, the removal of a _ leads to a mess. --Leyo 19:27, 15 February 2012 (UTC)Reply

sorry I forgot to respond. Can you please provide an example of where the script goes awry? Magog the Ogre (talk) 16:45, 21 February 2012 (UTC)Reply
There is no specific case: I was not referring to the script but user or bot edits. IMHO with urlencode we would be on the safe side. --Leyo 16:49, 21 February 2012 (UTC)Reply
Well it already urlencodes the default variable (i.e., {{PAGENAMEE}}}; the problem is that the information is already URL encoded on the page usually, and reencoding it will cause it to have an incorrect pointer. Magog the Ogre (talk) 17:04, 21 February 2012 (UTC)Reply
We could leave out the default variable. The following might work: {{PAGENAMEE:Example file name.jpg}} --Leyo 17:12, 21 February 2012 (UTC)Reply
No; again, that's a bad idea. Take File:Saudi Arabia Flag Variant (1934).svg for example; currently it points to the correct original page: http://en.wikipedia.org/w/index.php?title=File%3ASaudi_Arabia_Flag_Variant_%281934%29.svg. But if we URL encode the parameter, it won't even work. {{PAGENAMEE:File:Saudi_Arabia_Flag_Variant_%281934%29.svg}} doesn't even work because you're encoding an already encoded string. Magog the Ogre (talk) 18:02, 21 February 2012 (UTC)Reply
Could at least errors occurring due to a blank be captured (maintenance category)? --Leyo 18:39, 21 February 2012 (UTC)Reply
Why are we even discussing this though? The template will almost never be used except by automated tools which will add the already urlencoded information. Even if we did something else such as checking that something is URL encoded, we could conceivably get all sorts of weird errors like with the ampersand (cf. [1]). Magog the Ogre (talk) 19:19, 21 February 2012 (UTC)Reply
I am just not sure, if there is no risk of the _ being removed by a bot, a user script or a user tidying up… --Leyo 23:54, 21 February 2012 (UTC)Reply
Personally, I think that it is easier to type and read {{original description|ja.wikipedia|ファイル:俊徳丸鏡塚01.JPG}} than {{original description|ja.wikipedia|%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%3A%E4%BF%8A%E5%BE%B3%E4%B8%B8%E9%8F%A1%E5%A1%9A01.JPG}}. I guess one could always use {{urlencode:ファイル:俊徳丸鏡塚01.JPG}}, but it is a bit longer. Are all commonly used web browsers able to handle Unicode URLs? --Stefan4 (talk) 22:53, 14 April 2012 (UTC)Reply
It doesn't matter, because if we don't encode the url, then spacing and other control characters will goof it up. And we can't change it now because urlencoding a variable already urlencoded will also cause problems. Maybe you could make a template {{Original description manual}}. Magog the Ogre (talk) 06:19, 15 April 2012 (UTC)Reply
I think {{original description|xy.wikipedia|{{urlencode:Unencoded file name.jpg}}}} would work. It is 7 characters longer than Magog's suggestion. --Leyo 09:27, 15 April 2012 (UTC)Reply
{{Original description 2}}? Magog the Ogre (talk) 18:48, 15 April 2012 (UTC)Reply
My previous contribution was not meant to be a statement against the suggested name of the template. In fact, I prefer the first suggestion that is more descriptive or to use {{urlencode:Unencoded file name.jpg}}. --Leyo 21:50, 15 April 2012 (UTC)Reply
I guess we'll just have to type in something manually for strings which are not urlencoded. It makes the source a bit longer and less readable, though. --Stefan4 (talk) 22:01, 15 April 2012 (UTC)Reply
You did read and understand what I wrote above with the example about how double urlencoding something is is bad, right? Magog the Ogre (talk) 22:48, 15 April 2012 (UTC)Reply

Rename edit

Wouldn't “Original description page” be a more precise name of the template? “Original description” could easily be interpreted as referring to the content of the parameter description in the original description page on e.g. Wikipedia. --Leyo 10:34, 17 May 2012 (UTC)Reply

True. Magog the Ogre (talk) 17:24, 17 May 2012 (UTC)Reply
If nobody disagrees, I am going to rename/move the template. --Leyo 12:50, 18 May 2012 (UTC)Reply
Knock yourself out. Magog the Ogre (talk) 18:32, 18 May 2012 (UTC)Reply

HTTPS and Wikivoyage edit

HTTPS doesn't work on *.wikivoyage-old.org. This template knows this in some cases, but fails in other cases (e.g. here). I guess that the template needs to be adjusted to use HTTP for Wikivoyage language versions too. --Stefan4 (talk) 22:12, 12 December 2012 (UTC)Reply

Why are you using wikivoyage-old? Is that by design? Why aren't you using just wikivoyage? Magog the Ogre (talk) (contribs) 23:14, 12 December 2012 (UTC)Reply
The files are on en.wikivoyage-old.org. You can find the text on the file information pages on en.wikivoyage.org, but I thought that it would be better to link to the pages where the actual image data is. Also, WTS only exists as wts.wikivoyage-old.org (and no longer as wts.wikivoyage.org), so I thought that I didn't have much choice with File:Akita Shinkansen icon.png. --Stefan4 (talk) 23:20, 12 December 2012 (UTC)Reply

File:Rondo at the Championship parade.jpg edit

Hi, the image link on File:Rondo at the Championship parade.jpg is faulty. I inputed everything correctly in the parameters as instructed, but still something is wrong. It would be great if someone can fix it. Thanks.Chrishmt0423 (talk) 22:37, 19 March 2013 (UTC)Reply

Done. --Leyo 22:48, 19 March 2013 (UTC)Reply

URL encoding edit

@Leyo and Magog the Ogre: why not to allow inserting raw filenames (not URL-encoded) as 2nd parameter? I can run a bot to fix it in all transcluding pages. --Ricordisamoa 01:48, 6 January 2014 (UTC)Reply

We could allow a second overriding parameter, yes. That would work. As for whether the bots group will allow you to make this change, I can't say. It doesn't help that we already have numerous tools encoded to use the first parameter (i.e., the urlencoded one). Magog the Ogre (talk) (contribs) 03:13, 6 January 2014 (UTC)Reply
@Magog the Ogre: no, I was suggesting to change the existing argument '2' into a raw filename. That would require a quick and fast bot run to avoid things being broken, but it would finally solve encoding issues. --Ricordisamoa 04:37, 6 January 2014 (UTC)Reply
That doesn't seem like a good idea. I personally have 3 different scripts which use the urlencoded parameter; CommonsHelper uses the parameter; IIRC, FtCG uses it as well. We'd all have to change our scripts instantaneously. I can assure you that getting other users to change their scripts at all is a huge hassle, and that can sometimes fail. IMO It seems better to use a new parameter. If at some point we get them all changed over, then we could switch parameter 2 to do the same thing as the other parameter. Magog the Ogre (talk) (contribs) 04:41, 6 January 2014 (UTC)Reply
So, adding a new '3' parameter should be ok. Would it take precedence over the other, or would it be simply used as fallback? --Ricordisamoa 05:02, 6 January 2014 (UTC)Reply
You could use a parameter 3, or you could use a named parameter like {{Attribution}} and {{Licensed-PD-Art}} do. I would say it should take precedence if present. If using parameter three, you might want to create a temporary category to make sure there aren't any transclusions which accidentally already use it. Magog the Ogre (talk) (contribs) 05:26, 6 January 2014 (UTC)Reply
Would you prefer it being named or numbered? --Ricordisamoa 07:45, 6 January 2014 (UTC)Reply
Personally, I'd go with named. Magog the Ogre (talk) (contribs) 23:39, 8 January 2014 (UTC)Reply
@Magog the Ogre:   Done --Ricordisamoa 06:42, 11 January 2014 (UTC)Reply

Anyway, I see that some people are tempted to replace underscores with blank spaces. Either a tracking category or an intelligent converter of the introduced value into preferred form is needed.--XXN, 14:57, 23 October 2016 (UTC)Reply

@XXN, Ricordisamoa, and Magog the Ogre: What about hastemplate:Original_description_page insource:/\{\{Original description page\|[^\}]+ [^\}]+\}/ -insource:/original file name not indicated/ or similar? --Leyo 10:47, 24 October 2016 (UTC)Reply

edits by User:Nnemo edit

I don't see an improvement in these, as far as I know linking here   is common practive on Commons and the rest of the internet.    FDMS  4    22:09, 18 May 2014 (UTC)Reply

I think that edit should have discussed before it was made. Magog the Ogre (talk) (contribs) 23:04, 18 May 2014 (UTC)Reply

Lt.translation edit

{{Editrequest}}

lt= Pirminis aprašymo puslapis buvo
lt= čia
lt= . Visi žemiau perteikti naudotojų vardai priklauso {{{1}}}.

Thank You, Hugo.arg (talk) 17:06, 29 October 2014 (UTC)Reply

  Done --Steinsplitter (talk) 19:37, 29 October 2014 (UTC)Reply

bn edit

{{Editprotected}}

|bn=মূল বিবরণ পাতাটি
|bn=এখানে
|bn=ছিল। নিম্নলিখিত সকল ব্যবহারকারীর নাম {{{1}}}-এ উল্লেখ করা ছিল।

--Aftab (talk) 17:20, 15 March 2015 (UTC)Reply

@Aftabuzzaman:   Done Magog the Ogre (talk) (contribs) 05:20, 18 March 2015 (UTC)Reply

pl edit

{{Editrequest}}

|pl=Oryginalna strona opisu była
|pl=tutaj.
|pl=Wszystkie poniższe nazwy użytkowników odwołują się do {{{1}}}.

91.192.228.136 12:39, 20 March 2015 (UTC)Reply

  Done Magog the Ogre (talk) (contribs) 23:27, 20 March 2015 (UTC)Reply

gl edit

{{Edit request}}

|gl=A páxina orixinal de descrición está 
|gl=aquí
|gl=. Tódolos seguintes nomes de usuario refírense a {{{1}}}.

Thank you. --. HombreDHojalata.talk 17:11, 3 April 2015 (UTC)Reply

@HombreDHojalata:   Done Magog the Ogre (talk) (contribs) 17:53, 3 April 2015 (UTC)Reply

Error in wikivoyage.old sorting code edit

Hi! Files like File:19930101 02 Réunion Brulé 01.JPG end up in Category:Files from Wikivoyage wts instead of Category:Files from Wikivoyage en. As far as I can see it is becaus of this template. --MGA73 (talk) 16:21, 18 April 2015 (UTC)Reply

HR translation edit

{{Edit request}}

|hr=Izvorna stranica s opisom bila je
|hr=ovdje
|hr=. Niže navedena suradnička imena odnose se na {{{1}}}.

Thanks.--MaGa 19:13, 24 December 2015 (UTC)Reply

@MaGa:   Done Magog the Ogre (talk) (contribs) 20:36, 24 December 2015 (UTC)Reply

Catalan translation edit

{{Edit request}}

|ca=La pàgina de descripció original era
|ca=aquí
|ca=. Els noms d'usuari a continuació es refereixen a {{{1}}}.

Thanks. --V.Riullop (talk) 09:37, 26 December 2015 (UTC)Reply

@Vriullop:   Done Magog the Ogre (talk) (contribs) 17:46, 26 December 2015 (UTC)Reply

Autotranslate edit

{{Editprotected}}

Please use {{Autotranslate}} on this template with the following code:

{{Autotranslate
 |base=Original description page/i18n
 |1={{{1}}}
 |url={{#switch:{{lc:{{{1}}}}}
   |wikitravel/de=http://wikitravel.org/wiki/de/index.php?title=File
   |wikitravel/es=http://wikitravel.org/wiki/es/index.php?title=File
   |wikitravel/it=http://wikitravel.org/wiki/it/index.php?title=File
   |wikitravel/ja=http://wikitravel.org/wiki/ja/index.php?title=File
   |wikivoyage|wts.wikivoyage=http://wts.wikivoyage-old.org/w/index.php?title=File
   |wikivoyage/shared|wikivoyage-old/shared=http://www.wikivoyage-old.org/w/shared/index.php?title=Image
   |de.wikivoyage-old|en.wikivoyage-old|it.wikivoyage-old|nl.wikivoyage-old|ru.wikivoyage-old|sv.wikivoyage-old|wts.wikivoyage-old|=http://{{{1}}}.org/w/index.php?title=File
   |#default=//{{{1}}}.org/w/index.php?title=File
   }}:{{#if:{{{raw|}}}|{{PAGENAMEE:{{{raw}}}|WIKI}}|{{{2|{{PAGENAMEE}}}}}}}
 |lang={{{lang|}}}
}}<includeonly>…</includeonly><noinclude>{{documentation}}</noinclude>

(Only the main part should change, includeonly and noinclude not.) Also please delete Template:Original description page/i18n/srn and Translations:Template:Original description page/i18n/1/srn, they were created by mistake. --Tacsipacsi (talk) 19:07, 19 February 2016 (UTC)Reply

Tacsipacsi, could you test it first at Template:Original description page/sandbox and Template:Original description page/testcases? --Jarekt (talk) 19:37, 19 February 2016 (UTC)Reply
@Jarekt: I corrected the code. I don’t think there can be other errors. --Tacsipacsi (talk) 19:55, 19 February 2016 (UTC)Reply
Tacsipacsi, I copied above code to Template:Original description page/sandbox and tried:
  • {{original description page|en.wikivoyage-old|Hin_Ta_Hin_Yai_large.jpg}} -> "
    The original description page was here. All following user names refer to en.wikivoyage-old.
    "
  • {{original description page/sandbox|en.wikivoyage-old|Hin_Ta_Hin_Yai_large.jpg}} -> "
    The original description page was here. All following user names refer to de.wikipedia.
  • 2017-01-03, 12:23‎ Perhelion (1741 Bytes) additional raw is not suggestive nor user-friendly
  • 2016-02-22, 04:39‎ Jarekt (902 Bytes) ."
I think your code still have problems. --Jarekt (talk) 04:25, 20 February 2016 (UTC)Reply
  Done I figured out how to fix it. --Jarekt (talk) 03:44, 22 February 2016 (UTC)Reply
Thank you, I didn’t think of it. But you removed the documentation etc. Please put them back. Thank you! --Tacsipacsi (talk) 16:19, 22 February 2016 (UTC)Reply
  Fixed Opps, you are right. Always 2 steps forward and one back. --Jarekt (talk) 19:26, 22 February 2016 (UTC)Reply

Remove raw parameter (generally URL encoding) edit

{{Edit request}} This parameter is neither expectable/suggestive nor user-friendly nor documented (as it was only half intended on #URL encoding). Here is a code which generally WIKI encode the file name (the parameter WIKI for PAGENAMEE is also not documented[2]). User: Perhelion 11:37, 3 January 2017 (UTC)Reply

  Done --Hedwig in Washington (mail?) 02:58, 9 May 2017 (UTC)Reply
Making {{{2}}} into a parameter of PAGENAMEE breaks many uses, e.g. here and here. Hedwig in Washington, please undo or do it in another way. 62.65.58.38 15:49, 26 June 2017 (UTC)Reply
@Perhelion: Schaust Du mal? --Hedwig in Washington (mail?) 15:53, 26 June 2017 (UTC)Reply
@Hedwig in Washington, Leyo, Ricordisamoa, XXN, and Magog the Ogre: Ok, I admit that was a breaker bar. The thing is as described above. (Maybe I had should discussed this more before.) It is neither Wiki concurring to use URLencoding in normal pages or it is user friendly. I highly expect non URLencoded parameters as user friendly, but maybe now, the stable door is shut after the horse has bolted (das Kind ist in den Brunnen gefallen). As this template is a more bot/script template (as Magog mentioned). But the thing is, some more general cleanup scripts due exactly the opposite (as Magog mentioned) they convert such text to normal human readable code (as also mentioned in the discussion above by XXN).
@raw: I also disagree a bit to the 3rd parameter name "raw=". I suggest the name "file", if we go revert to the not automatic encoded parameter as default. -- User: Perhelion 18:54, 26 June 2017 (UTC)Reply
@Perhelion: there are 900000 files and many bots using the encoded version. If you want to create another template, I recommend that. Magog the Ogre (talk) (contribs) 00:02, 27 June 2017 (UTC)Reply
@Magog the Ogre: Thanks for reverting, I totally forgot to do that. --Hedwig in Washington (mail?) 00:17, 27 June 2017 (UTC)Reply
Yes sorry for that, I suggest the name {{Original file page}} or {{Original page}}!? So what about the undocumented raw para? (I mean all this would be obsolete to the new template.) -- User: Perhelion 01:59, 27 June 2017 (UTC)Reply

defunct wikivoyage links edit

The wikivoyage links are broken. They go to wts.wikivoyage or wikivoyage-old which no longer work. --Lasunncty (talk) 06:23, 15 June 2021 (UTC)Reply

Return to "Original description page" page.