Template:Block indent: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 22: Line 22:




Note, if your text includes an equals sign, you need to explicitly number the 1st parameter:
Note, if your text includes an equals sign, you need to explicitly number the 1st parameter.  If you explicitly number the 1st parameter, you must also explicitly number the 2nd parameter if you use it:
<pre style="max-width:400px; margin-left:12px;"><nowiki>
<pre style="max-width:550px; margin-left:12px;"><nowiki>
{{Block indent|1=This has an equals sign (=) in it.}}
{{Block indent|1=This has an equals sign (=) in it.|2=6}}
</nowiki></pre>
</nowiki></pre>
If you explicitly number the 1st parameter, you must also explicitly number the 2nd parameter if you use it:
 
<pre style="max-width:450px; margin-left:12px;"><nowiki>
Results in:
{{Block indent|1=This has an equals sign (=) in it.|2=6}}
{{Block indent|1=This has an equals sign (=) in it.|2=6}}
</nowiki></pre>
 
Otherwise it would (when written like this: <code><nowiki>{{Block indent|This has an equals sign (=) in it.|6}}</nowiki><code>), result in:
{{Block indent|This has an equals sign (=) in it.|6}}


[[Category:Template]]
[[Category:Template]]
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits