Module:Portal bar/doc: Difference between revisions
Appearance
Content deleted Content added
add links to test cases |
Foxtrot1296 (talk | contribs) m update wikilinks |
||
Line 3: | Line 3: | ||
{{Lua|Module:Portal|Module:Yesno|Module:Arguments}} |
{{Lua|Module:Portal|Module:Yesno|Module:Arguments}} |
||
{{Uses TemplateStyles|Module:Portal bar/styles.css}} |
{{Uses TemplateStyles|Module:Portal bar/styles.css}} |
||
This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[ |
This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[Wikipedia:Portal |portals]]. |
||
See [[Template:Portal bar/testcases|here]] and [[Template:Related portals2/testcases|here]] for testcases. |
See [[Template:Portal bar/testcases|here]] and [[Template:Related portals2/testcases|here]] for testcases. |
||
Line 18: | Line 18: | ||
== Examples == |
== Examples == |
||
*<code><nowiki>{{#invoke:portal bar|main| |
*<code><nowiki>{{#invoke:portal bar|main|Visual arts|Science|Literature}}</nowiki></code> |
||
Produces: |
Produces: |
||
{{#invoke:portal bar|main| |
{{#invoke:portal bar|main|Visual arts|Science|Literature}} |
||
*<code><nowiki>{{#invoke:portal bar|main| |
*<code><nowiki>{{#invoke:portal bar|main|Visual arts|Science|Literature|border=no}}</nowiki></code> |
||
Produces: |
Produces: |
||
{{#invoke:portal bar|main| |
{{#invoke:portal bar|main|Visual arts|Science|Literature|border=no}} |
||
For further examples, see [[Template:Portal bar/testcases]]. |
For further examples, see [[Template:Portal bar/testcases]]. |
Latest revision as of 20:10, 11 May 2023
![]() | 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.
See here and here 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]{{#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]{{#invoke:portal bar|main|Visual arts|Science|Literature}}
Produces:
{{#invoke:portal bar|main|Visual arts|Science|Literature|border=no}}
Produces:
For further examples, see Template:Portal bar/testcases.
Images
[edit]This module uses Module:Portal to get portal images. To add, change, or remove images, please see the instructions at Module:Portal#Image.