Difference between revisions of "Template:Article card"
Jump to navigation
Jump to search
blackwiki>Weegaweek (added scroll bar when there is too much text) |
blackwiki>Certes (If the description is missing, transclude the article's lead as an excerpt) |
||
| Line 2: | Line 2: | ||
<div style="margin-right: 10px; padding: 0; max-width: 200px; height: 110px; float: left; overflow: hidden; border-right: 1px solid #999; text-align: center;"><div class="nomobile">[[file:{{{image|Wikipedia-logo-v2.svg}}}|x110px|link= {{{article|wikipedia}}}]]</div></div> | <div style="margin-right: 10px; padding: 0; max-width: 200px; height: 110px; float: left; overflow: hidden; border-right: 1px solid #999; text-align: center;"><div class="nomobile">[[file:{{{image|Wikipedia-logo-v2.svg}}}|x110px|link= {{{article|wikipedia}}}]]</div></div> | ||
<div style="margin: 3px; max-height: 100%; overflow: scroll;"> | <div style="margin: 3px; max-height: 100%; overflow: scroll;"> | ||
| − | [[{{{article|wikipedia}}}|<span style="font-family: serif; color: black; text-decoration: underline; text-decoration-color: white;"><strong>{{{article|<em>{{{ | + | [[{{{article|wikipedia}}}|<span style="font-family: serif; color: black; text-decoration: underline; text-decoration-color: white;"><strong>{{{article|<em>{{{article}}}</em> Wikipedia}}}</strong></span>]] |
<br /> | <br /> | ||
| − | [[{{{article|Wikipedia}}}|<span style="color: #333; text-decoration: underline; text-decoration-color: white;">{{small|{{{description|<em>{{{description}}}</em> Lorem ipsum dolor sit amet, consectetur adipiscing elit.}}}}}</span>]] | + | {{#if:{{{description|}}} |
| + | |[[{{{article|Wikipedia}}}|<span style="color: #333; text-decoration: underline; text-decoration-color: white;">{{small|{{{description|<em>{{{description}}}</em> Lorem ipsum dolor sit amet, consectetur adipiscing elit.}}}}}</span>]] | ||
| + | |<span style="color: #333; text-decoration: underline; text-decoration-color: white;">{{Transclude lead excerpt|{{{article|Wikipedia}}}}}</span> | ||
| + | }} | ||
</div> | </div> | ||
</div><noinclude>{{documentation}}</noinclude> | </div><noinclude>{{documentation}}</noinclude> | ||
Revision as of 15:56, 28 September 2018
Script error: No such module "Uses TemplateStyles".
Contents
About
This template is an alternative to {{Article card vertical}}
Intended use
This template is intended for use on Portals. It creates a modern looking "card" linking to an article with a description and an image.
Parameters
| Parameter | Use | Notes |
|---|---|---|
| image | Specify the name of the image related to the article. |
|
| article | Specify the article you are linking to. | |
| description | Text shown under the article name. |
|
| width | Specify the width of the box. | not necessary |
Example
{{article card
| article= Ward Cunningham
| description= Howard G. "Ward" Cunningham (born May 26, 1949) is an American computer programmer who developed the first wiki.
| image= Ward_Cunningham_-_Commons-1.jpg
}}
produces:
| The above documentation is transcluded from Template:Article card/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |