Template:TSLoader

From The Blockheads Wiki
Revision as of 15:45, 6 August 2024 by JarlPenguin (talk | contribs) (Created page with "<includeonly>{{ #invoke: TSLoader | main }}</includeonly><noinclude>{{documentation}} <!-- Put categories/interwikis on the documentation page --> </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] [history] [refresh]Documentation
This template uses Module:TSLoader, a script written in Lua.
Shortcuts

This template loads template styles in pages.

Although TemplateStyles have its built-in deduplicator, but multiple reference towards the same stylesheet still remains, will extend the length of the page, might cause performance issues.

This template avoids this, makes sure that only one reference remains in the page.

Usage

{{TSLoader|stylesheet}}

  • |1=: The page name of the stylesheet, which will be loaded. If this page is in Template namespace, the prefix can be omitted.

Effect

If the parameter is empty, or the stylesheet is successfully loaded, it will display nothing.

If the parameter points a page that not exist, it will display an error.

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:TSLoader/doc.