Template:Encodefirst: Difference between revisions

From Alpine Linux
(Trying a new template to hopefully deal with a problem.)
 
m (Delete this please.)
Tag: Replaced
 
Line 1: Line 1:
<includeonly>{{#switch:{{padleft:|1|{{{1|}}}}}|:=&#58;{{str right|{{{1}}}|1}}|;=&#59;{{str right|{{{1}}}|1}}|*=&#42;{{str right|{{{1}}}|1}}|#=&#35;{{str right|{{{1}}}|1}}|#default={{{1|}}}}}</includeonly>
{{Delete|I'm going to come up with something else.}}
<noinclude>
{{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&nbsp;<code>:</code>&nbsp;<code>;</code>&nbsp;<code>*</code>&nbsp;<code>#</code>. This can sometimes fix the issue in which a character may be processed as though it were at the beginning of a line.
 
== Usage ==
<pre>{{Encodefirst|<string>}}</pre>
 
== Examples ==
The output looks like the input whether a character is replaced or not.
 
<pre>{{Encodefirst|*Lisp}}</pre> produces: <pre>{{Encodefirst|*Lisp}}</pre></noinclude>

Latest revision as of 00:20, 29 December 2023

This material is proposed for deletion ...

I'm going to come up with something else. (Discuss)
Make sure no other pages link here and check the page's history before deleting.