Module:Portal bar/doc: Difference between revisions
Appearance
Content deleted Content added
no globals |
tstyles |
||
Line 2: | Line 2: | ||
{{High-use|76391}} |
{{High-use|76391}} |
||
{{Lua|Module:Portal|Module:Yesno|Module:No globals}} |
{{Lua|Module:Portal|Module:Yesno|Module:No globals}} |
||
{{Uses TemplateStyles|Module:Portal bar/styles.css}} |
|||
This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[WP:PORTAL|portals]]. |
This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[WP:PORTAL|portals]]. |
||
Revision as of 22:57, 14 November 2021
![]() | This Lua module is used on approximately 173,000 pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
![]() | This module depends on the following other modules: |
![]() | This module uses TemplateStyles: |
This module implements the {{portal bar}} template. It displays a horizontal bar of portals.
Usage
{{#invoke:Portal bar|main|''portal 1''|''portal 2 ''|...|border=''no''}}
- Positional parameters - the names of the portals to be displayed.
border
- if|border=
is equal tono
,n
,false
, or0
, then the portal box will have no border.redlinks
- if|redlinks=
is equal toyes
,y
,true
orinclude
, then the portal box will show redlinked portals
Examples
{{#invoke:portal bar|main|Art|Science|Literature}}
Produces:
{{#invoke:portal bar|main|Art|Science|Literature|border=no}}
Produces:
For further examples, see Template:Portal bar/testcases.
Images
This module uses Module:Portal to get portal images. To add, change, or remove images, please see the instructions at Module:Portal#Image.