Template:Main Page/Sandbox/card: Difference between revisions
Template page
More actions
Created page with "<noinclude> Usage: {{Main_Page/Sandbox/card|icon=emoji|link=PageName|label=Text|color=red|external=yes/no}} </noinclude><templatestyles src="Template:Main_Page/Sandbox/card/styles.css" /> <div class="home-card {{#if:{{{color|}}}|home-card--{{{color}}}|}}"> <div class="home-card__icon">{{{icon|}}}</div> <div class="home-card__label"> {{#if:{{{external|}}} | [{{{link}}} {{{label}}}] | [[Special:MyLanguage/{{{link|}}}|{{{label}}}]]..." |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Usage: {{Main_Page/Sandbox/card|icon=emoji|link=PageName|label=Text|color=red|external=yes/no}} | Usage: <pre>{{Main_Page/Sandbox/card|icon=emoji|link=PageName|label=Text|color=red|external=yes/no}}</pre> | ||
</noinclude><templatestyles src="Template:Main_Page/Sandbox/card/styles.css" /> | </noinclude><templatestyles src="Template:Main_Page/Sandbox/card/styles.css" /> | ||
<div class="home-card {{#if:{{{color|}}}|home-card--{{{color}}}|}}"> | <div class="home-card {{#if:{{{color|}}}|home-card--{{{color}}}|}} {{#if:{{{external|}}}|home-card--external plainlinks|}}"> | ||
<div class="home-card__icon">{{{icon|}}}</div> | |||
<div class="home-card__label">{{#if:{{{external|}}}| [{{{link}}} {{{label}}}] | [[Special:MyLanguage/{{{link|}}}|{{{label}}}]] }}</div> | |||
</div> | </div> | ||
Latest revision as of 20:59, 3 February 2026
Usage:
{{Main_Page/Sandbox/card|icon=emoji|link=PageName|label=Text|color=red|external=yes/no}}