Editing Template talk:Image-quality
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== Link Change == | == Link Change == | ||
{{talk}} | |||
I found a way to duplicate the link that is associated with ''Upload a new version of this file''. Change: | I found a way to duplicate the link that is associated with ''Upload a new version of this file''. Change: | ||
* <code><nowiki>'''this file should be {{color-link | * <code><nowiki>'''this file should be {{color-link-piped|Special:Upload|#000000|reuploaded}}''' | ||
</nowiki></code> (link is [[Special:Upload]] if put into [[:File:Glide64 2.png]]) | </nowiki></code> (link is [[Special:Upload]] if put into [[:File:Glide64 2.png]]) | ||
to | to | ||
Line 9: | Line 10: | ||
:Looks good to me but more input would be needed before making the change. --{{User:Henry Tucayo Clay/sig}} 10:29, 13 February 2016 (EST) | :Looks good to me but more input would be needed before making the change. --{{User:Henry Tucayo Clay/sig}} 10:29, 13 February 2016 (EST) | ||
::Good idea to make it link directly to uploading the file in question, bu as for the coding itself, make it: | ::Good idea to make it link directly to uploading the file in question, bu as for the coding itself, make it: | ||
::*<code><nowiki><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{PAGENAMEE}}|WIKI}}&wpForReUpload=1}} {{color|black | ::*<code><nowiki><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{urlencode:{{PAGENAMEE}}|WIKI}}&wpForReUpload=1}} {{color|reuploaded|black}}]</span>'''</nowiki></code> | ||
::The bold starts before the link so the 's are unnecessary, the colour template's a bit simpler than needing a second span, and it doesn't matter if the link's dysfunctional on the template page itself, so long as it works for other pages, which it should, as far as I can tell. The only potential problems are when apostrophes, ampersands or other characters are used in the file names; I switched the magic word to PAGENAMEE, since I ''think'' percent-encoding special characters will work better, but I'm not 100% sure: I haven't tested it by reuploading anything, just previewing and going to the upload pages, with less than perfect results even then (for either magic word). - {{User:Walkazo/sig}} 13:19, 13 February 2016 (EST) | ::The bold starts before the link so the 's are unnecessary, the colour template's a bit simpler than needing a second span, and it doesn't matter if the link's dysfunctional on the template page itself, so long as it works for other pages, which it should, as far as I can tell. The only potential problems are when apostrophes, ampersands or other characters are used in the file names; I switched the magic word to PAGENAMEE, since I ''think'' percent-encoding special characters will work better, but I'm not 100% sure: I haven't tested it by reuploading anything, just previewing and going to the upload pages, with less than perfect results even then (for either magic word). - {{User:Walkazo/sig}} 13:19, 13 February 2016 (EST) | ||
:::I looked up [https://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names documentation] and I can go even shorter and drop <code><nowiki>{{urlencode:{{PAGENAME}}|WIKI}}</nowiki></code> in favor of <code><nowiki>{{PAGENAMEE}}</nowiki></code>. The markup produces identical output. There shouldn't be problem(s) with the encoded output version of the magic word. I would just replace: | :::I looked up [https://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names documentation] and I can go even shorter and drop <code><nowiki>{{urlencode:{{PAGENAME}}|WIKI}}</nowiki></code> in favor of <code><nowiki>{{PAGENAMEE}}</nowiki></code>. The markup produces identical output. There shouldn't be problem(s) with the encoded output version of the magic word. I would just replace: | ||
:::*<code><nowiki>{{color-link | :::*<code><nowiki>{{color-link-piped|Special:Upload|#000000|reuploaded}}</nowiki></code> | ||
:::with | :::with | ||
:::*<code><nowiki><includeonly><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|#000000 | :::*<code><nowiki><includeonly><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|reuploaded|#000000}}]</span></includeonly><noinclude>{{color-link-piped|Special:Upload|#000000|reuploaded}}</noinclude></nowiki></code> | ||
:::--{{User:Wildgoosespeeder/sig}} 15:36, 13 February 2016 (EST) | :::--{{User:Wildgoosespeeder/sig}} 15:36, 13 February 2016 (EST) | ||
::::Yeah, that link definitely looks good. But again, ditch the unnecessary includeonly/noinclude stuff: | ::::Yeah, that link definitely looks good. But again, ditch the unnecessary includeonly/noinclude stuff: | ||
::::*<code><nowiki><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|#000000 | ::::*<code><nowiki><span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|reuploaded|#000000}}]</span></nowiki></code> | ||
::::- {{User:Walkazo/sig}} 16:00, 14 February 2016 (EST) | ::::- {{User:Walkazo/sig}} 16:00, 14 February 2016 (EST) | ||
:::::Actually, I have a new set of logic that needs to be in place so that way the special link only appears on file pages: | :::::Actually, I have a new set of logic that needs to be in place so that way the special link only appears on file pages: | ||
:::::*<code><nowiki>{{#ifeq: {{FULLPAGENAME}}|File:{{PAGENAME}}|<span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|#000000 | :::::*<code><nowiki>{{#ifeq: {{FULLPAGENAME}}|File:{{PAGENAME}}|<span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} {{color|reuploaded|#000000}}]</span>|{{color-link-piped|Special:Upload|#000000|reuploaded}}}}</nowiki></code> | ||
:::::Trust me, this needs to be there for error correction purposes. --{{User:Wildgoosespeeder/sig}} 16:27, 14 February 2016 (EST) | :::::Trust me, this needs to be there for error correction purposes. --{{User:Wildgoosespeeder/sig}} 16:27, 14 February 2016 (EST) | ||