Template:Article thumbnail: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
Line 1:
<templatestyles src="Article thumbnail/styles.css" />
<div class="article-thumb article-thumb--align-{{{align|center}}}">
<div class="article-thumb__imgwrap">
[[File:{{{image|work-in-progress-book.jpg}}}|{{{width|180}}}px|link={{{page|{{BASEPAGENAME}}}}}|alt={{{alt|Thumbnail for {{{page|{{BASEPAGENAME}}}}}}}}]]
Line 9:
</div>
</div><noinclude>
== What this does ==
Displays a small, consistent '''article thumbnail''' card: an image that links to a page, with a caption under it.
 
== Parameters ==
* <code>image</code> – Optional. File name without <code>File:</code> prefix.
* <code>page</code> – Optional. Target page for the link. Defaults to <code>{{BASEPAGENAME}}</code>.
* <code>caption</code> – Optional. Plain text description appearingText under the pagelink link(color #202122).
* <code>widthalign</code> – Optional. NumericSet widthto for<code>left</code>, the<code>right</code>, fileor (defaults<code>center</code>. Defaults to 180)<code>center</code>.
* <code>altwidth</code> – Optional.Image Accessibilitywidth text(numeric).
 
== Example (Left Aligned) ==
<pre>
{{Article thumbnail
Line 25 ⟶ 22:
| page = Atomic Habits
| caption = James Clear (2018)
| align = left
}}
</pre>