Toggle menu
14
236
69
27.4K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 04:25, 17 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{High-use}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> This template replaces the first character of the argument with its HTML entity if it is one of four wiki markup characters <code>:</code> <code>;</code> <code>*</code> <code>#</code>. This can sometimes fix the issue at Help:Template where a charact...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:High-use

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 where a character may be processed as though it were at the beginning of a line.

Usage

{{Encodefirst|<string>}}

Examples

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, {{la}} fails as of August 2017 if its argument starts with *.

{{la|*Lisp}} causes the asterisk to be processed as list markup and produces broken display.

{{la|{{Encodefirst|*Lisp}}}} works correctly:

*Lisp (edit | talk | history | protect | delete | links | watch | logs | views)