Template:Color/doc: Difference between revisions

Template page
No edit summary
mNo edit summary
Line 11: Line 11:


{{  
{{  
#arraydefine: styles | fire,water,earth,wind,light,dark,aura0,aura1,aura2,aura3,auramain,aurasub,cb-n,cb-od,cb-tr,new,added,removed,reworked,new-effect,old-effect
#arraydefine: styles | 1,2,3,4,5,6,7,8,new,added,removed,reworked,buff,nerf
}}{{
}}{{
   #loop: i
   #loop: i

Revision as of 23:45, 16 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

{{

  1. arraydefine: styles | 1,2,3,4,5,6,7,8,new,added,removed,reworked,buff,nerf

}}{{

 #loop: i
 | 0
 | {{ #arraysize:styles }}
 | 
  • {{
 #arraydefine: val | {{ #arrayindex:styles |  }} | ;
 }}{{c|{{ #arrayindex: val | 0 }}|sample text}}C.png

}}

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