Template:Strip whitespace: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(creating convenience template for removing whitespace from parameters)
 
m (more explanation of what this template is for)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{{x|{{Strip whitespace/1|x={{{1|}}}}}}}}</includeonly><noinclude>
<includeonly>{{{x|{{Strip whitespace/1|x={{{1|}}}}}}}}</includeonly><noinclude>
Removes whitespace in the manner of named template parameters.
Removes whitespace in the manner of named template parameters. Useful if you want to use unnamed template parameters as if they were named parameters, which don't include whitespace and can be placed on their own line, etc.


Example to remove whitespace from parameter 1:
Example to remove whitespace from unnamed parameter 3:
<pre>{{strip whitespace|{{{1}}}}}</pre>
<pre>{{strip whitespace|{{{3}}}}}</pre>


Borrowed from: [https://en.wikipedia.org/wiki/Template:Strip_whitespace Wikipedia:Template:Strip_whitespace]
Borrowed from: [https://en.wikipedia.org/wiki/Template:Strip_whitespace Wikipedia:Template:Strip whitespace]
</noinclude>
</noinclude>

Latest revision as of 22:04, 22 April 2015

Removes whitespace in the manner of named template parameters. Useful if you want to use unnamed template parameters as if they were named parameters, which don't include whitespace and can be placed on their own line, etc.

Example to remove whitespace from unnamed parameter 3:

{{strip whitespace|{{{3}}}}}

Borrowed from: Wikipedia:Template:Strip whitespace