Rosetta Code:Village Pump/Line breaks in templates: Difference between revisions
Content added Content deleted
(Add my 2¢) |
(<div>?) |
||
Line 22: | Line 22: | ||
: If you put a leading <nowiki><br></nowiki> in, you break (hah!) a lot of simple cases where there's only a single <nowiki>{{works with}}</nowiki> directly below a <nowiki>=={{header}}==</nowiki> line. That's the most important use case right now! While it would be nice to have fancy formatting between a sequence of these, it's far less important than making the basic case work right. Well, IMO anyway. –[[User:Dkf|Donal Fellows]] 11:03, 3 November 2010 (UTC) |
: If you put a leading <nowiki><br></nowiki> in, you break (hah!) a lot of simple cases where there's only a single <nowiki>{{works with}}</nowiki> directly below a <nowiki>=={{header}}==</nowiki> line. That's the most important use case right now! While it would be nice to have fancy formatting between a sequence of these, it's far less important than making the basic case work right. Well, IMO anyway. –[[User:Dkf|Donal Fellows]] 11:03, 3 November 2010 (UTC) |
||
:: Ok, what if we were to put a <nowiki><div></nowiki> around the content? Mwn3d's example would come out as: |
|||
<div>'''Works with''': libraryx version 2.1</div> |
|||
<div>'''Works with''': language Y version 3.4+</div> |
|||
<div>'''Works with''': OS Z version 8.2</div> |
|||
:: (block-level styling to the rescue...) It would also be trivial to add per-template CSS styling, for easier visual recognition of the data. --[[User:Short Circuit|Michael Mol]] 12:10, 3 November 2010 (UTC) |