Difference between revisions of "Template:!!/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m (1 revision: Full import of Wikia (that might sting a bit))
 
(Replaced documentation)
Line 1: Line 1:
;Description
+
This is a [[Help:Templates|template]] that allows one to encode "<code>||</code>" (two pipes or vertical bars) within template parameters.  If it is '''unnecessary''' to get a "<code>||</code>", it is better to use "<code>&amp;#124;&amp;#124;</code>".  However the "<code>||</code>" delimiter for a [[Help:Tables|table]] has to be escaped by a {{tlx|!!}} template if it is used within a template.
:This template is used for creating two pipes, in [[Help:Table|wikitables]] contained in [[Help:Parser functions|Parser functions]].
+
 
;Syntax
+
== Notes ==
:Insert this template using <code>{{t|!!}}</code>
+
 
;See also
+
There is usually no such problem with "<code>!!</code>" (exclamation marks).  This problem only affects "<code>||</code>" (vertical bars) in conjunction with the [https://meta.wikimedia.org/wiki/Help:Parameter_default Parameter default] mechanism within tables. However, in table rows starting with "<code>!</code>" there can be problems with "<code>!!</code>" being interpreted as a cell separator. Try replacing it with "<code>&amp;#33;&amp;#33;</code>".
:[[m:Template:!!|Template:!!]] on Meta-Wiki.
 
  
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 14:42, 4 August 2019

This is a template that allows one to encode "||" (two pipes or vertical bars) within template parameters. If it is unnecessary to get a "||", it is better to use "&#124;&#124;". However the "||" delimiter for a table has to be escaped by a {{!!}} template if it is used within a template.

Notes

There is usually no such problem with "!!" (exclamation marks). This problem only affects "||" (vertical bars) in conjunction with the Parameter default mechanism within tables. However, in table rows starting with "!" there can be problems with "!!" being interpreted as a cell separator. Try replacing it with "&#33;&#33;".