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))
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
;Description
+
==Description==
:This template is used for creating two pipes, in [[Help:Table|wikitables]] contained in [[Help:Parser functions|Parser functions]].
+
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.
;Syntax
 
:Insert this template using <code>{{t|!!}}</code>
 
;See also
 
:[[m:Template:!!|Template:!!]] on Meta-Wiki.
 
  
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
==Notes==
 +
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>".
 +
 
 +
<includeonly>[[Category:General wiki templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 03:59, 15 January 2021

Description[edit]

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[edit]

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;".