Template:Encodefirst

From Alpine Linux
Revision as of 00:05, 29 December 2023 by Zcrayfish (talk | contribs) (Trying a new template to hopefully deal with a problem.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template Documentation for Encodefirst

This page is a template and should only be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

Older version of the Encodefirst template from wikipedia.

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 in which 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:

{{Encodefirst|*Lisp}}