Template:TSLoader

From Tensura Wiki
Revision as of 10:55, 25 September 2026 by imported>Merge (merge.py)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
File:Template-info.svg Documentation Edit this documentation at Template:TSLoader/doc.
(edit • history • purge)

Template:Documentation header

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

Template:Tcode

  • |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.

Template:Sandbox other