Template:Yy/doc

This Yy series of templates can create a userbox table that displays a list of userboxes along with their Wikitext and the pages that invoke each userbox template. Templates also display boxes for WikiProjects, portals, and notice boards.

The yy template series comprises the following nine templates:

Template:Yytop
Template:Yytop always comes first 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:

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.

Template:Yy
Template:Yy creates a single table row with the template Wiki markup, the template box, and a link to the list of pages that link to the called 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.

Example   creates:

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.

Template:Yycat
Template:Yycat creates a reference to a category.   where:
 *   is the required category name.
 *   is the optional link to the category. (default=no)

Example   creates:

Template:Yytxt
Template:Yytxt creates a row of text in the 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:

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

Template:Yytab

 * See also Template:yytabcities—a shortcut for for location related userboxes.

Template:Yytab creates a pointer to another table. Template:Yytab may be used to break an overly large table into subtables.   where:
 *   (first positional argument) is the required name of a region, portal, noticeboard, WikiProject. (See Module:Portal/images)
 *   (second positional argument) 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 font size. (default= )
 *   is the optional stand alone switch.
 *   pointer is part of a table. (default)
 *   pointer in its own table.

Example   creates:

  creates:

Template:Yytab is somewhat similar to Template:usee.

Template:Yywp
Template:Yywp creates a WikiProject box.   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:

Template:WikiProject box creates a smaller standalone WikiProject box.

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

Example   creates:

Template:Portal creates a smaller standalone portal box.

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

Example   creates:

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

Template:Yybottom
Template:Yybottom always comes last and completes the table.   where:
 *   is an optional comment to appear at the bottom right of the table.

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

Table example
The following Wiki markup:

creates the following table: