Template talk:R: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Larry Sanger
No edit summary
imported>Larry Sanger
No edit summary
Line 1: Line 1:
Can anyone explain to me why there is an extra newline after this template's contents?  Can anyone remove it, please?? --[[User:Larry Sanger|Larry Sanger]] 13:24, 6 May 2008 (CDT)
Can anyone explain to me why there is an extra newline after this template's contents?  Can anyone remove it, please?? --[[User:Larry Sanger|Larry Sanger]] 13:24, 6 May 2008 (CDT)
To answer my own question, it's caused by the fact that we place newlines between each use of the template, like this:
<pre>
{{r|Biology}}
{{r|Microbiology}}
{{r|Cell Biology}}
</pre>
That outputs:
{{r|Biology}}
{{r|Microbiology}}
{{r|Cell Biology}}
But the r template itself adds an asterisk, which adds its own newline (''before'' the asterisk).  That's two newlines.  To eliminate extra newlines, you could do this:
<pre>
{{r|Biology}}{{r|Microbiology}}{{r|Cell Biology}}
</pre>
which outputs:{{r|Biology}}{{r|Microbiology}}{{r|Cell Biology}}
--[[User:Larry Sanger|Larry Sanger]] 13:55, 6 May 2008 (CDT)

Revision as of 12:55, 6 May 2008

Can anyone explain to me why there is an extra newline after this template's contents? Can anyone remove it, please?? --Larry Sanger 13:24, 6 May 2008 (CDT)

To answer my own question, it's caused by the fact that we place newlines between each use of the template, like this:

{{r|Biology}}
{{r|Microbiology}}
{{r|Cell Biology}}

That outputs:

But the r template itself adds an asterisk, which adds its own newline (before the asterisk). That's two newlines. To eliminate extra newlines, you could do this:

{{r|Biology}}{{r|Microbiology}}{{r|Cell Biology}}

which outputs:

--Larry Sanger 13:55, 6 May 2008 (CDT)