Template talk:R: Difference between revisions
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:
- Biology [r]: The science of life — of complex, self-organizing, information-processing systems living in the past, present or future. [e]
- Microbiology [r]: The study of microorganisms (overlapping with areas of virology, bacteriology, mycology, and parasitology). [e]
- Cell Biology [r]: The study of the components of cells and their interactions. [e]
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:
- Biology [r]: The science of life — of complex, self-organizing, information-processing systems living in the past, present or future. [e]
- Microbiology [r]: The study of microorganisms (overlapping with areas of virology, bacteriology, mycology, and parasitology). [e]
- Cell Biology [r]: The study of the components of cells and their interactions. [e]
--Larry Sanger 13:55, 6 May 2008 (CDT)