<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AEncodefirst%2Fdoc</id>
	<title>Template:Encodefirst/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AEncodefirst%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Encodefirst/doc&amp;action=history"/>
	<updated>2026-07-14T10:10:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:Encodefirst/doc&amp;diff=12447&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;{{Documentation subpage}} {{High-use}} &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt;  This template replaces the first character of the argument with its HTML entity if it is one of four wiki markup characters&amp;nbsp;&lt;code&gt;:&lt;/code&gt;&amp;nbsp;&lt;code&gt;;&lt;/code&gt;&amp;nbsp;&lt;code&gt;*&lt;/code&gt;&amp;nbsp;&lt;code&gt;#&lt;/code&gt;. This can sometimes fix the issue at Help:Template#Problems and workarounds where a charact...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Encodefirst/doc&amp;diff=12447&amp;oldid=prev"/>
		<updated>2026-06-18T10:31:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{High-use}} &amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt;  This template replaces the first character of the argument with its &lt;a href=&quot;/w/index.php?title=HTML_entity&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;HTML entity (page does not exist)&quot;&gt;HTML entity&lt;/a&gt; if it is one of four wiki markup characters &amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt;. This can sometimes fix the issue at &lt;a href=&quot;/w/index.php?title=Help:Template&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Template (page does not exist)&quot;&gt;Help:Template#Problems and workarounds&lt;/a&gt; where a charact...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template replaces the first character of the argument with its [[HTML entity]] if it is one of four wiki markup characters&amp;amp;nbsp;&amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt;&amp;amp;nbsp;&amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;&amp;amp;nbsp;&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&amp;amp;nbsp;&amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt;. 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.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Tlx|Encodefirst|&amp;lt;string&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
The output looks like the input whether a character is replaced or not.&lt;br /&gt;
&lt;br /&gt;
{{Tlx|Encodefirst|*Lisp}} produces: {{Encodefirst|*Lisp}}&lt;br /&gt;
&lt;br /&gt;
But the output will behave differently from the input in some situations where it is processed. For example, {{tl|Article talk links}} fails as of 2025 if its argument starts with &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;. Some other templates like {{tl|Article links}} have been modified ([https://en.wikipedia.org/w/index.php?title=Template:Article_links&amp;amp;diff=prev&amp;amp;oldid=1164482475 diff]) to automatically use {{tl|encodefirst}} so the caller doesn&amp;#039;t have to do it. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Article talk links|*Lisp}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; causes the asterisk to be processed as [[Help:Wiki markup#Lists|list markup]] and produces broken display ([{{fullurl:Special:ExpandTemplates|wpInput=%7B%7BArticle%20talk%20links%7C*Lisp%7D%7D}} test]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Article talk links|{{Encodefirst|*Lisp}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; works correctly:&lt;br /&gt;
&lt;br /&gt;
{{Article talk links|{{Encodefirst|*Lisp}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Text-specific formatting and function templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
</feed>