Toggle menu
15
239
107
27.9K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Portal bar/sandbox/doc: Difference between revisions

From Kenshi Wiki
Prd (talk | contribs)
Created page with ";Sandbox for Module:Portal bar <includeonly> Category:Module sandboxes Category:Module sand&test </includeonly> <noinclude> Category:Module documents Category:Module sand&test documents </noinclude>"
 
Prd (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
;Sandbox for [[Module:Portal bar]]
<includeonly>
<includeonly>
{{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 [[Wikipedia:Portal |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 ==
<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|Visual arts|Science|Literature}}</nowiki></code>
Produces:
{{#invoke:portal bar|main|Visual arts|Science|Literature}}
*<code><nowiki>{{#invoke:portal bar|main|Visual arts|Science|Literature|border=no}}</nowiki></code>
Produces:
{{#invoke:portal bar|main|Visual arts|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]].
[[Category:Module sandboxes]]
[[Category:Module sandboxes]]
[[Category:Module sand&test]]
[[Category:Module sand&test]]

Latest revision as of 23:26, 14 March 2025