Template:Pipe/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Documentation subpage for Template:Pipe)
 
m (→‎top: Unicodifying)
Line 7: Line 7:
This template uses the {{mono|<nowiki>&amp;#124;</nowiki>}} decimal code for the vertical bar (or pipe character) so that its usage doesn't cause problems when it is used inside a [[Help:Templates|template]]. <code>{{tl|Pipe}}</code> is easier to remember and clearer than an unadorned {{mono|<nowiki>&amp;#124;</nowiki>}}.
This template uses the {{mono|<nowiki>&amp;#124;</nowiki>}} decimal code for the vertical bar (or pipe character) so that its usage doesn't cause problems when it is used inside a [[Help:Templates|template]]. <code>{{tl|Pipe}}</code> is easier to remember and clearer than an unadorned {{mono|<nowiki>&amp;#124;</nowiki>}}.


Please do not use the Unicode {{mono|<nowiki>&amp;#448;</nowiki>}} (which produces &#448;) since that does not work in all web browsers. It is also slightly smaller than &#124;.
Please do not use the Unicode {{mono|<nowiki>&amp;#448;</nowiki>}} (which produces ǀ) since that does not work in all web browsers. It is also slightly smaller than &#124;.


=== See also ===
=== See also ===

Revision as of 14:36, 11 January 2024

Edit-copy.png
This is a documentation subpage for Template:Pipe.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This is the {{pipe}} meta-template. It looks like this: |

This template uses the &#124; decimal code for the vertical bar (or pipe character) so that its usage doesn't cause problems when it is used inside a template. {{Pipe}} is easier to remember and clearer than an unadorned &#124;.

Please do not use the Unicode &#448; (which produces ǀ) since that does not work in all web browsers. It is also slightly smaller than |.

See also

  • {{!}} - A magic word to encode "|" within template parameters or wikitables. Note that this one looks the same but has a very different meaning for the MediaWiki parser and thus has different functionality.