Cèṭa'an:Encodefirst
Robâ
{{{1}}}
TemplateStyles'
fails as of August 2017 if its argument starts with
src
attribute must not be empty.This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template replaces the first character of the argument with its HTML entity if it is one of four wiki markup characters :
;
*
#
. This can sometimes fix the issue at Help:Template#Problems and workarounds where a character may be processed as though it were at the beginning of a line.
Usage
[beccè' sombher]{{Encodefirst|<string>}}
Examples
[beccè' sombher]The output looks like the input whether a character is replaced or not.
{{Encodefirst|*Lisp}}
produces: *Lisp
But the output will behave differently from the input in some situations where it is processed. For example,
- REEDIRECT Template:Template link
src
attribute must not be empty.This page is a redirect. The following categories are used to track and monitor this redirect:
|
*
.
{{la|*Lisp}}
causes the asterisk to be processed as list markup and produces broken display.
{{la|{{Encodefirst|*Lisp}}}}
works correctly: