<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/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="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Template%3AEncodefirst%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:Encodefirst/doc&amp;action=history"/>
	<updated>2026-04-28T10:19:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Template:Encodefirst/doc&amp;diff=11089374&amp;oldid=prev</id>
		<title>imported&gt;PrimeHunter: /* Examples */ {{la}} was fixed by using this template so change example to {{Article talk links}} which is still broken and explain the difference. Add a test link for the broken example without disrupting this page with broken code</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Template:Encodefirst/doc&amp;diff=11089374&amp;oldid=prev"/>
		<updated>2025-07-14T13:46:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples: &lt;/span&gt; {{la}} was fixed by using this template so change example to {{Article talk links}} which is still broken and explain the difference. Add a test link for the broken example without disrupting this page with broken code&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>imported&gt;PrimeHunter</name></author>
	</entry>
</feed>