• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Userbox table userbox/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Userbox table userbox
This is the template sandbox page for Template:Userbox table userbox (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 11,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Shortcut
  • {{yyTemplate:Yy}}
This template uses Lua:
  • Module:Template wrapper (sandbox)

The following ten userbox table templates can be used to create a userbox table that displays a list of userboxes along with their invoking Wikitext and a link to a list of the pages that invoke each userbox template. Templates can also display text and boxes that link to pages, sections, categories, projects, portals, and noticeboards.

  1. Userbox table top
  2. Userbox table userbox
  3. Userbox table category
  4. Userbox table text
  5. Userbox table link
  6. Userbox table regional link
  7. Userbox table project link
  8. Userbox table portal link
  9. Userbox table noticeboard link
  10. Userbox table begin section
  11. Userbox table end of section
  12. Userbox table bottom

See the userbox table example below to see how these templates work together.

Contents

  • 1 Userbox table top
  • 2 Userbox table userbox
  • 3 Userbox table category
  • 4 Userbox table text
  • 5 Userbox table link
  • 6 Userbox table regional link
  • 7 Userbox table project link
  • 8 Userbox table portal link
  • 9 Userbox table noticeboard link
  • 10 Userbox table section
  • 11 Userbox table bottom
  • 12 Example
  • 13 See also

Userbox table top

edit

Template:Userbox table top (abbreviation Template:yytop) always comes first in a userbox table to create the three column headings and to size the columns. It may also be used to create a centered table title.

{{Userbox table top|title|headers=}}

where:

  • title is the optional table title.
  • headers= is the optional column headings switch.
    • headers=yes creates three column headings (default)
    • headers=no creates no column headings.

Example:
{{Userbox table top|Userbox Templates}} creates:

Userbox Templates
Wikitext userbox where used

Userbox table userbox

edit

Template:Userbox table userbox (abbreviation Template:yy) creates a single row in the userbox table with the userbox Wikitext, the userbox, and a link to the list of pages that link to the userbox template.

{{Userbox table|template|par1|...|par12|comment=}}

where:

  • template is the required template name.
  • par1|...|par12 are up to 12 optional template parameters.
  • comment= is an optional comment.

A zero-width space &#82​03; may be used to represent a missing parameter.

Examples:
{{Userbox table userbox|User roses}} creates:

{{User roses}}
This user cultivates roses.
linked pages

{{Userbox table userbox|User in New Zealand|5|comment=option= 1–99}} creates:

{{User in New Zealand|5}}
This user is a student in New Zealand.
linked pages
option= 1–99

Userbox table category

edit

Template:Userbox table category (abbreviation Template:yycat) creates a link to a category. This may be used to show how to link to a category without using a userbox.

{{Userbox table category|category|link=}}

where:

  • category is the required category name.
  • link= is the optional link to the category. (default=no)

Example:
{{Userbox table category|Wikipedians in South Africa|link=yes}} creates:

[[Category:Wikipedians in South Africa]] none linked pages

Userbox table text

edit

Template:Userbox table text (abbreviation Template:yytxt) creates a row of text in the userbox table.

{{Userbox table text|txt1|txt2|txt3|opt=}}

where:

  • txt1 is the optional text for the table or first column.
  • txt2 is the optional text for the second column
  • txt3 is the optional text for the third column
  • opt= is the optional format parameter:
    • opt=1 creates a line of left-justified text (default)
    • opt=2 creates a line of table-centered text
    • opt=3 creates a line of right-justified text
    • opt=4 creates a line of left-justified text for each column
    • opt=5 creates a line of column-centered text for each column
    • opt=6 creates a line of right-justified text for each column
    • opt=7 recreates the column headings of Template:Yytop

If all three optional text parameters are blank or missing, a blank row will be inserted.

Example:
{{Userbox table text|Residence:}} creates:

Residence:

Userbox table link

edit

Template:Userbox table link (abbreviation Template:yytab) creates a link to another table. It may be used to break an overly large table into subtables.

{{Userbox table link|name|page|desc=|image=|size=|id-w=|info-s=|alone=}}

where:

  • name is the required name of a country, region, WikiProject, portal, or noticeboard. (See Module:Portal/images)
  • page is the optional page name of the subtable. (default=Wikipedia:Userboxes/Location/name)
  • desc= is the optional description of the subtable. (default=name userbox templates)
  • image= is the optional image file. (default image file from Module:Portal/images)
  • size= is the optional image size. (default=x45px)
  • id-w= is the optional image space width. (default=45)
  • info-s= is the optional font size. (default=9)
  • alone= is the optional stand alone switch.
    • alone=no pointer is part of a table. (default)
    • alone=yes pointer in its own table.

Examples:
{{Userbox table link|France|alone=yes}} creates:

See Wikipedia:Userboxes/Location/France for France userbox templates.
France userbox templates

{{Userbox table link|Music composers|Wikipedia:Userboxes/Music/Composers|image=P treble clef.svg|sixe=41px|alone=yes}} creates:

See Wikipedia:Userboxes/Music/Composers for Music composers userbox templates.
Music composers userbox templates

Userbox table regional link

edit

Template:Userbox table regional link (abbreviation Template:yyreg) creates a link to a city or regional table.

{{Userbox table regional link|name|separator|subsection|text=|image=|info-s=|plain=|alone=}}

where:

  • name is the required name of a nation or region. (See Module:Portal/images)
  • separator is the optional separator.
    • # for a section. (default)
    • / for a subpage.
  • subsection is the optional section or subpage. (default=Cities)
  • text= is the optional text. (default=<subsection> of <name>.)
  • image= is the optional image file. (default image file from Module:Portal/images)
  • info-s= is the optional font size. (default=9)
  • plain= is an optional switch
    • plain=no use separator and subsection. (default)
    • plain=yes ignore separator and subsection.
  • alone= is the optional stand alone switch.
    • alone=no pointer is part of a table. (default)
    • alone=yes pointer in its own table.

Example:
{{Userbox table regional link|Puerto Rico|alone=yes}} creates:

See Wikipedia:Userboxes/Location/Puerto Rico#Cities for Cities of Puerto Rico userbox templates.
Cities of Puerto Rico userbox templates

Note: See Template:Userbox table regional link for additional information.

Userbox table project link

edit

Template:Userbox table project link (abbreviation Template:yywp) creates a link to a WikiProject, Work Group, or Task Force.

{{Userbox table project link|wikiproject|group|type|label|folder=|size=}}

where:

  • wikiproject is the required WikiProject base name.
  • group an optional project group base name if any.
  • type an optional project group type if any.
  • label an optional WikiProject box label. (default=WikiProject wikiproject or group type)
  • folder= is an optional WikiProject folder name.
  • size= is the optional image size. (default=x45px)

Examples:
{{Userbox table project link|New South Wales}} creates:

[[Wikipedia:WikiProject New South Wales]]
WikiProject
New South Wales
linked pages

and {{Userbox table project link|California|Los Angeles|task force}} creates:

[[Wikipedia:WikiProject California/Los Angeles task force]]
Los Angeles
task force
linked pages

Userbox table portal link

edit

Template:Userbox table portal link (abbreviation Template:yyp) creates a link to a portal.

{{Userbox table portal link|portal|size=}}

where:

  • portal is the required portal name.
  • size= is the optional image size. (default=x45px)

Example:
{{Userbox table portal link|South Africa}} creates:

{{Portal:South Africa}}
South Africa portal
linked pages

Userbox table noticeboard link

edit

Template:Userbox table noticeboard link (abbreviation Template:yynb) creates a link to a noticeboard.

{{Userbox table noticeboard link|noticeboard|size=}}

where:

  • notice is the required noticeboard base name.
  • size= is the optional image size. (default=x45px)

Example:
{{Userbox table noticeboard link|Pakistan}} creates:

{{Wikipedia talk:Notice board for Pakistan-related topics}}
Pakistan
notice board
linked pages

Userbox table section

edit

Template:Userbox table begin section and Template:Userbox table end of section (abbreviations Template:yysbeg and Template:yysend) are used to mark any special section of the userbox table.

{{Template:Userbox table begin section|begin_section|anchor_name}}
{{Template:Userbox table end of section|end_of_section}}

where:

  • begin_section is the optional text to display at the beginning the section (default: "Begin section").
  • anchor_name is the optional anchor name, if desired.
  • end_of_section is the optional text to display at the end of the section (default: "End of section").

Example:
{{Userbox table begin section|Begin Colorado userboxes}}
{{Userbox table userbox|User invitation|Colorado}}
{{Userbox table userbox|User WikiProject Colorado}}
{{Userbox table end of section|End of Colorado userboxes}}
creates:


Begin Colorado userboxes

{{User invitation|Colorado}}
This user invites you to visit
Colorado.
linked pages
{{User WikiProject Colorado}}
This user participates in
WikiProject Colorado.
linked pages

End of Colorado userboxes


Userbox table bottom

edit

Template:Userbox table bottom (abbreviation Template:yyend) always comes last and completes the userbox table.

{{Userbox table bottom|comment}}

where:

  • comment is an optional comment to appear at the bottom right of the table.

Example

edit

The following Wikitext:

{{Userbox table top|[[Samoan Archipelago]]}}
{{Userbox table text|American Samoa:}}
{{Userbox table project link|Polynesia|American Samoa|work group}}
{{Userbox table userbox|User in American Samoa}}
{{Userbox table userbox|User wishes to visit|American Samoa}}
{{Userbox table userbox|User American Samoa WG}}
{{Userbox table link|American Samoa|Wikipedia:Userboxes/Location/Oceania#American Samoa}}
{{Userbox table text|Samoa:}}
{{Userbox table project link|Samoa}}
{{Userbox table userbox|User citizen Samoa}}
{{Userbox table userbox|User interest Samoa}}
{{Userbox table userbox|User WP Samoa}}
{{Userbox table link|Samoa|Wikipedia:Userboxes/Location/Oceania#Samoa}}
{{Userbox table bottom|updated 29 April 2025}}

creates the following table:

Samoan Archipelago
Wikitext userbox where used
American Samoa:
[[Wikipedia:WikiProject Polynesia/American Samoa work group]]
American Samoa
work group
linked pages
{{User in American Samoa}}
This user lives in American Samoa.
linked pages
{{User wishes to visit|American Samoa}}
This user wishes to visit American Samoa.
linked pages
{{User American Samoa WG}}
This user participates in the
American Samoa work group.
linked pages
See Wikipedia:Userboxes/Location/Oceania#American Samoa for American Samoa userbox templates.
American Samoa userbox templates
Samoa:
[[Wikipedia:WikiProject Samoa]]
WikiProject
Samoa
linked pages
{{User citizen Samoa}}
This user is a citizen of Samoa.
linked pages
{{User interest Samoa}}
This user is interested in Samoa.
linked pages
{{User WP Samoa}}
This user participates in
WikiProject Samoa.
linked pages
See Wikipedia:Userboxes/Location/Oceania#Samoa for Samoa userbox templates.
Samoa userbox templates
updated 29 April 2025

See also

edit
  • For help with this template, please post a comment on the template talk page with a {{reply to}} one or more of the previous editors.
  • For help with userbox templates see Wikiproject Userboxes.
  • v
  • t
  • e
WikiProject Userboxes
Wikipedia
  • Expertise
  • Foreign
  • Humour
  • Personal statistics
  • Participation
  • Policies
  • Related accounts
  • Research and editing tools
  • Sister projects
  • User status
  • Vandalism
  • Views
  • WikiFauna
  • Wikilosophy
    • Editing
  • WikiProjects
  • Miscellaneous
Interests
  • Animals
  • Architecture
  • Colour
  • Computing
  • Drink
  • Drugs
  • Food
    • Cereal grains
    • Cheese
    • Condiments
    • Desserts
    • Eating
    • Fruit
  • Esperantism
  • Games
  • History
  • Internet
  • Law
  • Linguistics
  • Mathematics
  • Memberships
  • Mobile phone service
  • Philosophy
  • Plants
  • Politics
  • Retail
  • Ribbons
  • Science
    • Astronomy
    • Mineralogy
  • Scouting
  • Spaceflight
  • Sports
  • Toys
  • Travel and tourism
    • Transportation
Languages
  • Families
    • Celtic
    • Constructed
    • Romance
  • ISO 639 languages
    • Chinese
    • English
    • Italian
    • Latin
  • Non-ISO languages
  • Written language
  • Programming languages
  • Markup languages
  • Alphabet
Life
  • Age
  • Ancestry
  • Citizenship
  • Education
  • Equality
  • Ethnicity
  • Family
  • Gender
    • Pronouns
  • Health
    • Awareness
    • Cancer
    • COVID-19
    • Mental
    • Nutrition
  • Languages
  • Military
  • Name
  • Nationality
  • Origin
  • Police
  • Occupation
  • Personality
  • Religion
  • Residence
  • Sexuality
  • Miscellaneous
Location
  • Africa
  • Americas
  • Antarctica
  • Asia
  • Europe
  • Oceania
  • Oceans
Mass media
  • Newspapers and periodicals
  • Podcasts
  • Radio
  • Television
    • Networks & Stations
The arts
  • Anime and manga
  • Books
  • Comedy
  • Comics
  • Cinema
    • by genre
  • Music
  • Theatre
TV shows
  • Adult/teen animation
  • Adventures
  • Comedy
  • Drama
  • Family
  • Game shows
  • Horror
  • News
  • Reality shows
  • Science fiction/fantasy
  • Soap operas
  • Other shows
Time
  • Seasonal
  • Time zones
  • Zodiac
Other
  • Animated
  • Emoticons
  • Userboxes
  • Wide
How to
  • Create a userbox with an image on the left
  • Create a userbox with an image on the right
  • Create a userbox with two images
  • Create a userbox twice as wide as normal
New
  • Userboxes
  • Userbox ideas
  • See also Userbox guidelines
  • Userbox migration
  • Grouping userboxes on your user page
  • Userbox galleries
    • alphabetical listing
The above documentation is transcluded from Template:Userbox table userbox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Userbox_table_userbox/sandbox&oldid=1147294357"
Last edited on 30 March 2023, at 00:40

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 March 2023, at 00:40 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop