Userbox table text
Template:Userbox table text (formerly 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:
Userbox table link
Template:Userbox table link (formerly 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:
{{Userbox table link|Music composers|Wikipedia:Userboxes/Music/Composers|image=P treble clef.svg|sixe=41px|alone=yes}}
creates:
Userbox table regional link
Template:Userbox table regional link (formerly 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:
Note: See Template:Userbox table regional link for additional information.
Userbox table project link
Template:Userbox table project link (formerly 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:
and {{Userbox table project link|California|Los Angeles|task force}}
creates:
Userbox table portal link
Template:Userbox table portal link (formerly 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:
Userbox table noticeboard link
Template:Userbox table noticeboard link (formerly 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:
Userbox table bottom
Template:Userbox table bottom (formerly 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
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 9 February 2023}}
creates the following table:
See also