Template talk:Legend inline
Missing Something
![](http://upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png)
Am I missing something or is this not working. If I use this template the colors don't seem to apear
For Example: The code {{Legend | #2EFE9A | Cossatot}} {{Legend | #D0F5A9 | Double Eagle}} {{Legend | #F7FE2E | Long Horn}} Comes out
But the code: {{Legend inline | #2EFE9A | Cossatot}} {{Legend inline | #D0F5A9 | Double Eagle}} {{Legend inline | #F7FE2E | Long Horn}}
come out blank:
Cossatot Double Eagle Long Horn
Am I using this wrong?--ARTEST4ECHO (talk/contribs) 16:44, 11 March 2013 (UTC)
- The color parameters cannot have spaces before or after. So {{Legend inline |#2EFE9A| Cossatot}} → Cossatot is as you expect. This was solved in the {{Legend}} template, but not this one. -DePiep (talk) 17:04, 11 March 2013 (UTC)
- ...I have changed this in the template. the spaces cause no problem any more. -DePiep (talk) 17:07, 11 March 2013 (UTC)
- Thanks. I couldn't seem to figure it out.--ARTEST4ECHO (talk/contribs) 17:20, 11 March 2013 (UTC)
- Not your fault. Bad template code. -DePiep (talk) 21:18, 11 March 2013 (UTC)
- I have a favor to ask you. Would you be willing to look at the coding at [1]. I'm having the exact same issue, but can't seem to fix it.--ARTEST4ECHO (talk/contribs) 13:58, 13 March 2013 (UTC)
- The link has exactly the same code as this good one. I could not find a disfunction. Maybe you mean to point to a different template: {{legend}} over there. That has older, bad code. The difference is in the added {{trim}}:
background-color:{{trim|{{{1|transparent}}}}};
. So you can either add the trim manually or copy all current code from {{legend}} into that page. -DePiep (talk) 14:26, 13 March 2013 (UTC)- It turns out that the {{trim|}} template was never created. So when I tried to implement it, it didn't work. Thanks for your help.--ARTEST4ECHO (talk/contribs) 14:50, 13 March 2013 (UTC)
- Hadn't even thought of that possibility... -DePiep (talk) 14:59, 13 March 2013 (UTC)
- It turns out that the {{trim|}} template was never created. So when I tried to implement it, it didn't work. Thanks for your help.--ARTEST4ECHO (talk/contribs) 14:50, 13 March 2013 (UTC)
- The link has exactly the same code as this good one. I could not find a disfunction. Maybe you mean to point to a different template: {{legend}} over there. That has older, bad code. The difference is in the added {{trim}}:
- I have a favor to ask you. Would you be willing to look at the coding at [1]. I'm having the exact same issue, but can't seem to fix it.--ARTEST4ECHO (talk/contribs) 13:58, 13 March 2013 (UTC)
- Not your fault. Bad template code. -DePiep (talk) 21:18, 11 March 2013 (UTC)
- Thanks. I couldn't seem to figure it out.--ARTEST4ECHO (talk/contribs) 17:20, 11 March 2013 (UTC)
- ...I have changed this in the template. the spaces cause no problem any more. -DePiep (talk) 17:07, 11 March 2013 (UTC)
Font-size discussion
I started a discussion about potential stylistic changes (namely, font-size) to this template at Template talk:Legend#Font size (time to paint a bikeshed), based on CSS changes that might be made in the Template:Legend/styles.css stylesheet. Please join the discussion there. {{Nihiltres |talk |edits}} 16:30, 30 September 2020 (UTC)
Long lines just keep going
It tries too hard not to break the line, running outside the page margin, causing a horizontal scroll bar. Also the last 2 characters are inaccessible. (At least in Firefox.)
Here is an offending line: Once upon a time, first, second, third, shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu shrdlu, penultimate, final.
Changing from {Legend-inline} to {Legend} lets it wrap (but the vertical spacing increases):
(Found this at [List of Knight's Cross of the Iron Cross with Oak Leaves recipients (1944)].) -A876 (talk) 08:01, 25 August 2022 (UTC)
Template-protected edit request on 9 December 2022
![]() | It is requested that an edit be made to the template-protected template at Template:Legend inline. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Add a "width" param for customizing the template's width. Qwerty284651 (talk) 01:17, 9 December 2022 (UTC) Qwerty284651 (talk) 01:17, 9 December 2022 (UTC)