Template:Color/doc: Difference between revisions

Template page
mNo edit summary
No edit summary
Line 10: Line 10:
See [[MediaWiki:Common.css]] for an exhaustive list. Search for: text-color
See [[MediaWiki:Common.css]] for an exhaustive list. Search for: text-color


{{  
    <nowiki>{{clr|1|5P}}</nowiki>
#arraydefine: styles | 1,2,3,4,5,6,7,8,new,added,removed,reworked,buff,nerf
{{clr|1|5P}}
}}{{
    <nowiki>{{clr|2|2K}}</nowiki>
  #loop: i
{{clr|2|2K}}
  | 0
    <nowiki>{{clr|3|c.S}}</nowiki>
  | {{ #arraysize:styles }}
{{clr|3|c.S}}
  | <nowiki/>
    <nowiki>{{clr|4|j.H}}</nowiki>
* {{
{{clr|4|j.H}}
  #arraydefine: val | {{ #arrayindex:styles | {{ #var:i }} }} | ;
  }}<code><nowiki>{{clr|</nowiki>{{ #arrayindex: val | 0 }}<nowiki>|sample text}}</nowiki></code> → {{clr|{{ #arrayindex: val | 0 }}|Lorem ipsum dolor sit amet, consectetur adipiscing elit.}}
}}
 
{{doc/end}}
{{doc/end}}

Revision as of 22:29, 19 June 2020

This template is used to apply pre-defined colour/style classes to text.

Parameters

The first parameter is the class identifier.

The second parameter is the text to be styled.

Usage

See MediaWiki:Common.css for an exhaustive list. Search for: text-color

   {{clr|1|5P}}

5P

   {{clr|2|2K}}

2K

   {{clr|3|c.S}}

c.S

   {{clr|4|j.H}}

j.H

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.