Template:Userbox-flag/doc

From MOASSpedia
< Template:Userbox-flag
Revision as of 18:15, 5 July 2021 by Wikipedia>Pppery (Update documentation to match code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template creates a custom userbox with the flag or emblem of a nation, state, or province.

Usage

To use this userbox template, place one of the following lines of Wikitext on your user page:

Simple code: {{Userbox-flag|region|info}}

Full code: {{Userbox-flag|region|info|region name|res=resident?|cit=citizenship?|float=float|align=align}}

Parameters

|1= The required name or ISO 3166 region code of a nation, state, province, or district.

|2= The userbox text / activity

  • Default: lives ins

|3= The name of the region to show

  • Default: parameter 1's proper name

|res= The optional residence parameter. A yes indicates that you are a current resident of the region and you wish to have your userpage included in [[Category:Wikipedians in region]]

  • Default: no

|cit= The optional citizenship parameter. A yes indicates that you are a current citizen of the region and you wish to have your userpage included in [[Category:region demonym Wikipedians]]

  • Default: no

|float= The float/alignment of the box

  • Default: left

|align= The alignment of the text

  • Default: center

Examples

Wiki markup Userbox
{{Userbox-flag|Colorado|frequently visits|'''[[Aspen, Colorado]]'''}}
Flag of Colorado.svgThis user frequently visits Aspen, Colorado.
{{Userbox-flag|Colorado|This user frequently visits}}
Flag of Colorado.svgThis user ​ frequently visits the U.S. State of Colorado.
{{Userbox-flag|Quintana Roo|loves|'''[[Cancún]]'''}}
Flag of Quintana Roo.svgThis user loves Cancún.
{{Userbox-flag|Quintana Roo|loves}}
Flag of Quintana Roo.svgThis user loves the Mexican state of Quintana Roo.
{{Userbox-flag|Israel|This user is a [[civil engineer]] in|'''[[Jerusalem]]'''|resident=yes}}
Flag of Israel.svgThis user ​ is a civil engineer in Jerusalem.
{{Userbox-flag|Palestine|This user supports a free and independent|'''[[State of Palestine|Palestine]]'''}}
Flag of Palestine.svgThis user ​ supports a free and independent Palestine.
{{Userbox-flag|Scotland|This user is proud to be both|[[Scotland|'''Scottish''']] and [[United Kingdom|'''British''']]}
Flag of Scotland.svgThis user ​ is proud to be both Scottish and British.
{{Userbox-flag|South Africa||'''<big>[[South Africa]]</big>'''}}
Flag of South Africa.svgThis user South Africa.
{{Userbox-flag|AU-NSW|[[Lawyer|practices law]] in|'''[[Sydney]]'''}}
Flag of New South Wales.svgThis user practices law in Sydney.
{{Userbox-flag|US|supports the|'''[[Constitution of the United States]]'''}}
Flag of the United States.svgThis user supports the Constitution of the United States.
{{Userbox-flag|US|This user supports the constitution of}}
Flag of the United States.svgThis user ​ supports the constitution of the United States.

Template:User activity/custom

Userbox metatemplates
Left
Right
Left and Right
None

See also: Module:Userbox, Wikipedia:Userboxes, Wikipedia:Userboxes/Userboxes