Template:&: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(Created page with "{{#if:{{{1}}} |{{#if:{{{1|}}}|&{{#switch:{{{1}}} |!=<nowiki/>#33<!-- the nowiki/ is necessary for displaying the # sign--> |"=quot<!--"--> |#=<nowiki/>#35 |$=<nowiki/>...")
 
imported>FrozenPlum
m (Fix fandom inconsistent doc format and wanted page before making public again)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{1}}}
<onlyinclude><includeonly>{{#if:{{{1}}}<!--
|{{#if:{{{1|}}}|&amp;{{#switch:{{{1}}}
-->|{{#if:{{{1|}}}<!--
-->|&amp;{{#switch:{{{1}}}<!--
|!=<nowiki/>#33<!-- the nowiki/ is necessary for displaying the # sign-->
-->|!=<nowiki/>#33<!-- the nowiki/ is necessary for displaying the # sign--><!--
|"=quot<!--&#34;-->
-->|"=quot<!--&#34;--><!--
|#=<nowiki/>#35
|$=<nowiki/>#36
-->|#=<nowiki/>#35<!--
|%=<nowiki/>#37<!--&percent; doesn't work-->
-->|$=<nowiki/>#36<!--
|&=amp<!--&#38;-->
-->|%=<nowiki/>#37<!--&percent; doesn't work--><!--
|'=apos<!--&#39;-->
-->|&=amp<!--&#38;--><!--
|+=<nowiki/>#43<!--&add; doesn't work-->
-->|'=apos<!--&#39;--><!--
|<=lt<!--&#60;-->
-->|+=<nowiki/>#43<!--&add; doesn't work--><!--
|>=gt<!--&#62;-->
-->|<=lt<!--&#60;--><!--
|~=<nowiki/>#732<!--&tilde; doesn't work-->
-->|>=gt<!--&#62;--><!--
-->|~=<nowiki/>#732<!--&tilde; doesn't work--><!--
|{{#ifeq:{{#sub:{{{1}}}|0|1}}|#|<nowiki/>}}{{{1}}}}};<!--
-->|{{#forargs:|p|v|{{#if:{{#var:p}}{{#var:v}}||&amp;#61;<!--check if the equal symbol has been sent (&equal; doesn't work)-->}}}}<!--
-->|{{#ifeq:{{#sub:{{{1}}}|0|1}}|#|<nowiki/>}}{{{1}}}<!--
-->}}<!--
-->}};<!--
-->|{{#if:{{{2}}}||&amp;#124;}}<!--check if the pipe symbol has been sent
-->|{{#ifeq:{{{|}}}|{{{}}}<!--
-->|{{#if:{{{}}}||&amp;#61;<!--check if the equal symbol has been sent (&equal; doesn't work)-->}}<!--
-->}}<noinclude>{{doc}}[[Category:Formatting templates]]</noinclude><!--maybe a template for character constructs like O&#771; for other languages see https://www.w3schools.com/html/html_entities.asp-->
-->}}<!--
-->}}<!--
-->|{{#if:{{{2}}}||&amp;#124;}}<!--check if the pipe symbol has been sent
-->}}</includeonly></onlyinclude>
{{Documentation}}
<!--maybe a template for character constructs like O&#771; for other languages see https://www.w3schools.com/html/html_entities.asp-->

Latest revision as of 05:39, 29 March 2022

[view | edit | purge]Template Documentation

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
[view | edit | purge]The above documentation is transcluded from Template:&/doc.