Jump to content

Module talk:Lorem ipsum

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Edit request

[edit]

I'm WP:ECP myself, but don't know how to perform this edit. I'm not sure whether a SPER is the right venue for this change.

Simply put, there is an unnecessary newline at the start and end of the Lorem ipsum text, which, among other things, breaks bullet points. See this example:

<noinclude><div style="color:gray;">
* "{{Lorem ipsum}}"
* "{{Lorem ipsum}}"</div>

becomes:

  • "

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "

  • "

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "

The formatting is broken because of an error, which I assume is in this module. FaviFake (talk) 14:59, 8 August 2025 (UTC)[reply]

@FaviFake: If you don't want that behaviour you could set the join parameter to yes, like:
{{Lorem ipsum|join=yes}}
Here's your example again:
  • "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
  • "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
Also, I have no idea if that's intended behaviour, but considering that {{Lorem ipsum}} has 1,192 transclusions, I'll consider it to be intended. But if you think that's not intended behaviour, changing line 12 from
local join = yn(args["join"]) or false
to
local join = yn(args["join"]) or true
should do the trick. Alpha Beta Delta Lambda (talk) 15:44, 8 August 2025 (UTC)[reply]
@Alpha Beta Delta Lambda Thanks! So far I've only seen it used incorrectly, but I will check other pages it's transcluded in before making any changes. Out of curiosity, where could I have found this information? FaviFake (talk) 15:48, 8 August 2025 (UTC)[reply]
What do you mean by 'this information'? If you mean the transclusion count you can find on the Template Count ToolForge tool. If you meant how to know what the parameters do, it's by looking at code and making some guesses on how it work (and testing it on a sandbox preview). Alpha Beta Delta Lambda (talk) 15:57, 8 August 2025 (UTC)[reply]
Thanks! I was actually looking for the second, but I didn't know about the external tool you linked to so thanks! I found the documentation at {{Lorem ipsum}}, since this module is mostly for that template. FaviFake (talk) 16:00, 8 August 2025 (UTC)[reply]