Template:Lua sidebar: Difference between revisions

From Madison Pizza Wiki
link to "Module talk" page for Module testcases, which displays the output of the testcases (better than the programming in most cases)
 
m 1 revision imported
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Sidebar|width=238px
{{Sidebar
| class = lua-sidebar
| templatestyles = Template:Lua sidebar/styles.css
| title = Related pages
| title = Related pages
| content1 = {{div col|colwidth=8em}}
| content1 = {{plainlist|1=
<div class="plainlist">
* [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|Template]] {{#if:{{#invoke:redirect|isRedirect|Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}}}||([[Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|talk]])}}
* [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|Template]] {{#if:{{#invoke:redirect|isRedirect|Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}}}||([[Template talk:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}|talk]])}}
* [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/sandbox|Template sandbox]]
* [[Template:{{{template|{{{title|{{BASEPAGENAME}}}}}}}}/sandbox|Template sandbox]]
Line 13: Line 14:
* [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/doc|Module doc]]
* [[Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/doc|Module doc]]
* [[Special:PrefixIndex/Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/|Module subpages]]
* [[Special:PrefixIndex/Module:{{{module|{{{title|{{BASEPAGENAME}}}}}}}}/|Module subpages]]
</div>
}}
{{div col end}}
| content2 = {{{1|}}}
| content2 = {{{1|}}}
}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 03:48, 21 October 2021

Template documentation[view] [edit] [history] [purge]

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