Template:TSLoader: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{ #invoke: TSLoader | main }}</includeonly><noinclude> === Documentation === {{shortcut|tsl|tsloader}} This template loads template styles in pages. Instead of the direct tag: <syntaxhighlight lang="wikitext" style="max-width:300px"><templatestyles source="MyStyles.css" /></syntaxhighlight> You can use the template: <syntaxhighlight lang="wikitext" style="max-width:300px">{{TSLoader|MyStyles.css}}</syntaxhighlight> == Usage == {{tcode|TSLoader|stylesheet..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #invoke: TSLoader | main }}</includeonly><noinclude>
<includeonly>{{ #invoke: TSLoader | main }}</includeonly><noinclude>
=== Documentation ===
=== Documentation ===
{{shortcut|tsl|tsloader}}
{{shortcut|tsl|TSLoader}}
This template loads template styles in pages.
This template loads template styles in pages.
---


Instead of the direct tag:
Instead of the direct tag:
<syntaxhighlight lang="wikitext" style="max-width:300px"><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:300px">{{TSLoader|MyStyles.css}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" style="max-width:280px">{{TSLoader|Example/styles.css}}</syntaxhighlight>


== Usage ==
== Usage ==
{{tcode|TSLoader|stylesheet}}
{{tcode|TSLoader|stylesheet}}
* {{p|1}}: The page name of the stylesheet, which will be loaded. If this page is in <code>Template</code> namespace, the prefix can be omitted.
* {{p|1}}: The page name of the stylesheet, which will be loaded.  
** If this page is in <code>Template</code> namespace, the prefix can be omitted.





Latest revision as of 07:14, 16 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.