Template:Lua sidebar: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Tom.Reding m Rem double doc |
m 18 revisions imported |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Sidebar|width=238px | {{Sidebar|width=238px | ||
| title = Related | | title = Related pages | ||
| content1 = {{div col|colwidth=8em}} | | content1 = {{div col|colwidth=8em}} | ||
<div class="plainlist"> | <div class="plainlist"> | ||
* [[Template:{{{title|{{BASEPAGENAME}}}}}|Template]] {{#if:{{#invoke:redirect|isRedirect|Template talk:{{{title|{{BASEPAGENAME}}}}}}}||([[Template talk:{{{title|{{BASEPAGENAME}}}}}|talk]])}} | * [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|Template]] {{#if:{{#invoke:redirect|isRedirect|Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}}}||([[Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|talk]])}} | ||
* [[Template:{{{title|{{BASEPAGENAME}}}}}/sandbox|Template sandbox]] | * [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/sandbox|Template sandbox]] | ||
* [[Template:{{{title|{{BASEPAGENAME}}}}}/testcases|Template testcases]] | * [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/testcases|Template testcases]] | ||
* [[Special:PrefixIndex/Template:{{{title|{{BASEPAGENAME}}}}}/|Template subpages]] | * [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/doc|Template doc]] | ||
* [[Module:{{{title|{{BASEPAGENAME}}}}}|Module]] {{#if:{{#invoke:redirect|isRedirect|Module talk:{{{title|{{BASEPAGENAME}}}}}}}||([[Module talk:{{{title|{{BASEPAGENAME}}}}}|talk]])}} | * [[Special:PrefixIndex/Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/|Template subpages]] | ||
* [[Module:{{{title|{{BASEPAGENAME}}}}}/sandbox|Module sandbox]] | * [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}|Module]] {{#if:{{#invoke:redirect|isRedirect|Module talk:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}}}||([[Module talk:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}|talk]])}} | ||
* [[Module:{{{title|{{BASEPAGENAME}}}}}/testcases|Module testcases]] | * [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/sandbox|Module sandbox]] | ||
* [[Special:PrefixIndex/Module:{{{title|{{BASEPAGENAME}}}}}/|Module subpages]] | * [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/testcases|Module testcases]] | ||
* [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/doc|Module doc]] | |||
* [[Special:PrefixIndex/Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/|Module subpages]] | |||
</div> | </div> | ||
{{div col end}} | {{div col end}} | ||
| content2 = {{{1|}}} | | content2 = {{{1|}}} | ||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 04:44, 3 September 2020
Related pages |
---|
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}}