User:Buaidh/Yy

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.   where:
 *   is the optional table title.
 *   is the optional column headings switch.
 *   creates three column headings (default)
 *   creates no column headings.

Example:   creates:

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.   where: A zero-width space may be used to represent a missing parameter.
 *   is the required template name.
 *   are up to 12 optional template parameters.
 *   is an optional comment.

Example:   creates:

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.   where:
 *   is the required category name.
 *   is the optional link to the category. (default=no)

Example   creates:

Yytxt
Template:Yytxt creates a row of text in the userbox table.   where: If all three optional text parameters are blank or missing, a blank row will be inserted.
 *   is the optional text for the table or first column.
 *   is the optional text for the second column
 *   is the optional text for the third column
 *   is the optional format parameter:
 *   creates a line of left-justified text (default)
 *   creates a line of table-centered text
 *   creates a line of right-justified text
 *   creates a line of left-justified text for each column
 *   creates a line of column-centered text for each column
 *   creates a line of right-justified text for each column
 *   recreates the column headings of Template:Yytop

Example:   creates:

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.   where:
 *   is the required name of a country, region, WikiProject, portal, or noticeboard. (See Module:Portal/images)
 *   is the optional page name of the subtable. (default=Wikipedia:Userboxes/Location/ )
 *   is the optional description of the subtable. (default=  userbox templates)
 *   is the optional image file. (default image file from Module:Portal/images)
 *   is the optional image size. (default= )
 *   is the optional image space width. (default= )
 *   is the optional font size. (default= )
 *   is the optional stand alone switch.
 *   pointer is part of a table. (default)
 *   pointer in its own table.

Examples:   creates:

  creates:

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

Yyreg
Template:Yyreg (or Template:Yytabcities) creates a link to a city or regional table.   where:
 *   is the required name of a nation or region. (See Module:Portal/images)
 *   is the optional separator.
 *   for a section. (default)
 *   for a subpage.
 *   is the optional section or subpage. (default= )
 *   is the optional text. (default= of .)
 *   is the optional image file. (default image file from Module:Portal/images)
 *   is the optional font size. (default= )
 *   is an optional switch
 *   use separator and subsection. (default)
 *   ignore separator and subsection.
 *   is the optional stand alone switch.
 *   pointer is part of a table. (default)
 *   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.   where:
 *   is the required WikiProject base name.
 *   an optional project group base name if any.
 *   an optional project group type if any.
 *   an optional WikiProject box label. (default=WikiProject   or    )
 *   is an optional WikiProject folder name.
 *   is the optional image size. (default= )

'Examples:'   creates:

and   creates:

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

Yyp
Template:Yyp creates a link to a portal.   where:
 *   is the required portal name.
 *   is the optional image size. (default= )

Example:   creates:

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

Yynb
Template:Yynb creates a link to a noticeboard.   where:
 *   is the required noticeboard base name.
 *   is the optional image size. (default= )

Example:   creates:

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

Yyend
Template:Yyend (or Template:Yybottom) always comes last and completes the userbox table.   where:
 *   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:

creates the following table: