Module:Portal bar/doc: Difference between revisions

Content deleted Content added
tstyles
m update wikilinks
 
(6 intermediate revisions by 2 users not shown)
Line 1:
{{Sandbox other||{{module rating|protected}}
{{High-use|76391}}}}
{{Lua|Module:Portal|Module:Yesno|Module:No globalsArguments}}
{{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 [[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].
 
== Usage ==
Line 14 ⟶ 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]].