Template:&: Difference between revisions
Content added Content deleted
m (Prepare for cleaner diff) |
imported>FrozenPlum m (Fix fandom inconsistent doc format and wanted page before making public again) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#if:{{{1}}}<!-- |
<onlyinclude><includeonly>{{#if:{{{1}}}<!-- |
||
-->|{{#if:{{{1|}}}<!-- |
-->|{{#if:{{{1|}}}<!-- |
||
-->|&{{#switch:{{{1}}} |
-->|&{{#switch:{{{1}}}<!-- |
||
|!=<nowiki/>#33<!-- the nowiki/ is necessary for displaying the # sign--> |
-->|!=<nowiki/>#33<!-- the nowiki/ is necessary for displaying the # sign--><!-- |
||
|"=quot<!--"--> |
-->|"=quot<!--"--><!-- |
||
|#=<nowiki/>#35 |
-->|#=<nowiki/>#35<!-- |
||
|$=<nowiki/>#36 |
-->|$=<nowiki/>#36<!-- |
||
|%=<nowiki/>#37<!--&percent; doesn't work--> |
-->|%=<nowiki/>#37<!--&percent; doesn't work--><!-- |
||
|&=amp<!--&--> |
-->|&=amp<!--&--><!-- |
||
|'=apos<!--'--> |
-->|'=apos<!--'--><!-- |
||
|+=<nowiki/>#43<!--&add; doesn't work--> |
-->|+=<nowiki/>#43<!--&add; doesn't work--><!-- |
||
|<=lt<!--<--> |
-->|<=lt<!--<--><!-- |
||
|>=gt<!-->--> |
-->|>=gt<!-->--><!-- |
||
|~=<nowiki/>#732<!--˜ doesn't work--> |
-->|~=<nowiki/>#732<!--˜ doesn't work--><!-- |
||
|{{#ifeq:{{#sub:{{{1}}}|0|1}}|#|<nowiki/>}}{{{1}}} |
-->|{{#ifeq:{{#sub:{{{1}}}|0|1}}|#|<nowiki/>}}{{{1}}}<!-- |
||
-->}};<!-- |
|||
⚫ | |||
-->}}<!-- |
-->|{{#ifeq:{{{|}}}|{{{}}}<!-- |
||
-->|{{#if:{{{ |
-->|{{#if:{{{}}}||&#61;<!--check if the equal symbol has been sent (&equal; doesn't work)-->}}<!-- |
||
-->}}< |
-->}}<!-- |
||
-->}}<!-- |
|||
{{doc}} |
|||
⚫ | |||
[[Category:Formatting templates]] |
|||
-->}}</includeonly></onlyinclude> |
|||
[[tr:Şablon:&]] |
|||
{{Documentation}} |
|||
<!--maybe a template for character constructs like Õ for other languages see https://www.w3schools.com/html/html_entities.asp--> |
<!--maybe a template for character constructs like Õ for other languages see https://www.w3schools.com/html/html_entities.asp--> |
Latest revision as of 05:39, 29 March 2022
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, &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 |
[view | edit | purge]The above documentation is transcluded from Template:&/doc.