Template:TSLoader: Difference between revisions
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 |
||
| Line 5: | Line 5: | ||
Instead of the direct tag: | Instead of the direct tag: | ||
<syntaxhighlight lang="wikitext" style="max-width: | <syntaxhighlight lang="wikitext" style="max-width:400px"><templatestyles source="MyStyles.css" /></syntaxhighlight> | ||
You can use the template: | You can use the template: | ||
<syntaxhighlight lang="wikitext" style="max-width: | <syntaxhighlight lang="wikitext" style="max-width:400px">{{TSLoader|MyStyles.css}}</syntaxhighlight> | ||
== Usage == | == Usage == | ||
Revision as of 13:36, 15 January 2026
Documentation
This template loads template styles in pages.
Instead of the direct tag:
<templatestyles source="MyStyles.css" />
You can use the template:
{{TSLoader|MyStyles.css}}
Usage
{{TSLoader|stylesheet}}
|1=: The page name of the stylesheet, which will be loaded. If this page is inTemplatenamespace, the prefix can be omitted.