Template:&/doc: Difference between revisions

Content deleted Content added
+TR
imported>FrozenPlum
m I think I inadvertently knocked off needed categories
 
(3 intermediate revisions by 2 users not shown)
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.
 
Line 7 ⟶ 9:
 
==Examples==
{| class="wikitable"
{|
! scope="col" | code
! code !! width=60px|gives
! scope="col" colspan="2" | gives
|-
|{{code|<nowiki>{{&|nbsp}}</nowiki>}}! scope="row" || {{tlx|&|nbsp}}
| colspan="2" | {{&|nbsp}}
|-
|{{code|<nowiki>{{&|bull}}</nowiki>}}! scope="row" || {{tlx|&|bull}}
| colspan="2" | {{&|bull}}
|-
|{{code|<nowiki>{{&|lt}}</nowiki>}}! scope="row" || {{tlx|&|lt}}
| colspan="2" | {{&|lt}}
|-
|{{code|<nowiki>{{&|#32}}</nowiki>}}! 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" | {{&|=}}
|{{code|<nowiki>{{&|=}}</nowiki>}} || {{&|=}} || <- the '=' is treated as a parameter value
|-
! scope="row" | {{tlx|&|{{!}}}}
|{{code|<nowiki>{{&||}}</nowiki>}} || {{&||}} || <- the '&#124;' is treated as a parameter value
| width="60px" | {{&||}}
|{{code|<nowiki>{{&||}}</nowiki>}} || {{&||}} || <- the '&#124;' is treated as a parameter value
|}
 
<noinclude>
<includeonly>
[[tr:Şablon:&/belge]]
<!-- Template categories/interwikis here -->
</noinclude>
[[Category:Templates]]
{{doc/end}}
[[Category:Formatting templates]]
</includeonly>