User:Buaidh/Yy

Source: Wikipedia, the free encyclopedia.

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.

Yytop

Template:Yytop
always comes first in a userbox table to create the three column headings and to size the columns. Template:Yytop may also be used to create a centered table title.

{{Yytop|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:
{{Yytop|Userbox Templates}} creates:

Userbox Templates
Wikitext userbox where used

Note: Template:Yytop is very similar to Template:Usbktop except:

  1. Template:Yytop default sizes the three columns to 390, 250, and 80 pixels respectively.
    Template:Usbktop does no default column sizing.
  2. Template:Yytop places the linked labels Wiki markup, userbox, and where used centered at the top of each column.
    Template:Usbktop places the labels Code and Result left justified at the top of the first two columns only.
  3. Template:Yytop may be used to create a centered table title.

Yy

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.

Example:
{{Yy|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

Note: Template:Yy is similar to Template:Usbk except:

  1. Template:Yy will pass up to 12 parameters to the called template.
    Template:Usbk will pass no more than three parameters to the called template.
  2. Template:Yy forces all cells to align to the left.
    Template:Usbk uses the default object alignment.
  3. Template:Yy uses the same category suppression as Template:Usbk.

Yycat

Template:Yycat
creates a reference to a category. Yycat may be used to show how to link to a category without using a userbox.

{{Yycat|category|link=}}

where:

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

Example
{{Yycat|Wikipedians in South Africa|link=yes}} creates:

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

Yytxt

Template:Yytxt
creates a row of text in the userbox table.

{{Yytop|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:
{{Yytxt|Residence:}} creates:

Residence:

Note: Template:Usbkbreak centers text on only the first two columns and has no other options.

Yytab

Template:Yytab
creates a link to another table. Template:Yytab may be used to break an overly large table into subtables.

{{Yytab|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:
{{Yytab|France|alone=yes}} creates:

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

{{Yytab|United Arab Emirates|info-s=8|alone=yes}} creates:

See Wikipedia:Userboxes/Location/United Arab Emirates for United Arab Emirates userbox templates.

Note: Template:Yytab is somewhat similar to Template:usee.

Yyreg

Template:Yytabcities
) creates a link to a city or regional table.

{{Yyreg|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.

Note: See

Template:Yytabcities
for additional information.

Yywp

Template:Yywp creates a link to a WikiProject, Work Group, or Task Force
.

{{Yywp|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:'
{{Yywp|New South Wales}} creates:

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

and {{Yywp|California|Los Angeles|task force}} creates:

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

Note: Template:WikiProject box creates a smaller standalone WikiProject box.

Yyp

Template:Yyp creates a link to a portal
.

{{Yyp|portal|size=}}

where:

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

Example:
{{Yyp|South Africa}} creates:

{{Portal:South Africa}} linked pages

Note: Template:Portal creates a smaller standalone portal box.

Yynb

Template:Yynb creates a link to a noticeboard
.

{{Yynb|noticeboard|size=}}

where:

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

Example:
{{Yynb|Pakistan}} creates:

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

Note:

Template:Noticeboard box
creates a smaller standalone notice board box.

Yyend

Template:Yybottom
) always comes last and completes the userbox table.

{{Yyend|comment}}

where:

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

Note: Template:Usbkbottom is similar to Template:Yyend but does not permit a comment line.

Example

The following Wikitext:

{{Yytop|[[Samoan Archipelago]]}}
{{Yytxt|American Samoa:}}
{{Yywp|Polynesia|American Samoa|work group}}
{{Yy|User in American Samoa}}
{{Yy|User wishes to visit|American Samoa}}
{{Yy|User American Samoa WG}}
{{Yytab|American Samoa|Wikipedia:Userboxes/Location/Oceania#American Samoa}}
{{Yytxt|Samoa:}}
{{Yywp|Samoa}}
{{Yy|User citizen Samoa}}
{{Yy|User interest Samoa}}
{{Yy|User WP Samoa}}
{{Yytab|Samoa|Wikipedia:Userboxes/Location/Oceania#Samoa}}
{{Yyend|updated 9 February 2023}}

creates the following table:

Samoan Archipelago

Wikitext userbox where used
American Samoa:
[[Wikipedia:WikiProject Polynesia/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}} linked pages
See Wikipedia:Userboxes/Location/Oceania#American Samoa for American Samoa userbox templates.
Samoa:
[[Wikipedia: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}} linked pages
See Wikipedia:Userboxes/Location/Oceania#Samoa for Samoa userbox templates.
updated 9 February 2023

See also