Wikipedia:WikiProject Portals/Components

{{notice|This page shows typical portal components along with the templates that can be used to automate them.}}

{{For|a more detailed overview|Wikipedia:WikiProject Portals/Design}}

__NOTOC____NOEDITSECTION__

Portal pages

{{tlx|Portal description}} – adds a standard short description

{{tlx|Portal maintenance status}} – maintenance information and tracking categories

{{center|1={{tlx|Portals browsebar}} – links for browsing portals by subject}}

{{Box-header colour|EDIT=yes|Introduction}}

{{tlx|Portal image banner}}

:Dynamically sized banner images randomly selected from a list. As many images and captions as desired may be specified

{{tlx|Transclude lead excerpt}}

:Dynamic excerpt that always matches the source. Normally taken from the lead of the root article. Number of paragraphs and images may be specified.

{{Box-footer}}

{{center|1={{tlx|Purge link portals}} – purge link for showing new selections}}

{{Flex columns

|1=

{{Box-header colour|EDIT=yes|Selected article}}

{{tlx|Transclude random excerpt}}

:Same as {{tl|Transclude lead excerpt}}, but specify multiple sources within the template call for alternating display; or

{{tlx|Transclude linked excerpt}}

:Same again, but specify multiple sources by linking to them on a separate page or section

{{Box-footer}}

{{Box-header colour|EDIT=yes|Selected anniversary}}

{{tlx|Transclude selected excerpt}}

:Shows a specific lead of an article for a specific time.

{{Box-footer}}

{{Box-header colour|EDIT=yes|Selected pictures}}

{{tlx|Random slideshow}}

:Shows a slideshow gallery of specified files, in a randomised order

{{tlx|Transclude files as random slideshow}}

:Same as {{tl|Random slideshow}}, but uses images from specified pages

{{Box-footer}}

{{Box-header colour|EDIT=yes|Selected quotation}}

{{tlx|Random quotation}}

:Shows a random quotation, from a specified set of quotations

{{Box-footer}}

|2=

{{Box-header colour|EDIT=yes|In the news}}

{{tlx|Transclude selected current events}}

:Shows news about a subject from Portal:Current events.

or User:JJMC89 bot/Wikinews importer

:Imports news from Wikinews.

{{Box-footer}}

{{Box-header colour|EDIT=yes|Did you know...}}

{{tlx|Transclude selected recent additions}}

:Shows Did you know? items for a subject from Wikipedia:Recent additions.

or User:JL-Bot/Project content

:Can be customised to show a limited number of DYKs.

{{Box-footer}}

{{Box-header colour|EDIT=yes|Categories}}

{{#tag:categorytree}}

:Shows an interactive category tree.
A category name may be used instead of {{PAGENAME}}, if the portal page name doesn't match the most relevant category.

{{Box-footer}}

}}

{{Box-header colour|EDIT=yes|Related portals}}

{{tlx|Related portals2}}

:Shows images and links to specified portals

{{Box-footer}}

{{Box-header colour|EDIT=yes|WikiProjects}}

No automation templates – configure manually

{{Box-footer}}

{{Box-header colour|EDIT=yes|Things to do}}

Transclude WikiProject to-do list

{{Box-footer}}

{{Box-header colour|EDIT=yes|Associated Wikimedia}}

{{tlx|Wikimedia for portals}}

:Creates a table of interwiki links related to the portal.

{{Box-footer}}

{{center|{{tlx|Portals}} – Explanatory and browsing links}}

Layout components

Here are the components used to generate the boxes above:

  • {{tlx|Box-header colour}} – start of a layout box. By default, the template will automatically select a color based on the page name.
  • {{tlx|Box-footer}} – end of a layout box.
  • {{tlx|Flex columns}} – two column layout, with equal-height columns, that switches to one column on narrow screens.

Components for portal talk pages

These should go on the base talk page, not subpages.

{{Plainlist|1=

  • {{tlx|Portal talk}} (instead of {{tl|talk header}})
  • {{tlx|WikiProject Portals}}

}}

{{Portal templates navbox}}