Шаблон:=: различия между версиями

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Нет описания правки
 
(Интервики, обновил описание)
Строка 2: Строка 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}}
  |}
  |}


[[en:Template:=]]
[[Category:Шаблоны]]
[[Category:Шаблоны]]

Версия от 01:19, 4 августа 2018

=


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}}