Template:CSS: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "<includeonly><!-- -->{{#vardefine:ns|{{#if:{{#pos:{{{1|}}}|Template:}}||MediaWiki:}}}}<!-- -->{{MessageBox |class = css |header = This template uses CSS found at <!-- -->[[{{#var:ns}}{{{1|{{ROOTPAGENAME}}}}}.css]] <!-- -->([{{fullurl:{{#var:ns}}{{{1|{{ROOTPAGENAMEE}}}}}.css|action=edit}} edit] | <!-- -->[{{fullurl:{{#var:ns}}{{{1|{{ROOTPAGENAMEE}}}}}.css|action=history}} hist])<!-- -->{{#if:{{{2|}}}<!-- -->|<!-- -->{{#vardefine:ns|{{#if:{{#pos:{{{2|}}..." |
Removed edit and history links and Inverted icon for dark mode |
||
| Line 5: | Line 5: | ||
|header = This template uses CSS found at <!-- | |header = This template uses CSS found at <!-- | ||
-->[[{{#var:ns}}{{{1|{{ROOTPAGENAME}}}}}.css]] <!-- | -->[[{{#var:ns}}{{{1|{{ROOTPAGENAME}}}}}.css]] <!-- | ||
-->{{#if:{{{2|}}}<!-- | -->{{#if:{{{2|}}}<!-- | ||
-->|<!-- | -->|<!-- | ||
-->{{#vardefine:ns|{{#if:{{#pos:{{{2|}}}|Template:}}||MediaWiki:}}}}<!-- | -->{{#vardefine:ns|{{#if:{{#pos:{{{2|}}}|Template:}}||MediaWiki:}}}}<!-- | ||
--> and [[{{#var:ns}}{{{2}}}.css]] | --> and [[{{#var:ns}}{{{2}}}.css]]}}<!-- | ||
-->. | -->. | ||
|image = CSS Logo.svg | |image = CSS Logo.svg | ||
|imagewidth = 32px | |imagewidth = 32px | ||
|imageadjust = class=skin-invert-image | |||
|id = css | |id = css | ||
}}</includeonly><noinclude>{{Documentation|type=Notice}}</noinclude> | }}</includeonly><noinclude>{{Documentation|type=Notice}}</noinclude> | ||
Revision as of 08:24, 4 May 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Notice template for linking to CSS pages.
Syntax
{{CSS|first page|second page (optional)}}
Examples
This template uses CSS found at MediaWiki:Common.css and MediaWiki:Font.css.
Template Data
Link to CSS used for a template
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Name of the page (without namespace or css suffix)
| Page name | suggested |
| 2 | 2 | Second page name (if applicable) | Page name | suggested |