Module:Portal bar/doc
यह Module:Portal bar हेतु प्रलेख पृष्ठ है
This Lua module is used on approximately ७६,००० pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module depends on the following other modules: |
This module uses TemplateStyles: |
This module implements the साँचा:tl template. It displays a horizontal bar of portals.
See साँचा:tl 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
{{#invoke:Portal bar|main|''portal 1''|''portal 2 ''|...|border=''no''}}
- Positional parameters - the names of the portals to be displayed.
border
- if साँचा:para is equal tono
,n
,false
, or0
, then the portal box will have no border.redlinks
- if साँचा:para is equal toyes
,y
,true
orinclude
, then the portal box will show redlinked portals
Examples
{{#invoke:portal bar|main|Art|Science|Literature}}
Produces:
स्क्रिप्ट त्रुटि: "portal bar" ऐसा कोई मॉड्यूल नहीं है।
{{#invoke:portal bar|main|Art|Science|Literature|border=no}}
Produces:
स्क्रिप्ट त्रुटि: "portal bar" ऐसा कोई मॉड्यूल नहीं है।
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.