Module:Portal bar/doc: Difference between revisions
en>Hike395 (lookup module use) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 00:24, 15 August 2022
File:Lua-Logo.svg | This module depends on the following other modules: |
Script error: No such module "Uses TemplateStyles". This module implements the {{portal bar}} template. It displays a horizontal bar of portals.
See {{Portal bar/testcases}} for testcases.
Note: in order to make the test cases work, the Sandbox CSS classes have "-sand" appended to their names. If you wish to update the CSS, copy the contents of each class from Module:Portal bar/sandbox/styles.css to Module:Portal bar/styles.css, but do not alter the class names, nor just copy-paste the entire CSS file. For the current difference in CSS between Sandbox and Main, see here.
Usage[edit source]
{{#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[edit source]
{{#invoke:portal bar|main|Art|Science|Literature}}
Produces:
Lua error in mw.title.lua at line 318: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{#invoke:portal bar|main|Art|Science|Literature|border=no}}
Produces:
Lua error in mw.title.lua at line 318: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
For further examples, see Template:Portal bar/testcases.
Images[edit source]
This module uses Module:Portal to get portal images. To add, change, or remove images, please see the instructions at Module:Portal#Image.