Template:Card: Difference between revisions
Template page
More actions
This should work hopefully |
add background-color that's slightly almost transparent for dark themes |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| {{card/style}} | <includeonly>{| {{card/style|font-size: 80%; background-color: rgba(200, 200, 210, .05);}} | ||
{{#if:{{{title|}}}|{{!}}style="border-bottom: 1px grey solid;"{{!}} {{{title|}}}}} | {{#if:{{{title|}}}|{{!}}style="border-bottom: 1px grey solid;"{{!}} {{allcaps|<b>{{{title|}}}</b>}}}} | ||
|- | |- | ||
| {{{body}}} | | {{{body}}} | ||
{{#if:{{{name|}}}|{{!}}- | {{#if:{{{name|}}}|{{!}}- | ||
{{!}}style="border-top: 1px grey solid; text-align: right;"{{!}} <i>{{{name|}}}</i>}} | {{!}}style="border-top: 1px grey solid; text-align: right;"{{!}} <i>{{{name|}}}</i>}} | ||
|} | |}</includeonly><noinclude>{{documentation}} [[Category:Template]] [[Category:Block template]]</noinclude> | ||
Latest revision as of 02:27, 26 November 2024
{{Card}} creates a small box suitable for quotes, it's primarily meant for comments on Template documentation and Help pages.
Usage
{{Card|title|body|name}}
Examples
| Example Title |
| Lorem Ipsum random shit in this box. |
| Me |
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | no description | Unknown | optional |
| body | body | no description | Unknown | optional |
| name | name | no description | Unknown | optional |