Template talk:Superimpose2
Appearance
Non-linked images
[edit]I thought all images in Wikipedia articles linked to their source upload page where you could read about their licence and history. However the top image in Kerch Strait Bridge doesn't link. Why? How do I discover its provenance? -- SGBailey (talk) 20:59, 18 March 2016 (UTC)
- Interesting! I've not seen that before. Here is a link to the image though. Dismas|(talk) 21:08, 18 March 2016 (UTC)
- Take a look at the code for the template (Superimpose2) you'll notice that in the example when you click on the image, it links to a page instead of the image location. So my guess is that it has to do with the coding of superimpose2 because the regular Superimpose doesn't do that, it goes to the image location instead. Book-Portal & Talk 16:28, 18 March 2016 (UTC)
- Hi SGBailey, I fixed this for the Kerch Strait Bridge page by adding the parameter
|base_link=File:
to each of the {{superimpose2}} transclusions. As BookPortal says, adding base_link explicitly shouldn't be necessary, becauseFile:
was the default base_link value in the original {{superimpose}}, with which {{superimpose2}} aims to be compatible. I suppose this is an edge case that you are the first person to notice. I'm not a template (or anything else) expert myself, but as the main developer of superimpose2 (Sameboat) is still active on enwiki perhaps he could help? - Pointillist (talk) 21:47, 18 March 2016 (UTC)
- This can be easily fixed by changing
{{{base_link|}}}
in the template to{{#if:{{{base_link|}}}|{{{base_link}}}|File:}}
. But this template is being heavily used by Wikipedia:Route diagram template, I am not sure the consequence of this change to the rest of the diagram templates. -- Sameboat - 同舟 (talk · contri.) 03:58, 19 March 2016 (UTC)- Thanks for replying, Sameboat. I will copy this entire section to Template talk:Superimpose2 so that others can decide whether to make that change. - Pointillist (talk) 13:27, 19 March 2016 (UTC)
- This can be easily fixed by changing
Note: This is a copy of the original discussion at Wikipedia Help Desk. To continue the discussion you'll need to {{ping}} the editors because they won't have this copy on their watchlist. - Pointillist (talk) 13:40, 19 March 2016 (UTC)