"ഫലകം:CountryPrefixThe" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
two more |
and another |
||
വരി 1: | വരി 1: | ||
{{#switch: {{{1|}}} |
{{#switch: {{{1|}}} |
||
| Bahamas | British Virgin Islands | Central African Republic | Cayman Islands | Comoros| Cook Islands | Democratic Republic of the Congo | Czech Republic | Dominican Republic | Falkland Islands | Faroe Islands | Federated States of Micronesia | Gambia | Holy See |Isle of Man | Kingdom of Naples | Kingdom of the Two Sicilies | Marshall Islands | Netherlands | Netherlands Antilles | Northern Mariana Islands | Ottoman Empire | State of Palestine | Philippines | Republic of the Congo | Republic of Macedonia | Republic of Venice | Sahrawi Arab Democratic Republic | Solomon Islands | Soviet Union | Turks and Caicos Islands | United Arab Emirates | United Kingdom | United States | United States Virgin Islands = the {{{1|}}} |
| Bahamas | British Virgin Islands | Central African Republic | Cayman Islands | Comoros| Cook Islands | Democratic Republic of the Congo | Czech Republic | Dominican Republic | Falkland Islands | Faroe Islands | Federated States of Micronesia | Gambia | Holy See | Isle of Man | Kingdom of Naples | Kingdom of the Two Sicilies | Marshall Islands | Netherlands | Netherlands Antilles | Northern Mariana Islands | Ottoman Empire | State of Palestine | Philippines | Republic of the Congo | Republic of Ireland | Republic of Macedonia | Republic of Venice | Sahrawi Arab Democratic Republic | Solomon Islands | Soviet Union | Turks and Caicos Islands | United Arab Emirates | United Kingdom | United States | United States Virgin Islands = the {{{1|}}} |
||
|#default = {{{1|}}} |
|#default = {{{1|}}} |
||
}}<noinclude> |
}}<noinclude> |
10:43, 15 നവംബർ 2018-നു നിലവിലുണ്ടായിരുന്ന രൂപം
This template is used on approximately 1,14,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This is a helper template, use by other templates.
Takes a country name, and returns the name prefixed by "the" if that is required in running text. Otherwise just returns the country name.
Optionally, returns just the word "the", if applicable.
In either case, the word "the" may optionally be returned in capitalised form.
Usage
{{CountryPrefixThe|Countryname}}
{{CountryPrefixThe|Countryname|onlythe=yes}}
{{CountryPrefixThe|Countryname|onlythe=yes}}
{{CountryPrefixThe|Countryname|capitalised=yes}}
{{CountryPrefixThe|Countryname|capitalised=yes|onlythe=yes}}
Examples
- No parameters
{{CountryPrefixThe|Kenya}}
→ Kenya{{CountryPrefixThe|Philippines}}
→ the Philippines
- with "onlythe=yes"
{{CountryPrefixThe|Kenya|onlythe=yes}}
→ Kenya{{CountryPrefixThe|Philippines|onlythe=yes}}
→ the Philippines
- with "capitalised=yes"
{{CountryPrefixThe|Kenya|capitalised=yes}}
→ Kenya{{CountryPrefixThe|Philippines|capitalised=yes}}
→ the Philippines
Note that the alternative spelling "capitalized=yes" has the same effect
- with both "onlythe=yes" and "capitalised=yes"
{{CountryPrefixThe|Kenya|onlythe=yes|capitalised=yes}}
→ Kenya{{CountryPrefixThe|Philippines|onlythe=yes|capitalised=yes}}
→ the Philippines
Only "the"
The optional parameter "onlythe=yes" allow control of whether the countryname is included in the returned value.
There are some situations where the definite article is needed alone, e.g. when the countryname is to be linked but the word "the" should not be linked.
e.g.: products were exported to [[{{{country}}}]]
If {{{country}}}=United States
, then we get a grammatically incorrect result:
products were exported to [[{{{country}}}]]"
→ products were exported to United States
Alternatively, if {{{country}}}=United States
and we use {{CountryPrefixThe}}, then then word the is incorrectly part of the linked text
products were exported to [[{{CountryPrefixThe|{{{country}}}}}]]
→ products were exported to the United States
The solution is to use the onlythe=yes
parameter:
"products were exported to {{CountryPrefixThe|{{{country}}}|onlythe=yes}} [[{{country}}]]"
→ products were exported to the United States
Full parameter list
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 {{Yesno}}, which interprets as "yes" case-insensitive forms of Yes
, y
, true
, and 1
{{yesno | | capitalised = | onlythe = }}
TemplateData
TemplateData for CountryPrefixThe
This template takes a country name, and returns the name prefixed by 'the' if that is required in running text. Otherwise just returns the country name.
ചരം | വിവരണം | തരം | സ്ഥിതി | |
---|---|---|---|---|
Input value | 1 | The value to be evaluated | പദം | ആവശ്യമാണ് |
Output only the word 'the' | onlythe | Outputs only the word 'the' when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1' | പദം | ഐച്ഛികം |
Capitalise 'the'? | capitalised | Capitalises the word 'the' as 'The' when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1' | പദം | ഐച്ഛികം |
Capitalize 'the'? | capitalized | Synonym of 'capitalised'. Capitalises the word 'the' as 'The' when the input value is a case-insensitive forms of 'Yes', 'Y', 'True' or '1' | പദം | ഐച്ഛികം |
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:CountryPrefixThe/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |