Actions

Template

Difference between revisions of "ColCard"

From Titan's Teeth

Line 74: Line 74:
 
{{#vardefine:color|transparent}}
 
{{#vardefine:color|transparent}}
 
{{#vardefine:body|{{{4}}}}}
 
{{#vardefine:body|{{{4}}}}}
 +
inside1
 
}}
 
}}
 
|
 
|
Line 81: Line 82:
 
{{#vardefine:color|transparent}}
 
{{#vardefine:color|transparent}}
 
{{#vardefine:body|{{{3}}}}}
 
{{#vardefine:body|{{{3}}}}}
 +
inside2
 
}}
 
}}
 
|
 
|
Line 88: Line 90:
 
{{#vardefine:color|transparent}}
 
{{#vardefine:color|transparent}}
 
{{#vardefine:body|{{{2}}}}}
 
{{#vardefine:body|{{{2}}}}}
 +
inside3
 
}}
 
}}
 
|
 
|
Line 93: Line 96:
 
{{#vardefine:color|transparent}}
 
{{#vardefine:color|transparent}}
 
{{#vardefine:body|{{{1}}}}}
 
{{#vardefine:body|{{{1}}}}}
 +
inside4
 
}}{{#ifeq: {{#var:width}}|S|
 
}}{{#ifeq: {{#var:width}}|S|
 
{{#vardefine:width|200px}}
 
{{#vardefine:width|200px}}

Revision as of 15:24, 2 October 2019

Usage

Parameters: [Title] | [TitleSize] | [CardWidth] | [Color] | Body

Title, TitleSize, CardWidth and Color are optional.

Number Parameters Title TitleSize CardWidth Color Body
5 1 2 3 4 5
4 1 2 3 - 4
3 1 2 - - 3
2 1 - - - 2
1 - - - - 1

Example:

	{{ColdCardT|Title|2|W|hint|This is the body}} 

or

	{{ColdCardT|Title|This is the body}}

Title: If no title text is given, the card is created without a header.

TitleSize: Titlesize defaults to Level 3. It accepts '2', '3' and '4' as values.

CardWidth: CardWidth defaults to '300px'. It accepts any css compatible width value. It also accepts the enum values below. Contributors are encouraged to use the default or enum values. If another value seems widely needed, a discussion should be started on whether another static value is needed.

Enum Value
'S' 200px
'M' 300px
'W' 450px
'VW' 650px
'XW' 945px

Color: Color defaults to transparent. It accepts any css compatible color value. It also accepts

Enum Value
'hint' #f8f9fa
'white' #ffffff