Difference between revisions of "Template:Card"
(Created page with "<includeonly><div style="border: solid 3px #000000; border-radius: 10px; box-shadow: -3px 3px 2px rgba(0, 0, 0, 0.6); display: inline-block; overflow: hidden; width: 200px;"><...") |
|||
Line 1: | Line 1: | ||
<includeonly><div style="border: solid 3px #000000; border-radius: 10px; box-shadow: -3px 3px 2px rgba(0, 0, 0, 0.6); display: inline-block; overflow: hidden; width: 200px;"><div style="height: 200px; overflow: hidden; width: 200px;">{{#ifexist: {{{image|}}} | [[{{{image}}}|200px]] | [[File:FNORD.png|200x200px|link=]] }}</div><div style="background: radial-gradient(#ffffff, #fcffd5); display: flex; flex-direction: column; font-family: 'Philosopher', serif; font-size: calc(2vw); font-weight: 900; height: 80px; justify-content: center; line-height: 1; text-align: center; vertical-align: bottom; width: 200px;">{{{title}}}</div></div></includeonly> | <includeonly><div style="border: solid 3px #000000; border-radius: 10px; box-shadow: -3px 3px 2px rgba(0, 0, 0, 0.6); display: inline-block; overflow: hidden; width: 200px;"><div style="height: 200px; overflow: hidden; width: 200px;">{{#ifexist: {{{image|}}} | [[{{{image}}}|200px]] | [[File:FNORD.png|200x200px|link=]] }}</div><div style="background: radial-gradient(#ffffff, #fcffd5); display: flex; flex-direction: column; font-family: 'Philosopher', serif; font-size: calc(2vw); font-weight: 900; height: 80px; justify-content: center; line-height: 1; text-align: center; vertical-align: bottom; width: 200px;">{{{title}}}</div></div></includeonly> | ||
− | <noinclude>The '''Card''' template can be used to insert a CS-styled card in an article | + | <noinclude>The '''Card''' template can be used to insert a CS-styled card in an article. To insert it in a page, use the following code: |
<pre>{{Card | <pre>{{Card | ||
| image = | | image = | ||
| title = | | title = | ||
− | |||
}}</pre> | }}</pre> | ||
Line 10: | Line 9: | ||
| image = File:Neville.png | | image = File:Neville.png | ||
| title = Neville, an acquaintance | | title = Neville, an acquaintance | ||
− | |||
}}</noinclude> | }}</noinclude> |
Revision as of 13:11, 10 July 2018
The Card template can be used to insert a CS-styled card in an article. To insert it in a page, use the following code:
{{Card | image = | title = }}
Example: