v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:="

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (typo)
(update, better layout)
 
Line 2: Line 2:
 
----
 
----
  
For some reason all templates bork when an equals sign is included directly in them; with this template, now if you use <nowiki>{{=}}</nowiki> instead of = you'll be fine.
+
Most templates bork when an equals sign is included directly in an ordered parameter; with this template, now if you use <nowiki>{{=}}</nowiki> instead of = you'll be fine.
  
 
Compare the following:
 
Compare the following:
  
{| class="wikitable" border="1" cellspacing="0"  cellpadding="5" align="center"
+
{| class="wikitable" border="1" cellspacing="0"  cellpadding="5" align="center" width="50%"
 
  ! Code !! Result  
 
  ! Code !! Result  
 
  |-
 
  |-
 
  || <pre>{{Colored Notice Box|#f00|2+2=5}}</pre> || {{Colored Notice Box|#f00|2+2=5}}
 
  || <pre>{{Colored Notice Box|#f00|2+2=5}}</pre> || {{Colored Notice Box|#f00|2+2=5}}
 +
|-
 +
|| <pre>{{Colored Notice Box|#f00|1=2+2=5}}</pre> || {{Colored Notice Box|#f00|2+2{{=}}5}}
 
  |-
 
  |-
 
  || <pre>{{Colored Notice Box|#f00|2+2{{=}}5}}</pre> || {{Colored Notice Box|#f00|2+2{{=}}5}}
 
  || <pre>{{Colored Notice Box|#f00|2+2{{=}}5}}</pre> || {{Colored Notice Box|#f00|2+2{{=}}5}}

Latest revision as of 00:21, 6 December 2013

=


Most templates bork when an equals sign is included directly in an ordered parameter; with this template, now if you use {{=}} instead of = you'll be fine.

Compare the following:

Code Result
{{Colored Notice Box|#f00|2+2=5}}
{{Colored Notice Box|#f00|1=2+2=5}}
{{Colored Notice Box|#f00|2+2{{=}}5}}