Template:Card: Difference between revisions
Tag: Undo |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="position: relative; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; padding: 18px; text-align: center;"> | <div style="position: relative; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; padding: 18px; text-align: center;"> | ||
<span class="hwgh-card-overlay">[[{{{1}}}| ]]</span>{{#if:{{{image|}}}|[[File:{{{image}}}| | <span class="hwgh-card-overlay">[[{{{1}}}| ]]</span>{{#if:{{{image|}}}|[[File:{{{image}}}|220x120px|link={{{1}}}|class=hwgh-card-img|center]]|{{#if:{{{icon|}}}|<div style="font-size: 1.4em; margin-bottom: 6px;">{{{icon}}}</div>}}}} | ||
'''{{{1}}}'''{{#if:{{{desc|}}}|<div style="color: #666; font-size: 0.9em; margin-top: 4px;">{{{desc}}}</div>}} | '''{{{1}}}'''{{#if:{{{desc|}}}|<div style="color: #666; font-size: 0.9em; margin-top: 4px;">{{{desc}}}</div>}} | ||
</div><noinclude> | </div><noinclude> | ||
| Line 9: | Line 9: | ||
{{Card|Page Name|image=some-file.jpg|desc=Short description of the page.}} | {{Card|Page Name|image=some-file.jpg|desc=Short description of the page.}} | ||
</pre> | </pre> | ||
Requires | Requires rules in [[MediaWiki:Common.css]] — see template talk page. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:18, 14 September 2026
Usage
{{Card|Page Name}}
{{Card|Page Name|icon=🌾|desc=Short description of the page.}}
{{Card|Page Name|image=some-file.jpg|desc=Short description of the page.}}
Requires rules in MediaWiki:Common.css — see template talk page.