659
edits
Carandraug (talk | contribs) (→Comparison with {{pipe}}: fix section title) |
Carandraug (talk | contribs) (use {{!}} for Code template) |
||
Line 23: | Line 23: | ||
{{Codeline|<nowiki>{{pipe}}</nowiki>}} is not a duplicate of {{Codeline|<nowiki>{{!}}</nowiki>}}. These are two different templates with very different functionality. {{Codeline|<nowiki>{{pipe}}</nowiki>}} inserts the code {{Codeline|&#124;}}, which does render as a pipe in the web browsers. But it does not interfere with the MediaWiki parser. Thus it can be used in text inside wikitables and parserfunctions without causing any altered function of them. {{Codeline|<nowiki>{{!}}</nowiki>}} inserts an actual pipe character that is parsed by the MediaWiki parser. Thus it does have effect inside wikitables. | {{Codeline|<nowiki>{{pipe}}</nowiki>}} is not a duplicate of {{Codeline|<nowiki>{{!}}</nowiki>}}. These are two different templates with very different functionality. {{Codeline|<nowiki>{{pipe}}</nowiki>}} inserts the code {{Codeline|&#124;}}, which does render as a pipe in the web browsers. But it does not interfere with the MediaWiki parser. Thus it can be used in text inside wikitables and parserfunctions without causing any altered function of them. {{Codeline|<nowiki>{{!}}</nowiki>}} inserts an actual pipe character that is parsed by the MediaWiki parser. Thus it does have effect inside wikitables. | ||
Basically, {{Codeline|<nowiki>{{!}}</nowiki>}} is used to delay parsing by the pipe for ''one'' round so that a wikitable pipe can be placed inside and controlled by for instance an #if statement. | Basically, {{Codeline|<nowiki>{{!}}</nowiki>}} is used to delay parsing by the pipe for ''one'' round so that a wikitable pipe can be placed inside and controlled by for instance an #if statement. If you are using the {{Codeline|Code}} template, you will want to use {{Codeline|<nowiki>{{!}}</nowiki>}}. |