Template:&/doc: Difference between revisions
Content added Content deleted
(Created page with "{{doc/start}} Any HTML character entity name or number recognized by the wiki can be passed as an argument, and...") |
imported>FrozenPlum m (I think I inadvertently knocked off needed categories) |
||
(4 intermediate revisions by 3 users 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;''name'';</code> or <code>&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;''name'';</code> or <code>&amp;#''number'';</code> would need to be used. |
||
Line 7: | Line 9: | ||
==Examples== |
==Examples== |
||
{| class="wikitable" |
|||
{| |
|||
! scope="col" | code |
|||
! code !! width=60px|gives |
|||
! scope="col" colspan="2" | gives |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|nbsp}} |
|||
| colspan="2" | {{&|nbsp}} |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|bull}} |
|||
| colspan="2" | {{&|bull}} |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|lt}} |
|||
| colspan="2" | {{&|lt}} |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|#32}} |
|||
| colspan="2" | {{&|#32}} |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|<}} |
|||
|<code><nowiki>{{&|<}}</nowiki></code> || {{&|<}} |
|||
| colspan="2" | {{&|<}} |
|||
|- |
|- |
||
! scope="row" | {{tlx|&|{{=}}}} |
|||
⚫ | |||
| width="60px" | {{&|=}} |
|||
⚫ | |||
|- |
|- |
||
! scope="row" | {{tlx|&|{{!}}}} |
|||
⚫ | |||
| width="60px" | {{&||}} |
|||
⚫ | |||
|} |
|} |
||
{{doc/end}} |
|||
<includeonly> |
|||
<!-- Template categories/interwikis here --> |
|||
[[Category:Templates]] |
|||
[[Category:Formatting templates]] |
|||
</includeonly> |
Latest revision as of 22:37, 29 March 2022
[purge]
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more informationAny 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, &name;
or &#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}}
|
| |
{{&|bull}}
|
• | |
{{&|lt}}
|
< | |
{{&|#32}}
|
&
| |
{{&|<}}
|
< | |
{{&|=}}
|
= | <- the '=' is treated as a parameter value |
{{&||}}
|
| | <- the '|' is treated as a parameter value |