Template talk:Wflicence

From OpenStreetMap Wiki
Jump to navigation Jump to search

Box styling / frames

I can already name one mindset: IMO the licence boxes do need to have a frame (border) to make it unambiguous what page content belongs to one licence statement. E.g. the border:2px solid #e0e0e0; of the box from Template:ODbL OpenStreetMap would be a minimum to me. (Besides, I just stumbled across unknown Template:OpenStreetMap screenshot). I also think the existing CC-... licence boxes stand out well from the rest of the content due to their color scheme, and that is quiet important. --Chris2map (talk) 21:13, 16 May 2022 (UTC)

What do you think of the borders in the initial version of the template? I as considering type=free for Creative Commons licences. I tried to use similar colors that were in the color palette. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 19:38, 17 May 2022 (UTC)
IMHO, the mood of the colours / grays is rather stiff (a bit of a death notice). Let's try some nuances. --Chris2map (talk) 18:07, 18 May 2022 (UTC)
background color: #7092FF, border color: #343a40, thickness of the border: 1px
background color: #6610f2, border color: #343a40, thickness of the border: 1px
background color: #6f42c1, border color: #343a40, thickness of the border: 1px
background color: #17a2b8, border color: #343a40, thickness of the border: 1px
background color: #fff, border color: #343a40, thickness of the border: 1px
background color: #6c757d, border color: #343a40, thickness of the border: 1px
background color: #343a40, border color: #343a40, thickness of the border: 1px
background color: #f8f9fa, border color: #343a40, thickness of the border: 1px
background color: #F8F9FA, border color: #7EBC6F, thickness of the border: 2px
background color: #EEE, border color: #7EBC6F, thickness of the border: 2px
background color: #F8F9FA, border color: #6f42c1, thickness of the border: 2px
background color: #EEE, border color: #6f42c1, thickness of the border: 2px
background color: #F8F9FA, border color: #17a2b8, thickness of the border: 2px
background color: #EEE, border color: #17a2b8, thickness of the border: 2px
background color: #F8F9FA, border color: #343a40, thickness of the border: 2px
background color: #EEE, border color: #343a40, thickness of the border: 2px
--Tigerfell This user is member of the wiki team of OSM (Let's talk) 22:00, 20 May 2022 (UTC)
I just have one advice, for the colors control the accessibility (this website can help you easily : [1]) — Koreller (talk) 12:23, 22 May 2022 (UTC)
I changed the borders to something I find good-looking and useful. I created one example for each type as I intended the template. See Special:PermaLink/2329611. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 09:29, 26 May 2022 (UTC)
Looks good to me! --Chris2map (talk) 10:21, 26 May 2022 (UTC)

Message "only on file pages"

Could we format the notice line ("This template should only be used on file pages.") in a way to mark it as a system message? E.g. monospace font or <code>? --Chris2map (talk) 10:26, 26 May 2022 (UTC)

Like in Template:CC0? I would rather not use <code> because that is semantically confusing. I would use some CSS stuff instead. <p style="font-family:'Lucida Console', monospace">↑ This template ...</p> should work. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 10:47, 26 May 2022 (UTC)
Or like this:
<p style="color:gray;text-align:right;font-family:monospace;"><span style="background:white;">↑<small> This template should only be used on file pages.</small></span></p>

This template should only be used on file pages.

--Chris2map (talk) 10:51, 26 May 2022 (UTC)

<small> seems to set the font size to 12 px only, so you could just write that instead. The linked web page indicates that the contrast is to low for some users to read the text. I would at least set it to #6C757D . You could probably merge the span with the p tag to simplify the markup. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 17:24, 27 May 2022 (UTC)

Resizable icons

@Chris2map: I put a lot of thought and testing into the resizable icons in this template. The point was to keep the well-known icons from previous templates. That means they need to be big enough to be recognisable. On the other hand, you do not want to have huge icons on display when using small screens. How do you want to deal with that without the resize mechanism? --Tigerfell This user is member of the wiki team of OSM (Let's talk) 22:07, 31 May 2022 (UTC)

OK, sorry! Thanks for your detailed query. To me the icons were displayed kind a small that they were hardly to recognize, so that you could quiet leave them a way. I think in case of licenses it is helpful and important that those well-known icons are well readable. Because they are only on File: pages (where there is space enough) I don't care to much about the size and required space. Do you know of any tweak to control the resizing? Setting a percentage, ratio or a minimum for the shrinking? -- Chris2map (talk) 11:22, 1 June 2022 (UTC)
I've done a revert and go for testing. Obviously the more content is in "text" part of the box, the more condensing / shrinking of the icons. Logical - but at a certain point fiddly. --Chris2map (talk) 16:55, 1 June 2022 (UTC)
It relies on the flex property to resize the icons. For comparison, I switched off the resize mechanism for Template:Wfmessage. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 11:11, 6 June 2022 (UTC)

Broken layout

What went wrong and caused broken layout on https://wiki.openstreetmap.org/wiki/Template:Assumed-CC-BY-SA-2.0-self ? Mateusz Konieczny (talk) 21:45, 22 September 2022 (UTC)

I assume you refer to Template:Assumed-CC-BY-SA-2.0-self/doc#Examples: You can not add markup into a list and have empty lines in it. It is exactly the same issue we had previously when licencing some image. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 10:11, 27 September 2022 (UTC)