No edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
{{ | {{ | ||
#arraydefine: styles | | #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
{{
- 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}}
→
}}
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.