Module:Portal bar/doc: Difference between revisions

Content deleted Content added
remove no globals link
m update wikilinks
 
(One intermediate revision by one other user not shown)
Line 3:
{{Lua|Module:Portal|Module:Yesno|Module:Arguments}}
{{Uses TemplateStyles|Module:Portal bar/styles.css}}
This module implements the {{tl|portal bar}} template. It displays a horizontal bar of [[WPWikipedia:PORTALPortal |portals]].
 
See {{tl|[[Template:Portal bar/testcases}}|here]] and [[Template:Related portals2/testcases|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 [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].
Line 18:
 
== Examples ==
*<code><nowiki>{{#invoke:portal bar|main|ArtVisual arts|Science|Literature}}</nowiki></code>
 
Produces:
 
{{#invoke:portal bar|main|ArtVisual arts|Science|Literature}}
 
*<code><nowiki>{{#invoke:portal bar|main|ArtVisual arts|Science|Literature|border=no}}</nowiki></code>
 
Produces:
 
{{#invoke:portal bar|main|ArtVisual arts|Science|Literature|border=no}}
 
For further examples, see [[Template:Portal bar/testcases]].