<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACountryPrefixThe%2Fdoc</id>
	<title>Template:CountryPrefixThe/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACountryPrefixThe%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:CountryPrefixThe/doc&amp;action=history"/>
	<updated>2026-04-04T13:51:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:CountryPrefixThe/doc&amp;diff=34301&amp;oldid=prev</id>
		<title>imported&gt;GKFX: Remove {{trim leading}}</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:CountryPrefixThe/doc&amp;diff=34301&amp;oldid=prev"/>
		<updated>2021-04-02T21:07:37Z</updated>

		<summary type="html">&lt;p&gt;Remove {{trim leading}}&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|54622 }}&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;
This is a helper template, use by other templates.&lt;br /&gt;
&lt;br /&gt;
Takes a country name, and returns the name prefixed by &amp;quot;the&amp;quot; if that is required in running text.  Otherwise just returns the country name.&lt;br /&gt;
&lt;br /&gt;
Optionally, returns just the word &amp;quot;the&amp;quot;, if applicable.&lt;br /&gt;
&lt;br /&gt;
In either case, the word &amp;quot;the&amp;quot; may optionally be returned in capitalised form.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Countryname}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Countryname|onlythe=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Countryname|onlythe=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Countryname|capitalised=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Countryname|capitalised=yes|onlythe=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
; No parameters&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Kenya}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Kenya}}&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Philippines}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Philippines}}&lt;br /&gt;
&lt;br /&gt;
; with &amp;quot;onlythe=yes&amp;quot;&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Kenya|onlythe=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Kenya|onlythe=yes}}&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Philippines|onlythe=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Philippines|onlythe=yes}}&lt;br /&gt;
&lt;br /&gt;
; with &amp;quot;capitalised=yes&amp;quot;&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Kenya|capitalised=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Kenya|capitalised=yes}}&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Philippines|capitalised=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Philippines|capitalised=yes}}&lt;br /&gt;
&amp;#039;&amp;#039;Note that the alternative spelling &amp;quot;capitalized=yes&amp;quot; has the same effect&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
; with both &amp;quot;onlythe=yes&amp;quot; and &amp;quot;capitalised=yes&amp;quot;&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Kenya|onlythe=yes|capitalised=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|Kenya|onlythe=yes|capitalised=yes}}&lt;br /&gt;
# &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CountryPrefixThe|Philippines|onlythe=yes|capitalised=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{CountryPrefixThe|onlythe=yes|Philippines|capitalised=yes}}&lt;br /&gt;
&lt;br /&gt;
==== Only &amp;quot;the&amp;quot; ====&lt;br /&gt;
The optional parameter &amp;quot;onlythe=yes&amp;quot; allow control of whether the countryname is included in the returned value.&lt;br /&gt;
&lt;br /&gt;
There are some situations where the definite article is needed alone, e.g. when the countryname is to be linked but the word &amp;quot;the&amp;quot; should not be linked.&lt;br /&gt;
&lt;br /&gt;
e.g.: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;products were exported to [[{{{country}}}]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{country}}}=United States&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, then we get a grammatically incorrect result:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;products were exported to [[{{{country}}}]]&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → products were exported to [[United States]]&lt;br /&gt;
&lt;br /&gt;
Alternatively, if &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{country}}}=United States&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and we use {{tl|CountryPrefixThe}}, then then word the is incorrectly part of the linked text&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;products were exported to [[{{CountryPrefixThe|{{{country}}}}}]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → products were exported to [[the United States]]&lt;br /&gt;
&lt;br /&gt;
The solution is to use the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;onlythe=yes&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; parameter:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;quot;products were exported to {{CountryPrefixThe|{{{country}}}|onlythe=yes}} [[{{country}}]]&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;  → products were exported to the [[United States]]&lt;br /&gt;
== Full parameter list ==&lt;br /&gt;
Unnamed parameter 1= the input value to be evaluated. The other parameters (all named, all optional), set options. The value of the options is calculated by {{tl|Yesno}}, which interprets as &amp;quot;yes&amp;quot; case-insensitive forms of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Yes&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;y&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;true&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;1&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{yesno&lt;br /&gt;
|&lt;br /&gt;
| capitalised =&lt;br /&gt;
| onlythe = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;This template takes a country name, and returns the name prefixed by &amp;#039;the&amp;#039; if that is required in running text. Otherwise just returns the country name.&amp;quot;,&lt;br /&gt;
        &amp;quot;params&amp;quot;: {&lt;br /&gt;
                &amp;quot;1&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Input value&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;The value to be evaluated&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;onlythe&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Output only the word &amp;#039;the&amp;#039;&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Outputs only the word &amp;#039;the&amp;#039; when the input value is a case-insensitive forms of &amp;#039;Yes&amp;#039;, &amp;#039;Y&amp;#039;, &amp;#039;True&amp;#039; or &amp;#039;1&amp;#039;&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;capitalised&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Capitalise &amp;#039;the&amp;#039;?&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Capitalises the word &amp;#039;the&amp;#039; as &amp;#039;The&amp;#039; when the input value is a case-insensitive forms of &amp;#039;Yes&amp;#039;, &amp;#039;Y&amp;#039;, &amp;#039;True&amp;#039; or &amp;#039;1&amp;#039;&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                },&lt;br /&gt;
                &amp;quot;capitalized&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;Capitalize &amp;#039;the&amp;#039;?&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;Synonym of &amp;#039;capitalised&amp;#039;. Capitalises the word &amp;#039;the&amp;#039; as &amp;#039;The&amp;#039; when the input value is a case-insensitive forms of &amp;#039;Yes&amp;#039;, &amp;#039;Y&amp;#039;, &amp;#039;True&amp;#039; or &amp;#039;1&amp;#039;&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: false&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
* {{ml|ustring|gsub}} can be used to strip the &amp;quot;the&amp;quot; :&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:ustring|gsub|the United Kingdom|^the ?|}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:ustring|gsub|the United Kingdom|^the ?|}}&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:ustring|gsub|France|^the ?|}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:ustring|gsub|France|^the ?|}}&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:Wikipedia classification templates]]&lt;br /&gt;
[[Category:Wikipedia formatting and function templates]]&lt;br /&gt;
[[Category:Country templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;GKFX</name></author>
	</entry>
</feed>