Template:&/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(→‎Examples: Use `class="wikitable"` and {{tlx}})
imported>FrozenPlum
m (I think I inadvertently knocked off needed categories)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->

Any [[wikipedia:List of XML and HTML character entity references|HTML character entity]] name or number recognized by the wiki can be passed as an argument, and its HTML character entity reference (<code>&''name'';</code> or <code>&#''number'';</code>) will be returned. Without this template, <code>&amp;amp;''name'';</code> or <code>&amp;amp;#''number'';</code> would need to be used.
Any [[wikipedia:List of XML and HTML character entity references|HTML character entity]] name or number recognized by the wiki can be passed as an argument, and its HTML character entity reference (<code>&''name'';</code> or <code>&#''number'';</code>) will be returned. Without this template, <code>&amp;amp;''name'';</code> or <code>&amp;amp;#''number'';</code> would need to be used.


Line 34: Line 36:
| <- the '&#124;' is treated as a parameter value
| <- the '&#124;' is treated as a parameter value
|}
|}

<includeonly>
<includeonly>
<!-- Template categories/interwikis here -->
<!-- Categories/interwiki for the template -->
[[Category:Templates]]
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</includeonly>
[[tr:Şablon:&]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation -->
[[tr:Şablon:&/belge]]
</noinclude>
{{doc/end}}

Latest revision as of 22:37, 29 March 2022

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

Any HTML character entity name or number recognized by the wiki can be passed as an argument, and its HTML character entity reference (&name; or &#number;) will be returned. Without this template, &amp;name; or &amp;#number; would need to be used.

A keyboard character can be sent instead of the entity name, however not all characters have been coded.

This template will be used most predominately in the DPL Manual.

Examples

code gives
{{&|nbsp}} &nbsp;
{{&|bull}} &bull;
{{&|lt}} &lt;
{{&|#32}} &
  1. 32;
{{&|<}} &lt;
{{&|=}} &#61; <- the '=' is treated as a parameter value
{{&||}} &#124; <- the '|' is treated as a parameter value