Template:Article thumbnail: Difference between revisions
Content deleted Content added
Created page with "<templatestyles src="Article thumbnail/styles.css" /> <figure class="article-thumb"> <div class="article-thumb__imgwrap"> [[File:{{{image}}} |180px |link={{{page|{{BASEPAGENAME}}}}} |alt={{{alt|Thumbnail for {{{page|{{BASEPAGENAME}}}}}}}} |class=article-thumb__img]] </div> <figcaption class="article-thumb__caption">[[{{{page|{{BASEPAGENAME}}}}}]]</figcaption> </figure>" |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
Line 1:
<templatestyles src="Article thumbnail/styles.css" />
<
[[File:{{{image|work-in-progress-book.jpg}}}|{{{width|180}}}px|link={{{page|{{BASEPAGENAME}}}}}|alt={{{alt|Thumbnail for {{{page|{{BASEPAGENAME}}}}}}}}]]
</div>
<div class="article-thumb__caption">
<div
</div><noinclude>
== Parameters ==
* <code>image</code> – File name without prefix.
* <code>page</code> – Target page link.
* <code>caption</code> – Text under the link (color #202122).
* <code>align</code> – Optional. Set to <code>left</code>, <code>right</code>, or <code>center</code>. Defaults to <code>center</code>.
* <code>width</code> – Image width (numeric).
== Example (Left Aligned) ==
<pre>
{{Article thumbnail
| image = Atomic Habits cover.jpg
| page = Atomic Habits
| caption = James Clear (2018)
| align = left
}}
</pre>
</noinclude>
| |||