Template:TSLoader: Difference between revisions
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: | <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: | <syntaxhighlight lang="wikitext" style="max-width:280px">{{TSLoader|Example/styles.css}}</syntaxhighlight> | ||
== Usage == | == Usage == | ||
Revision as of 13:41, 15 January 2026
Documentation
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
Templatenamespace, the prefix can be omitted.
- If this page is in