Difference between revisions of "Template:Hungarian settlement rank/doc"

From blackwiki
Jump to navigation Jump to search
imported>SimonTrew
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
 
Translates [[Hungarian language|Hungarian-language]] words used to denote the size of a settlement into English. The input is not case-sensitive. The output has an initial capital (which can be easily made lowercase with <code><nowiki>{{lc:}}</nowiki></code>). Valid values are:
 
Translates [[Hungarian language|Hungarian-language]] words used to denote the size of a settlement into English. The input is not case-sensitive. The output has an initial capital (which can be easily made lowercase with <code><nowiki>{{lc:}}</nowiki></code>). Valid values are:
  
{{table
+
{| class="wikitable sortable"
|type = class="wiktable sortable"
+
! Hungarian "rang" !! English "rank"
|hdrs = Hungarian "rang" !! English "rank"
+
|-
|row1 = község            {{!!}} Village
+
| község            || Village
|row2 = nagyközség        {{!!}} Town
+
|-
|row3 = megyeszékhely    {{!!}} County town
+
| nagyközség        || Town
|row4 = város            {{!!}} City
+
|-
|row5 = megyei jogú város {{!!}} City with county rights
+
| megyeszékhely    || County town
|row6 = főváros          {{!!}} Capital city (Essentially, [[Budapest]])
+
|-
|row7 = kisterség        {{!!}} Subregion
+
| város            || City
|row8 = megye            {{!!}} County
+
|-
|row9 = régió            {{!!}} Region
+
| megyei jogú város || City with county rights
}}
+
|-
 +
| főváros          || Capital city (Essentially, [[Budapest]])
 +
|-
 +
| kisterség        || Subregion
 +
|-
 +
| megye            || County
 +
|-
 +
| régió            || Region
 +
|}
  
 
These values may also be supplied as input in <code><nowiki>[[square brackets]]</nowiki></code>. This is allowed because they are frequently so written in the Hugarian Wikipédia, so it allows easy copy and paste. The English Wikipedia does not have these topics as such, so it needs to be "unlinked". By allowing the square brackets, this can be done automatically by an English template that transcludes this template. The output is ''not'' then surrounded in square brackets.
 
These values may also be supplied as input in <code><nowiki>[[square brackets]]</nowiki></code>. This is allowed because they are frequently so written in the Hugarian Wikipédia, so it allows easy copy and paste. The English Wikipedia does not have these topics as such, so it needs to be "unlinked". By allowing the square brackets, this can be done automatically by an English template that transcludes this template. The output is ''not'' then surrounded in square brackets.
Line 41: Line 49:
 
* [[Template:Hungarian region name]]
 
* [[Template:Hungarian region name]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Hungary geographical name conversion templates]]
 
[[Category:Hungary geographical name conversion templates]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 17:06, 25 April 2020

Usage

{{{Hungarian settlement rank name|rang}}

Translates Hungarian-language words used to denote the size of a settlement into English. The input is not case-sensitive. The output has an initial capital (which can be easily made lowercase with {{lc:}}). Valid values are:

Hungarian "rang" English "rank"
község Village
nagyközség Town
megyeszékhely County town
város City
megyei jogú város City with county rights
főváros Capital city (Essentially, Budapest)
kisterség Subregion
megye County
régió Region

These values may also be supplied as input in [[square brackets]]. This is allowed because they are frequently so written in the Hugarian Wikipédia, so it allows easy copy and paste. The English Wikipedia does not have these topics as such, so it needs to be "unlinked". By allowing the square brackets, this can be done automatically by an English template that transcludes this template. The output is not then surrounded in square brackets.

Example

[[Telekes]] is a {{lc:{{Hungarian settlement rank name|község}}}} in [[{{Hungarian county name|Vas}}]].

produces:

Telekes is a village in Vas County.

Maintenance

The choice to include an initial capital letter in the output is made from the fact it is easier to remove them it than to insert it. It also matches the standard case conventions for Wikipedia page names.

This template is actively maintained by User:SimonTrew. To request a change, please write a message at his talk page. Discussion can continue on the template talk page.

See also