Lorem ipsum dolor sit amet, consectetur adipisicing 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.
Template talk:Hanging indent
Add topicCompatibility with the text
style class
[edit]Is there a way to make it work inside elements marked as class=text
, class=pagetext
, and similar which set text-indent: 2em
? It – and variants like {{hi/s}}…{{hi/e}}
– currently break inside Page:
namespace because of that (cf. Page:Táin Bó Cuailnge 'na dráma - Ua Laoghaire.pdf/15). Is that the desired effect? It seems it works on English Wikisource (but text-indent
isn’t set there in class styles?).
Doing <div class=text>{{hi|{{lorem ipsum}}}}</div>
renders:
while I believe it should render:
Lorem ipsum dolor sit amet, consectetur adipisicing 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 it seems that <div class=text>{{outdent|{{lorem ipsum}}}}</div>
does work:
So should Template:Outdent be used instead? Silmethule (talk) 14:25, 16 November 2021 (UTC)
- And the difference between the two is that
{{Outdent}}
addsclass="tiInherit"
to the created div while the hanging indent templates don’t. Should they? Silmethule (talk) 14:35, 16 November 2021 (UTC) - I’m gonna add
tiInherit
class to it. I can’t see a reason why it shouldn’t be there when templates like{{Center}}
also do add it.Silmethule (talk) 11:49, 17 November 2021 (UTC)