Template:&/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(+TR)
(→‎Examples: Use `class="wikitable"` and {{tlx}})
Line 7: Line 7:


==Examples==
==Examples==
{| class="wikitable"
{|
! scope="col" | code
! code !! width=60px|gives
! scope="col" colspan="2" | gives
|-
|-
|{{code|<nowiki>{{&|nbsp}}</nowiki>}} || {{&|nbsp}}
! scope="row" | {{tlx|&|nbsp}}
| colspan="2" | {{&|nbsp}}
|-
|-
|{{code|<nowiki>{{&|bull}}</nowiki>}} || {{&|bull}}
! scope="row" | {{tlx|&|bull}}
| colspan="2" | {{&|bull}}
|-
|-
|{{code|<nowiki>{{&|lt}}</nowiki>}} || {{&|lt}}
! scope="row" | {{tlx|&|lt}}
| colspan="2" | {{&|lt}}
|-
|-
|{{code|<nowiki>{{&|#32}}</nowiki>}} || {{&|#32}}
! scope="row" | {{tlx|&|#32}}
| colspan="2" | {{&|#32}}
|-
|-
! scope="row" | {{tlx|&|<}}
|<code><nowiki>{{&|<}}</nowiki></code> || {{&|<}}
| colspan="2" | {{&|<}}
|-
|-
! scope="row" | {{tlx|&|{{=}}}}
|{{code|<nowiki>{{&|=}}</nowiki>}} || {{&|=}} || <- the '=' is treated as a parameter value
| width="60px" | {{&|=}}
| <- the '=' is treated as a parameter value
|-
|-
! scope="row" | {{tlx|&|{{!}}}}
|{{code|<nowiki>{{&||}}</nowiki>}} || {{&||}} || <- the '&#124;' is treated as a parameter value
| width="60px" | {{&||}}
| <- the '&#124;' is treated as a parameter value
|}
|}
<includeonly>
<noinclude>
<!-- Categories/interwiki for the template -->
[[Category:Formatting templates]]
[[tr:Şablon:&]]
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation -->
[[tr:Şablon:&/belge]]
[[tr:Şablon:&/belge]]
</noinclude>
</noinclude>

Revision as of 12:57, 12 June 2021

Template:Doc/start 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

tr:Şablon:&/belge

Template:Doc/end