Template talk:Columns

From Wikipedia, the free encyclopedia
Jump to: navigation, search

spurious newlines[edit]

I believe I fixed the problem of this template generating spurious newlines by switching to HTML markup, which is less sensitive to whitespace issues. basically, multiple blank lines are translated into <p>...</p> tags by the parser. Frietjes (talk) 22:01, 8 May 2013 (UTC)

Documentation example and question about spacing[edit]

The initial example might be better as a longer text sample without line breaks, so the overall typical look of the results is more apparent. For instance:

Code
{{columns

|col1 = Every day you may make progress. Every step may be fruitful. Yet there will stretch out before you an ever-lengthening, ever-ascending, ever-improving path. You know you will never get to the end of the journey.

|col2 = But this, so far from discouraging, only adds to the joy and the glory of the climb.

{{Citation | last = Churchill | first = Winston | title = Painting as a Pastime | magazine = Strand Magazine | date = Dec 1921/Jan 1922 | author-link = wikiquote:Winston Churchill}}

}}
Result


Also, based on this, if anyone can figure why adding the citation template makes the 2nd column not quite top align with the first (for me at least on IE9), I'd be interested to hear along with any known solutions. (I know that "get a better browser" is probably the best solution, but not an option in this case.) Lastly, it seems to me that the default intercolumn gap is too narrow. I know it can be overridden, but do others think the default looks about right to them? —Salton Finneger (talk) 15:10, 20 December 2013 (UTC)

@Salton Finneger: interesting, if you check the source, something is inserting a <p>...</p> around the first part of col2. note that if I change this to
{{columns
|col1 = Every day you may make progress. Every step may be fruitful. Yet there will stretch out before you an ever-lengthening, ever-ascending, ever-improving path. You know you will never get to the end of the journey. 
|col2 = But this, so far from discouraging, only adds to the joy and the glory of the climb.<p>{{Citation | last = Churchill | first = Winston | title = Painting as a Pastime | magazine = Strand Magazine | date = Dec 1921/Jan 1922 | author-link = wikiquote:Winston Churchill}}
}}
Result
which removes the newline between the text and the citation, the problem seems to go away? Frietjes (talk) 18:07, 23 December 2013 (UTC)
That does the trick. Thanks. —Salton Finneger (talk) 00:50, 24 December 2013 (UTC)