Template talk:Superimpose
From Wikipedia, the free encyclopedia
A really neat and wikistyle idea. This was discussed on the german WP before (with bitmap superimpose using css) but dismissed, since the resulting pictures cannot easily be saved on a local harddrive by users. --Dschwen 07:57, 3 November 2005 (UTC)
- Yes, it's designed for use within Wikipedia pages, not as a tool for generating new downloadable images. Why did users want to download them? There may be other ways to do that, if it's a useful feature. —Papayoung ☯ 15:54, 3 November 2005 (UTC)
Great template! Template:Location on map is similar, except it has a frame and caption as with the "|thumb" image syntax (e.g. at Vail, Colorado). dbenbenn | talk 00:55, 22 November 2005 (UTC)
- One highly annoying thing about this template is that the unit, px, is built in to the x and y parameters, but not the width parameters. dbenbenn | talk 05:15, 14 February 2006 (UTC)
Hi, if you like superimposing things, i've created the Template:Superimpose-text to superimpose wikitext to an image (including liks and that stuff). I guess more then an user will like this for his/her own page and userboxes. Template:Superimpose-text --Argentino (talk/cont.) 18:54, 1 May 2006 (UTC)
Contents |
[edit] New template from the German wiki
On the German wiki, a new approach to this has come out: {{Lageplan}}, which can be placed inside another template and, with a bit of extra work, can place a point on a map given the geographical co-ordinates. It has been directly copied to the English wiki for use in the new template {{Infobox German Location}}. The text for Lageplan is still in German, but you get the idea. For an example, see Cologne. It has also been successfully implemented in {{Infobox Town GR}} (eg. Heraklion). - 52 Pickup 08:19, 10 January 2007 (UTC)
- I'm not sure how that would assist the protected areas articles which uses this infobox...could you provide an example of how it might appear by using an infrequently edited article, for example Great Bear Wilderness?--MONGO 12:52, 10 January 2007 (UTC)
- Unforuntaely I don't have time to come up with an example at the moment. But I think the core idea is that you need to come up with the mathematical equation that translates the geographical co-ordinates to the loc_x / loc_y values for a given map. (while this template uses pixels, Lageplan uses a relative 0-100 scale). - 52 Pickup 13:54, 10 January 2007 (UTC)
-
-
- {{Lageplan}} has parameters with default values (loaded when the parameters are not specified), and uses a re-scaling algorithm. {{superimpose}} adds "px" to the x and y parameters. A template with % instead of px would probably be more flexible (in terms of image size). Or even one where the position can be entered either way (x=34px y=100px or x=20% y=35%).
-
[[Image:{{{float}}}|{{{float_width}}}
replaced with[[Image:{{{float|Locator_Dot.svg}}}|{{{float_width|10px}}}
would default to those values when they are not specified. This however, can be better done in the templates that use superimpose. --Qyd 17:30, 10 January 2007 (UTC)
-
[edit] Location map
After discussing Lageplan above, I have just discovered {{Location map}} which already supports various maps. Check it out. - 52 Pickup 09:39, 24 January 2007 (UTC)
[edit] Frame
A random tip... It's possible to use {{imageframe}} to add a frame around a superimposed image, to make it look more like a normal image. See for example the Pilottown, Louisiana article. Also, if someone is feeling eager, it might be possible for the superimpose template to directly call imageframe itself, possibly optionally. --Interiot 19:08, 12 March 2007 (UTC)
[edit] Fix width for surrounding <div>
{{editprotected}}
Please change the first line from
<div style="position: relative;">{{
to
<div style="position: relative; width: {{{base_width}}};">{{
This is based on the problem raised here at WP:VPT. If the base image is centered within a table cell, the red dot appears off to the left because the surrounding <div> covers the entire table cell and not just the image. –Pomte 21:02, 27 April 2007 (UTC)