No edit summary
No edit summary
 
(2 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.


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 ==
{{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.