10,951
editsMore actions
Improve code and explain implementation details in a comment.
(Need to include the template parameter or code in it won't be parsed at all!) |
(Improve code and explain implementation details in a comment.) |
||
Line 1: | Line 1: | ||
<includeonly><div class="mw-empty-elt">{{{1}}}</div></includeonly><noinclude> | <includeonly><div class="mw-empty-elt">{{trim | {{{1}}} }}</div><!-- | ||
Implementation notes: | |||
* The template parameter {{{1}}} MUST be used, or else its contents won't even be parsed when this template is called. | |||
* The use of trim ensures that the hidden div in the HTML output doesn't contain a crapton of empty paragraphs if you have multiple "paragraphs" of code with empty lines in between. | |||
--></includeonly><noinclude> | |||
This template allows having pure code somewhere in a page's source without disturbing the output. For example, variable definitions, or uses of the <code><nowiki>{{#seo:}}</nowiki></code> tag. | This template allows having pure code somewhere in a page's source without disturbing the output. For example, variable definitions, or uses of the <code><nowiki>{{#seo:}}</nowiki></code> tag. | ||