Template talk:Map caption: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Tags: Mobile edit Mobile web edit Advanced mobile edit Reply
Tags: Mobile edit Mobile web edit Advanced mobile edit Reply
Line 97: Line 97:


:The font size in this template seems broken to me. See map caption in the infobox for [[France]]. The font is larger for the caption than in the rest of the infobox. [[User:Dgp4004|Dgp4004]] ([[User talk:Dgp4004|talk]]) 15:22, 15 April 2024 (UTC)
:The font size in this template seems broken to me. See map caption in the infobox for [[France]]. The font is larger for the caption than in the rest of the infobox. [[User:Dgp4004|Dgp4004]] ([[User talk:Dgp4004|talk]]) 15:22, 15 April 2024 (UTC)
::Although having experimented, it seems to be only the mobile view which is affected. Desktop view seems to work okay. [[User:Dgp4004|Dgp4004]] ([[User talk:Dgp4004|talk]]) 15:24, 15 April 2024 (UTC)

Revision as of 15:24, 15 April 2024

Camel?!

This template causes the caption to read 'in the European Union (camel)'. I presume 'camel' is an official term for the colour used, but it's an obscure term and looks rather bizarre in this context (I initially thought it was some kind of weird vandalism). I suggest changing it to 'orange' which the average reader will understand better. Cop 633 16:03, 2 May 2007 (UTC)[reply]

I agree: This is utter nonsense. The colours should be called red, orange, and white. 81.156.250.222 (talk) 14:38, 17 August 2008 (UTC)[reply]

Someone who knows how please rename the color "Camel"!!! I thought it might say Carmel, as in Caramel. Camel is nonsense and totally distracting. —Preceding unsigned comment added by 24.20.169.77 (talk) 00:39, 16 February 2009 (UTC)[reply]

I changed 'camel' to 'tan' for now. Hope that's an improvement. Kaldari (talk) 16:59, 1 December 2013 (UTC)[reply]

Category:Mapping templates

{{editprotected}}

Please categorize this template also under Category:Mapping templates. --Timeshifter (talk) 21:41, 26 September 2008 (UTC)[reply]

Done on unprotected /doc subpage. {{Nihiltres|talk|log}} 05:43, 27 September 2008 (UTC)[reply]
thanks! I see that the doc page has the category between <includeonly></includeonly> tags. I had forgotten about that possibility. Those tags oftentimes confuse me anyway. Along with <noinclude></noinclude> --Timeshifter (talk) 03:38, 28 September 2008 (UTC)[reply]

Continental Europe v Europe

In English the phrase "continental Europe" is sometimes defined as meaning Europe less its islands. Its unfortunate, therefore, that setting the region parameter to "Europe" results in a place being described as being "on the European continent". I would suggest it would be much more straightforward to describe the place as being "in Europe" as this avoids potential ambiguity. — Blue-Haired Lawyer t 20:32, 4 September 2011 (UTC)[reply]

No objections, so change made. — Martin (MSGJ · talk) 13:29, 12 September 2011 (UTC)[reply]

Region subregion

Currently, this template places regions above subregions in captions. Surely, since we're identifying a place's location within larger areas, it makes sense to go downwards with increasing area? CMD (talk) 05:26, 4 January 2013 (UTC)[reply]

Hardcoded width

Hardcoding the width of the region fields to 250px in order to accommodate the legend is problematic. Can we come up with a less hacky way to do this? Kaldari (talk) 16:46, 1 December 2013 (UTC)[reply]

Use the nowrap templates instead? I agree it's problematic. Rob (talk | contribs) 22:58, 18 March 2014 (UTC)[reply]
As a result of the hardcoded width, this template is now increasing the width by about 10px of every instance of Template:Infobox country it is present on, from the infobox's default width of 22em. Please remove or reduce the hardcoded width to avoid this behaviour. Rob984 (talk) 12:53, 6 January 2017 (UTC)[reply]
Unresolved
 – Rob984 (talk) 12:56, 6 January 2017 (UTC)[reply]
Can you please experiment with this in the sandbox and request a change when ready? — Martin (MSGJ · talk) 17:07, 30 January 2017 (UTC)[reply]

Edit request 8 October 2016

Remove the circular link (I assume this was a mistake):

[[{{PAGENAME}}]]

to

{{PAGENAME}}

Thanks.

Rob984 (talk) 18:18, 8 October 2016 (UTC)[reply]

Not done: Based on the Parameters description, this is intentional. Primefac (talk) 18:52, 8 October 2016 (UTC)[reply]
I assumed whoever wrote the documentation was just explaining the behaviour. This syntax will always result in the title of the page being bolded. If this is intended, it should be '''{{PAGENAME}}'''. However I don't see why the country's name should be bolded? I have added |country={{nobold|country name}} to many, many articles, although now I realise actually anything would prevent the link (for example |country=<span>country name</span> or |country=country name&nbsp;) because it is simply looking for a linkable term. Rob984 (talk) 19:09, 8 October 2016 (UTC)[reply]
Can someone please explain this? Rob984 (talk) 12:50, 6 January 2017 (UTC)[reply]
Unresolved
 – Rob984 (talk) 12:56, 6 January 2017 (UTC)[reply]
I have removed this is the sandbox — Martin (MSGJ · talk) 17:06, 30 January 2017 (UTC)[reply]

Antarctica

Since Antarctica is a continent, not an island, locations there should be "in" not "on" it. "On Antarctica" simply sounds incorrect. Hairy Dude (talk) 11:46, 28 January 2017 (UTC)[reply]

Please change | [[Antarctica]] = on {{#ifexist:{{{region}}}|[[{{{region}}}]]|{{{region}}}}} to | [[Antarctica]] = in {{#ifexist:{{{region}}}|[[{{{region}}}]]|{{{region}}}}}, per Hairy Dude's comment above. Rob984 (talk) 11:48, 29 January 2017 (UTC)[reply]

@Hairy Dude and Rob984: Since "in" is the default, I think a better edit would be to delete the two "Antarctica" lines completely. But to test this properly I would like to find an article that currently displays the wrong wording. Did either of you have one in mind? -- John of Reading (talk) 16:48, 29 January 2017 (UTC)[reply]
I have removed those two lines per John of Reading's suggestion. Rob984: please confirm this is working correctly now. — Martin (MSGJ · talk) 13:32, 30 January 2017 (UTC)[reply]
Indeed, working at Queen Maud Land. Thanks! Rob984 (talk) 16:45, 30 January 2017 (UTC)[reply]

Add option for argument "link=no" to not link the country name if desired

See Republic of Ireland. The caption links to Ireland. I have prevented this by adding |country=<span>Ireland</span>, but this is not a very elegant solution. On other articles, such as Germany it makes the name appear in bold, which again I believe is not intended. At some articles, such as Portugal, I have added |country={{nobold|Portugal}}, which again is not very elegant. Rob984 (talk) 16:55, 30 January 2017 (UTC)[reply]

Please add the required code to Template:Map caption/sandbox if you are able — Martin (MSGJ · talk) 17:05, 30 January 2017 (UTC)[reply]

Edit request 23 April 2017

I would like to see the sandbox copied into the mainspace, which includes a few changes:

  • Removal of the hard coded width of 250px, which has no effect other than widening the infobox the template is placed into. The default width of an infobox is 22em, which unless the user has modified their preferences is about 250px. So this means any infobox this template is placed in is usually just widened by a few pixels.
  • Removed html tags which reduced the font size of the colours to 9px, which is a violation of MOS:ACCESS: "In no case should the resulting font size drop below 85% of the page font size (or 11px)". I don't see a reason why they should be smaller anyway, they're in brackets which is sufficient.
  • As with #Edit request 8 October 2016, prevented the circular link [[{{PAGENAME}}]] which just causes the page title to appear as bold text for no reason, requiring editors to use Template:nobold to counteract this abnormal behaviour.

All tested at Template:Map caption/testcases.

Rob984 (talk) 12:47, 23 April 2017 (UTC)[reply]

Done — JJMC89(T·C) 16:18, 23 April 2017 (UTC)[reply]
Thanks! Rob984 (talk) 09:48, 24 April 2017 (UTC)[reply]

Small font sizes removed per MOS:FONTSIZE

I have removed the too-small font sizing from this template per MOS:FONTSIZE. I did not address the forced spaces in the caption text, which seem excessive to me but which may have some purpose. – Jonesey95 (talk) 05:20, 13 March 2019 (UTC)[reply]

The font size in this template seems broken to me. See map caption in the infobox for France. The font is larger for the caption than in the rest of the infobox. Dgp4004 (talk) 15:22, 15 April 2024 (UTC)[reply]
Although having experimented, it seems to be only the mobile view which is affected. Desktop view seems to work okay. Dgp4004 (talk) 15:24, 15 April 2024 (UTC)[reply]