Template:TSLoader: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


Instead of the direct tag:
Instead of the direct tag:
<syntaxhighlight lang="wikitext" style="max-width:360px"><templatestyles source="MyStyles.css" /></syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:400px"><templatestyles source="Example/styles.css" /></syntaxhighlight>


You can use the template:
You can use the template:
<syntaxhighlight lang="wikitext" style="max-width:230px">{{TSLoader|MyStyles.css}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:280px">{{TSLoader|Example/styles.css}}</syntaxhighlight>


== Usage ==
== Usage ==

Revision as of 13:41, 15 January 2026

Documentation

Shortcuts

This template loads template styles in pages.

---

Instead of the direct tag:

<templatestyles source="Example/styles.css" />

You can use the template:

{{TSLoader|Example/styles.css}}

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.