Editing
Module:Portal bar/doc
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Sandbox other||{{module rating|protected}} {{High-use}}}} {{Lua|Module:Portal|Module:Yesno|Module:No globals|Module:Arguments}} {{Uses TemplateStyles|Module:Portal bar/styles.css}} This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[WP:PORTAL|portals]]. See {{tl|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 [https://en.wikipedia.org/wiki/Special:ComparePages?page1=Module%3APortal+bar%2Fstyles.css&rev1=&page2=Module%3APortal+bar%2Fsandbox%2Fstyles.css&rev2=&action=&diffonly=&unhide= here]. == Usage == <nowiki>{{#invoke:Portal bar|main|''portal 1''|''portal 2 ''|...|border=''no''}}</nowiki> * Positional parameters - the names of the portals to be displayed. * <code>border</code> - if {{para|border}} is equal to <code>no</code>, <code>n</code>, <code>false</code>, or <code>0</code>, then the portal box will have no border. * <code>redlinks</code> - if {{para|redlinks}} is equal to <code>yes</code>, <code>y</code>, <code>true</code> or <code>include</code>, then the portal box will show redlinked portals == Examples == *<code><nowiki>{{#invoke:portal bar|main|Art|Science|Literature}}</nowiki></code> Produces: {{#invoke:portal bar|main|Art|Science|Literature}} *<code><nowiki>{{#invoke:portal bar|main|Art|Science|Literature|border=no}}</nowiki></code> Produces: {{#invoke:portal bar|main|Art|Science|Literature|border=no}} 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]].
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Lua
(
edit
)
Template:Nowrap
(
edit
)
Template:Para
(
edit
)
Template:Sandbox other
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Module:Arguments
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:No globals
(
edit
)
Module:Portal
(
edit
)
Module:Portal bar
(
edit
)
Module:String
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Uses TemplateStyles/config
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information