Template:Related portals
Purpose[edit source]
This template simplifies the creation and maintenance of the "Related portals" box within portal pages. It creates a list of 1 to 30 clickable links to related portals.
Also consider the template {{Related portals2}}, which is easier to use and works better on narrow screens.
Usage[edit source]
- portalcount—Required; the number of portal links in the list. The template supports up to 30.
- size—Optional; the size of each portal image. This defaults to 60×60px which seems about right.
- per row—Optional; the maximum number of portal links before wrapping to a new row. On small screens, links will wrap sooner, if needed. If omitted, links will only wrap when needed.
- These must be followed by pairs of unnamed parameters:
- An image name, with no "File:" or "Image:" prefix. Optional; if blank then a default image will be used.
- The name of the portal to be linked to, with no "Portal:" prefix.
If the portal name is too long to display neatly, then consider creating a redirect from a shorter name to the portal page, and using that shorter name in the list passed to this template.
Example[edit source]
{{Related portals|portalcount=4|per row=4 | Apple Campus One Infinite Loop Sign.jpg | Apple Inc. | Circle of spam.svg | Computer security | <!-- Let's pretend this was deleted --> | Computer science | Desktop computer clipart - Yellow theme.svg | Information technology }}
Default image[edit source]
The default portal image name is found using Module:Portal. Please see Module:Portal#Image for instructions on how to add, update, or remove a default image.
See also[edit source]
Main portal creation templates
- {{Basic portal start page}} (deleted)—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 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.
- {{Portal subpage}}—Used to output a box containing a link to subpage.
- {{Numbered subpages}}—Used to create article links on portal sub-pages.
- {{Random box-header subpage}}—Used to transclude a numbered subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portal-image}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
These templates are used to format the articles on the sub-pages
{{Selected X}}—Generic template for situations not listed hereafter.
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
Related templates
External links[edit source]
- Template:Related portals at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Related portals/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |