Template:Pullquote: Difference between revisions

m
it's not just the equals sign that can break this template
m (line height adjustment (for better-looking quote marks); not sure I will be using it, though)
m (it's not just the equals sign that can break this template)
Line 23: Line 23:
|color=blue}}
|color=blue}}


{{Pullquote|P.S.: In order to use an equals sign, you have to specify the text body explicitly as parameter 1: <nowiki>{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}</nowiki> yields<br /><br />{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}This is simply because the template thinks the first equals sign it encounters is referring to a parameter being set, and it gets confused. Note that you also have to assign parameter 2, the source, manually in this case.}}
{{Pullquote|P.S.: If the template is being confused by a certain symbol in the text you're passing it, you have to set the parameter explicitly using its number: <nowiki>{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}</nowiki> yields<br /><br />{{Pullquote|1=E = mc<sup>2</sup>, but templates are confusing.|2=Albert Einstein}}Equals signs and square brackets are known to require this workaround. Note that when you number a parameter you also have to assign numbers to the following parameters.}}


[[Category:Message box templates]]</noinclude>
[[Category:Message box templates]]</noinclude>