Template:Related portals 2/doc

From CWS Planet
Jump to navigation Jump to search

Purpose

This is a helper template used to simplify the coding of the {{Related portals}} template. It is unlikely to be of any use elsewhere.

Because the unnamed parameters of {{Related portals}} are passed down here as named parameters, any leading and trailing white space is automatically stripped.

Usage

  • first - Pass "1" when creating the first (leftmost) portal link, blank otherwise.
  • call - Pass "1" to output the portal image, "2" to output the text label underneath.
  • portalcount - The number of portals in the line of links; used to set the cell width.
  • image - The name of an image file; if blank then a default image will be used instead.
  • size - The image size; defaults to 60x60px which seems about right.
  • portalname - The name of the portal page to be linked to. Do not pass the "Portal:" prefix.

See also

Main portal creation templates
  • {{Box portal skeleton}}—Used to create portal main pages.
  • {{Random portal component}}—Used on the portal main page to randomly display articles from the portal sub-pages.
  • {{Random portal component with nominate}}—Used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
  • {{Random subpage}}—Used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
  • {{Subpage}}—Used to output a box containing a link to subpage.
  • {{Numbered subpages}}—Used to create article links on portal sub-pages with 50 links.
  • {{Random box-header subpage}}—Used to transclude a numbered subpage.
Main portal page formatting templates
3
Templates that configure links
3
These templates are used to format the articles on the sub-pages

{{Selected X}}—Generic template for situations not listed hereafter.

3
Related templates