Rosetta Code:Village Pump/Line breaks in templates: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "I've seen people go back and forth in Template:Works with, Template:Libheader, Template:Trans, and other example-level templates on whether they want the line break i...")
 
(Add my 2¢)
Line 20: Line 20:


Thoughts? --[[User:Mwn3d|Mwn3d]] 21:00, 2 November 2010 (UTC)
Thoughts? --[[User:Mwn3d|Mwn3d]] 21:00, 2 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)

Revision as of 11:03, 3 November 2010

I've seen people go back and forth in Template:Works with, Template:Libheader, Template:Trans, and other example-level templates on whether they want the line break in the template or on the page. We should just make a decision and go with it. I vote for one line break in the template (not a <br/>) so that people can type something like this:

{{works with|libraryx|2.1}}
{{works with|language Y|3.4+}}
{{works with|OS Z|8.2}}

and it with show up like this:

Works with: libraryx version 2.1

Works with: language Y version 3.4+

Works with: OS Z version 8.2

If they type this:

{{works with|libraryx|2.1}}{{works with|language Y|3.4+}}{{works with|OS Z|8.2}}

it will show up like this:

Works with: libraryx version 2.1 Works with: language Y version 3.4+ Works with: OS Z version 8.2

Thoughts? --Mwn3d 21:00, 2 November 2010 (UTC)

If you put a leading <br> in, you break (hah!) a lot of simple cases where there's only a single {{works with}} directly below a =={{header}}== 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. –Donal Fellows 11:03, 3 November 2010 (UTC)