Template:TSLoader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
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:360px"><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:230px">{{TSLoader|MyStyles.css}}</syntaxhighlight> | ||
== Usage == | == Usage == | ||
Revision as of 13:37, 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.