This regional userbox template creates a customizable userbox on your user page. This template is normally invoked by other templates as a metatemplate, but it may also be used as a stand-alone template. The template syntax is:
{{regbox|option=|region=|title=|the=|adjective=|demonym=|an=|nation=|nationality=|type=|project=|group=|member=|image=|width=|color=|align=|info=}}
where:
- option= the option number (default=1)
- region= the required region name as listed in Wikipedia
- the= the text "the" if the word "the" normally precedes the region name (default=null)
- adjective= the adjective form of the region name (default=region – required for options 41-43, optional for options 34-35, see below)
- title= the fully formatted region title to be used in the userbox (default={{#if:{{{the|}}}|the }}[[{{{region|}}}|'''{{nowrap|{{{region|}}}}}''']])
- demonym= an optional regional demonym (only if preferred to the adjective for options 34-35, e.g., "This user is a Welshman" versus "This user is Welsh")
- an= the text "an" if the optional regional demonym begins with a vowel sound (default=a)
- nation= the nation name as listed in Wikipedia only if the region is a subdivision of a Sovereign state (default=region)
- nationality= the national adjective only if the region is a subdivision of a sovereign state (default=adjective)
- project= the type of regional WikiProject (required for option 61):
- project=WikiProject – a devoted regional WikiProject (default)
- project=task force – a WikiProject regional task force
- project=work group – a WikiProject regional work group
- member= the type of regional project membership (required for option 61):
- member=member (default)
- member=participant
- member=volunteer
- main= the responsible regional WikiProject root name (default=region – required for option 61)
- sub= the WikiProject regional task force or work group root name (default=region – required for option 61 if project=task force or project=work group)
- align= an optional horizontal alignment of the userbox text:
- align=left
- align=center (default)
- align=right
- 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)
- info= an optional userbox text. The default userbox text is shown in the table below for each option number:
option | default info |
---|---|
0 | no userbox |
1 | This user lives in Region |
2 | This user resides in Region |
3 | This user is a resident of Region |
4 | This user is a part-time resident of Region |
5 | This user is a student in Region |
6 | This user currently studies in Region |
7 | This user currently works in Region |
8 | This user currently lives in Region |
11 | This user is proud to be a native citizen of Region |
12 | This user is a proud native citizen of Region |
13 | This user is a native citizen of Region |
14 | This user is a lifelong citizen of Region |
15 | This user was born and lives in Region |
16 | This user is proud to be a naturalized citizen of Region |
This user is proud to be a naturalized National citizen living in Region | |
17 | This user is a proud naturalized citizen of Region |
This user is a proud naturalized National citizen living in Region | |
18 | This user is a naturalized citizen of Region |
This user is a naturalized National citizen living in Region | |
19 | This user is a resident citizen of Region |
21 | This user is a nonresident citizen of Region |
22 | This user is a nonresident native citizen of Region |
23 | This user is a nonresident native of Region |
31 | This user is a proud native of Region |
32 | This user is a native of Region |
33 | This user was born in Region |
34 | This user is proud to be Regional |
This user is proud to be a Demonym | |
35 | This user is Regional |
This user is a Demonym | |
41 | This user is of Regional ancestry |
42 | This user is of Regional descent |
43 | This user is of Regional heritage |
44 | An ancestor of this user was born in Region |
51 | This user is an interested native citizen of Region |
52 | This user is an interested resident citizen of Region |
53 | This user is an interested resident of Region |
54 | This user is an interested citizen of Region |
55 | This user is an interested native of Region |
56 | This user is an interested descendant of Region |
57 | This user is interested in Region |
61 | This user is a member of WikiProject Region |
This user participates in WikiProject Region | |
This user is a member of the Region task force | |
This user participates in the Region task force | |
This user is a member of the Region work group | |
This user participates in the Region work group | |
71 | This user is from Region |
72 | This user is a former resident of Region |
73 | This user has lived in Region |
74 | This user has visited Region |
75 | This user frequently visits Region |
81 | This user loves Region |
82 | This user longs for Region |
83 | This user wishes to be in Region |
91 | This user has family in Region |
92 | This user has friends in Region |
93 | This user has associates in Region |
94 | This user does business in Region |
99 | This user is associated with Region |
Override parameters
The following additional parameters may be used to override the normal userbox settings:
- border-c= an optional userbox border color (default=black)
- id= an alternate text or image to the default flag image
- id-a= an optional horizontal alignment of the id (dafault=left)
- id-c= an optional id background color (default=color if width is specified, otherwise border-c)
- id-w= an optional width of the id in pixels (default=1)
- info-c= an optional info background color (default=color)
- info-fc= an optional info font color (default=black)
- info-lh= an optional info line height (default={{#expr:0.85+{{{wp-s|10}}}/20}}em for option 61, otherwise 1.25em)
- info-s= an optional info font size in pixels (default=8)
- wp-s= an optional info emphasis font size in pixels (default=10, used for option 61 only)
See Userbox for other default userbox settings.
Examples
Placing the following Wikitext on your user page:
- {{regbox|region=Wales|option=11}}
produces the following userbox:
This user is proud to be a native citizen of Wales |
The following userboxes demonstrate each of this template's options:
This user lives in Afghanistan |
This user resides in Algeria |
This user is a resident of Argentina |
This user is a part-time resident of Australia |
This user is a student in Bangladesh |
This user currently studies in Brazil |
This user currently works in Myanmar |
This user currently lives in Canada |
This user is proud to be a native citizen of China |
This user is a proud native citizen of Colombia |
This user is a native citizen of Democratic Republic of the Congo |
This user is a lifelong citizen of Côte d'Ivoire |
This user was born and lives in Egypt |
This user is proud to be a naturalized citizen of Ethiopia |
This user is a proud naturalized citizen of Germany |
This user is a proud naturalized Mexican citizen living in Guanajuato |
This user is a naturalized citizen of Ghana |
This user is a resident citizen of India |
This user is a nonresident citizen of Indonesia |
This user is a nonresident native citizen of Iran |
This user is a nonresident native of Iraq |
This user is a proud native of Italy |
This user is a native of Japan |
This user was born in Kenya |
This user is proud to be North Korean |
This user is proud to be a South Korean |
This user is Malaysian |
This user is a Mexican |
This user is of Moroccan ancestry |
This user is of Mozambican descent |
This user is of Nigerian heritage |
An ancestor of this user was born in Pakistan |
This user is an interested native citizen of Peru |
This user is an interested resident citizen of Philippines |
This user is an interested resident of Poland |
This user is an interested citizen of Romania |
This user is associated with Saudi Arabia |
This user is an interested descendant of South Africa |
This user is interested in Sudan |
This user is a member of WikiProject Russia |
This user participates in WikiProject Spain |
This user is a member of the Galápagos Islands task force |
This user participates in the Southern California task force |
This user is a member of the Guam work group |
This user participates in the French Polynesia work group |
This user is from Syria |
This user is a former resident of Taiwan |
This user has lived in Tanzania |
This user has visited Thailand |
This user frequently visits Turkey |
This user loves Uganda |
This user longs for Ukraine |
This user wishes to be in United Kingdom |
This user has family in United States of America |
This user has friends in Uzbekistan |
This user has associates in Venezuela |
This user does business in Vietnam |
This user is associated with Yemen |
See also
The above documentation is transcluded from Regbox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |