Template talk:Documentation/layout

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Superfluous </div>[edit]

{{Editprotected}}

Template {{Documentation/layout}} seems to contain a superfluous </div> at the end (just before the <noinclude>).
Wlgrin 07:33, 7 December 2011 (UTC)[reply]

  • Thanks for giving it a look. It's easy to miss but the last <div> (to clear the floats) is a complete element (i.e., a <div />); so there are in total 3 <div> tags, 1 <div/> element and 4 </div> tags. Try this code to see the extra </div> in action:
<div style="width:25em; padding:2em; border-style:solid; background-color:LightBlue;">
LightBlue
<div style="width:20em; padding:2em; border-style:solid; background-color:Pink;">
Pink
{{Documentation/layout|ForeverMissingPage}}
Pink
</div>
LightBlue
</div>
Notice, in the result, that the last “Pink” is in the light blue box, and the last “LightBlue” is completely outside. If you now add a balancing <div> between lines 4 and 5 (i.e. between the first Pink and {{Documentation/layout|ForeverMissingPage}}), everything is displayed correctly. The problem was caused by the extra </div> in {{Documentation/layout}}.
Wlgrin 07:36, 8 December 2011 (UTC)[reply]
Aha. Apologies, right you are. It's been a couple of years since I wrote a template of this general complexity and I'm out of practice.
✓ Done      Jim . . . . Jameslwoodward (talk to me) 12:19, 8 December 2011 (UTC)[reply]
Thank you, Jim!
Wlgrin 08:47, 9 December 2011 (UTC)[reply]

Can brackets or any other spacer be please restored/ installed? Having the words edit view ... sticking together makes them hard to recognize as single links. Thank you! -- Rillke(q?) 01:54, 7 January 2015 (UTC)[reply]

Simply removing the brackets-message worked here and on meta, you could simply revert this. But the messages don't exist on m: or mw:. The link on action=view is broken (no docu on mw:). Fixing the erroneous link requires admin rights, and could be a major headache if this is at the moment the same notice for all messages, global/default and really documented vs. homebrewn/local and undocumented. Documented+working beats undocumented+pretty—a variant of your law. –Be..anyone (talk) 08:06, 7 January 2015 (UTC)[reply]
Simply removing has the disadvantage that one cannot easily distinguish single links. I don't want to revert; I'd like to have something between the View Edit History purge that indicates that these are single links not one big one. One does not need MediaWiki messages for that -- I've inserted bullet points now; feel free to replace them with whatever you prefer. -- Rillke(q?) 21:55, 7 January 2015 (UTC)[reply]
Yes, there should be something visible that's not a link between otherwise adjacent links for a BIENE-award, copied to meta. –Be..anyone (talk) 06:32, 8 January 2015 (UTC)[reply]

Changes in allignment[edit]

Hey @ExE Boss: ,

Please notice that the changes you added accidentally affected all right-to-left languages. the text alignment in the documentation for all the templates is not working now. Please fix it! --Michel Bakni (talk) 10:59, 1 August 2021 (UTC)[reply]

@Michel Bakni: What do you mean by “not working”? I see no outstanding issues on Template:Information with Arabic user interface. (In fact, I see no changes in text alignment at all compared to the June 8 version.) —Tacsipacsi (talk) 11:06, 1 August 2021 (UTC)[reply]

@Tacsipacsi: Please check how I see the interface:

example of Template:FoP-UK

The Arabic text should beat the right of the screen. Now it is on the left.--Michel Bakni (talk) 11:25, 1 August 2021 (UTC)[reply]

@Michel Bakni: First, as I said, it’s the same with the June 8 version. Second, the Arabic text produced by this template (the heading and the “transcluded from” text below the heading) is correctly right-aligned. The left-aligned Arabic text is produced by {{TemplateBox}} and should be fixed there. (I’m in a hurry right now, but I’ll try to look into it when I have time.) —Tacsipacsi (talk) 11:30, 1 August 2021 (UTC)[reply]
Thanks a lot! please keep me updated!--Michel Bakni (talk) 11:46, 1 August 2021 (UTC)[reply]
@Michel Bakni:
✓ Done in Special:Diff/577928204 — ExE Boss (talk) 13:10, 1 August 2021 (UTC)[reply]
@ExE Boss: thanks a lot!--Michel Bakni (talk) 17:32, 1 August 2021 (UTC)[reply]
@ExE Boss: No, it’s not fixed. {{Information}} happens to appear correctly in Arabic, but it doesn’t appear correctly in Hebrew, and {{Welcome}} doesn’t appear correctly in Arabic. dir="auto" isn’t capable of handling multilingual content; all chunks of different-language content should be marked up individually. Making it properly involves several template- and fully protected templates and modules, which I’m a bit afraid of touching. —Tacsipacsi (talk) 19:58, 1 August 2021 (UTC)[reply]