Template:TSLoader/doc

From The Blockheads Wiki
Revision as of 15:48, 6 August 2024 by JarlPenguin (talk | contribs) (Created page with "{{documentation header}} <!-- documentation here --> {{lua|TSLoader}} {{shortcut|tsl|tsloader}} 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 == {{tcode|TSLoader|stylesheet}} * {{p|1}}: The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page. It should be transcluded into Template:TSLoader. See Template:Documentation for more information.
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.