Permanently protected template

Template:Uir

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

This regional userbox template will display a userbox describing your association with a region and will declare up to seven user regional categories when placed on your user page. This template is most commonly invoked by one of the User in Region templates which supply the parameters for this template to function as a metatemplate. The complete syntax is:

{{uir|option=|region=|simple=|inflect=|the=|title=|adj=|demonym=|an=|main=|sub=|group=|member=|cres=|ccit=|cint=|cpro|res=|cit=|int=|pro=|nocat=|nation=|nthe=|nwp=|cnres=|cncit=|cnint=|nres=|ncit=|nint=|align=|color=|image=|width=|border-c=|id=|id-a=|id-c=|id-w=|info=|info-c=|info-fc=|info-lh=|info-s=|wp-s=}}

where:

  • option= the option number (default=1, see the Options table below)
  • region= the required region name as listed in Wikipedia
  • simple= the simplified form of the region name if different (default={{{region|}}})
  • inflect= the inflected form of the region name if different (default={{{region|}}})
  • the=the places a "the " before the region name (default=null)
  • wrap=wrap allows a multi-word region name to break between lines (default=null)
  • title= the fully formatted region title to be used in the userbox (default={{#if:{{{the|}}}|the }}[[{{{region|}}}|'''{{#if:{{{wrap|}}}||<span style="white-space:nowrap">}}{{{inflect|{{{simple|{{{region|}}}}}}}}}{{#if:{{{wrap|}}}||</span>}}''']])
  • activity= is an optional verb phrase for option 1 (default=lives in)
  • adj= the adjective form of the region name (default={{{inflect|{{{simple|{{{region|}}}}}}}}})
  • demonym= an optional regional demonym (only if preferred for options 55 or 56, e.g., "This user is a Dane" versus "This user is from Denmark")
  • an=an if the optional regional demonym begins with a vowel sound (default=a)
  • main= the root name of the responsible regional WikiProject (default={{{simple|{{{region|}}}}}})
  • sub= the root name of the regional subgroup, if any (default={{{simple|{{{region|}}}}}})
  • group= the type of regional project group:
    • group=WikiProject (default)
    • group=work group
    • group=task force
    • group=none
    • group=other
  • member= the type of regional project membership:
    • member=member (default)
    • member=participant
    • member=volunteer
    • member=other
  • cres= the root name of the regional residence user category
  • ccit= the root name of the regional citizenship user category
  • cint= the root name of the regional interest user category
  • cpro= the root name of the regional project membership category
  • res=yes declares the user page a member of the regional residence user category
  • cit=yes declares the user page a member of the regional citizenship user category
  • int=yes declares the user page a member of the regional interest user category
  • pro=yes declares the user page a member of the regional project membership category
  • nocat=true disables the declaration of user categories

The following eight parameters are used only if the region is a subdivision of a sovereign state:

  • nation= the required nation name as listed in Wikipedia only if the region is a subdivision of a sovereign state
  • nthe=the places a "the " before the nation name (default=null)
  • cnres= the root name of the national residence user category
  • cncit= the root name of the national citizenship user category
  • cnint= the root name of the national interest user category
  • nres=yes declares the user page a member of the national residence user category
  • ncit=yes declares the user page a member of the national citizenship user category
  • nint=yes declares the user page a member of the national interest user category

Options table

option userbox example default user categories
sovereign state dependent state
0   Option 0 allows user categories to be declared
without displaying a userbox
1
Flag of Afghanistan.svg This user lives in Afghanistan
res res, nres
2
Flag of Algeria.svg This user resides in Algeria
res res, nres
3
Flag of Angola.svg This user is a resident of Angola
res res, nres
4
Flag of Argentina.svg This user is a part-time resident of Argentina
res res, nres
5
Flag of Aruba.svg This user is a student in Aruba
res res, nres
6
Flag of Australia.svg This user currently studies in Australia
res res, nres
7
Flag of Bahrain.svg This user currently works in Bahrain
res res, nres
8
Flag of Belarus.svg This user currently lives in Belarus
res res, nres
9
Flag of Belgium.svg This user is proud to be a resident citizen of Belgium
res, cit res, nres, ncit
10
Flag of Bhutan.svg This user is a proud resident citizen of Bhutan
res, cit res, nres, ncit
11
Flag of Bolivia.svg This user is proud to be a resident native citizen of Bolivia
res, cit res, nres, ncit
12
Flag of Botswana.svg This user is a proud resident native citizen of Botswana
res, cit res, nres, ncit
13
Flag of Brazil.svg This user is a resident native citizen of Brazil
res, cit res, nres, ncit
14
Flag of Burkina Faso.svg This user is a lifelong resident citizen of Burkina Faso
res, cit res, nres, ncit
15
Flag of Burundi.svg This user was born and lives in Burundi
res, cit res, nres, ncit
16
Flag of Canada.svg This user is proud to be a naturalized resident citizen of Canada
res, cit
Flag of British Columbia.svg This user is proud to be a naturalized citizen of Canada living in British Columbia
res, nres, ncit
17
Flag of Mexico.svg This user is a proud naturalized resident citizen of Mexico
res, cit
Flag of Puebla.svg This user is a proud naturalized citizen of Mexico living in Puebla
res, nres, ncit
18
Flag of the United States.svg This user is a naturalized resident citizen of the United States
res, cit
Flag of Colorado.svg This user is a naturalized citizen of the United States living in Colorado
res, nres, ncit
19
Flag of Christmas Island.svg This user is a resident citizen of Christmas Island
res, cit res, nres, ncit
20
Flag of Colombia.svg This user is a citizen of Colombia
cit ncit
21
Flag of the Democratic Republic of the Congo.svg This user is a nonresident citizen of the Democratic Republic of the Congo
cit ncit
22
Flag of Costa Rica.svg This user is a nonresident native citizen of Costa Rica
cit ncit
23
Flag of Cuba.svg This user is a proud native citizen of Cuba
cit ncit
24
Flag of the Czech Republic.svg This user is a native citizen of the Czech Republic
cit ncit
31
Flag of France.svg This user is a resident native citizen interested in France
res, cit, int res, int, nres, ncit
32
Flag of The Gambia.svg This user is a resident citizen interested in Gambia
res, cit, int res, int, nres, ncit
33
Flag of Germany.svg This user is a resident interested in Germany
res, int res, int, nres
34
Flag of Greece.svg This user is a citizen interested in Greece
cit, int int, ncit
35
Flag of Greenland.svg This user is a native interested in Greenland
int
36
Flag of Guatemala.svg This user is a descendant interested in Guatemala
int
37
Flag of Guinea.svg This user is a former resident interested in Guinea
int
38
Flag of Haiti.svg This user is interested in Haiti
int
41
Flag of India.svg This user is a member of
WikiProject India
int, pro
Flag of Israel.svg This user participates in
WikiProject Israel
Flag of Ecuador.svg This user participates in the
Galápagos Islands task force
Flag of Guam.svg This user is a member of the
Guam work group
Flag of French Polynesia.svg This user participates in the
French Polynesia work group
Flag of Jalisco.svg This user wishes to form
WikiProject Jalisco
51
Flag of Libya.svg This user is a proud native of Libya
none
52
Flag of Luxembourg.svg This user is a native of Luxembourg
none
53
Flag of Madagascar.svg This user is a nonresident native of Madagascar
none
54
Flag of Malaysia.svg This user was born in Malaysia
none
55
Flag of the Marshall Islands.svg This user is proud to be a
Marshallese
none
Flag of Martinique.svg This user is proud to be from Martinique
56
Flag of Mauritania.svg This user is a
Mauritanian
none
Flag of Malaysia.svg This user is from Malaysia
61
Flag of Mozambique.svg This user is of Mozambican ancestry
none
62
Flag of Nepal.svg This user is of Nepali descent
none
63
Flag of the Netherlands.svg This user is of Dutch heritage
none
64
Flag of New Zealand.svg An ancestor of this user was born in New Zealand
none
72
Flag of Puerto Rico.svg This user is a former resident of Puerto Rico
none
73
Flag of Russia.svg This user has lived in Russia
none
74
Flag of Saint Barthelemy (local).svg This user has visited Saint Barthélemy
none
75
Flag of Saint Kitts and Nevis.svg This user frequently visits Saint Kitts and Nevis
none
76
Flag of France.svg This user wishes to visit Saint Martin
none
77
Flag of Samoa.svg This user has hiked through Samoa
none
78
Flag of Saudi Arabia.svg This user has cycled through Saudi Arabia
none
81
Flag of Slovakia.svg This user loves Slovakia
none
82
Flag of South Africa.svg This user longs for South Africa
none
83
Flag of Spain.svg This user wishes to be in Spain
none
91
Flag of Turkey.svg This user has family in Turkey
none
92
Flag of Tuvalu.svg This user has friends in Tuvalu
none
93
Flag of the United Kingdom.svg This user has associates in the United Kingdom
none
94
Flag of the United States.svg This user does business in the United States of America
none
99
Flag of Zimbabwe.svg This user is associated with Zimbabwe
none

Userbox override parameters

The following additional parameters may be used to override this template's default userbox settings:

  • float= an optional horizontal float of the userbox:
    • float=left (default)
    • float=right
    • float=none
  • align= an optional horizontal alignment of the userbox text:
    • align=left
    • align=center (default)
    • align=right
    • align=justify
  • color= an optional userbox background color (default=white)
  • image= an optional userbox image (default=Flag of {{#if:{{{the|}}}|the }}{{{region|}}}.svg)
  • width= an optional maximum width of the userbox image in pixels (default=null, i.e., limited only by image height of 45 pixels)
  • border-c= an alternate userbox border color (default=black)
  • d-s= an alternate demonym emphasis font size in pixels (default=11, used for options 55 and 56 only)
  • id= an alternate text or image to the default flag image
  • id-a= an alternate horizontal alignment of the id (default=left)
    • id-a=left (default)
    • id-a=center
    • id-a=right
  • id-c= an alternate id background color (default=color if width is specified, otherwise border-c)
  • id-w= an alternate width of the id in pixels (default=1)
  • info= an alternate userbox text (see the Options table above for the defaults)
  • info-c= an alternate info background color (default=color)
  • info-class= an optional info-class
  • info-fc= an alternate info font color (default=black)
  • info-lh= an alternate info line height (default={{#expr:1.05+{{{wp-s|10}}}/40}}em for option 41, otherwise 1.25em)
  • info-s= an alternate info font size in pixels (default=8)
  • wp-s= an alternate info emphasis font size in pixels (default=10, used for option 41 only)

See Template:Userbox for other default userbox settings.

Restrictions

  • This template should be invoked from your user page. This template will declare user categories from the user namespace only.

Example

Placing the following Wikitext on your user page:

{{uir
|region=England
|cres=Wikipedians in England
|cnres=Wikipedians in the United Kingdom
|color={{{color|#d5fffa}}}
}}

produces the following userbox:

Flag of England.svg This user lives in England

and declares your user page a member of:

Template:User in England invokes this template to produce the same effect.

See also