Template:Lua sidebar/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Jc86035 m ce |
m 6 revisions imported |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
This template displays links which are generated based on a page's base page name. These are useful for templates which work using a Lua module | This template displays links which are generated based on a page's base page name. These are useful for templates which work using a specific Lua module. The parameter {{para|title}} can be used to add the title of the template and module, if needed; {{para|template}} and {{para|module}} do the same, but for only the template and only the module respectively. | ||
The first unnamed parameter or {{para|1}} can be used to add more information; {{tlx|Sidebar|2=child=yes}} can be used inside it for further customization. The default links use {{tl|Div col}} and the <kbd>plainlist</kbd> CSS class. | |||
== Usage == | == Usage == | ||
| Line 8: | Line 10: | ||
* With an extra unbulleted list: <code><nowiki>{{Lua sidebar|{{ubl|List item 1|List item 2}}}}</nowiki></code> | * With an extra unbulleted list: <code><nowiki>{{Lua sidebar|{{ubl|List item 1|List item 2}}}}</nowiki></code> | ||
* For [[Template:Infobox]] and [[Module:Infobox]]: <code><nowiki>{{Lua sidebar|title=Infobox}}</nowiki></code> | * For [[Template:Infobox]] and [[Module:Infobox]]: <code><nowiki>{{Lua sidebar|title=Infobox}}</nowiki></code> | ||
* For [[Template:Coord]], on [[Module talk:Coordinates]]: <code><nowiki>{{Lua sidebar|template=Coord}}</nowiki></code> | |||
* For [[Module:Coordinates]], on [[Template talk:Coord]]: <code><nowiki>{{Lua sidebar|module=Coordinates}}</nowiki></code> | |||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Latest revision as of 04:44, 3 September 2020
| This is a documentation subpage for Template:Lua sidebar. It may contain usage information, categories and other content that is not part of the original template page. |
This template displays links which are generated based on a page's base page name. These are useful for templates which work using a specific Lua module. The parameter |title= can be used to add the title of the template and module, if needed; |template= and |module= do the same, but for only the template and only the module respectively.
The first unnamed parameter or |1= can be used to add more information; {{Sidebar|child=yes}} can be used inside it for further customization. The default links use {{Div col}} and the plainlist CSS class.
Usage
- Without any extra links:
{{Lua sidebar}} - With an extra unbulleted list:
{{Lua sidebar|{{ubl|List item 1|List item 2}}}} - For Template:Infobox and Module:Infobox:
{{Lua sidebar|title=Infobox}} - For Template:Coord, on Module talk:Coordinates:
{{Lua sidebar|template=Coord}} - For Module:Coordinates, on Template talk:Coord:
{{Lua sidebar|module=Coordinates}}