Template:ArticleCard: Difference between revisions
From AbhiprayaVedi
mNo edit summary Tag: 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:ArticleCard/styles.css" /> | <templatestyles src="Template:ArticleCard/styles.css" /> | ||
<div class="article-card"> | <div class="article-card"> | ||
<!-- | <!-- 1. Image explicitly at the top --> | ||
{{#if: {{{Image1|}}} | <div class="article-thumbnail"> {{{Image1 | {{#if: {{{Image1|}}} | | ||
<div class="article-thumbnail"> | |||
[[File:{{{Image1}}}|center|300px]] | |||
</div> | |||
}} | }} | ||
<!-- 2. Content block below the image --> | |||
<div class="article-info"> | <div class="article-info"> | ||
<!-- | <!-- Displayname directly under the image --> | ||
<h3 class="article-title">[[{{{ArticlePage|}}}|{{{Displayname|{{{1}}}}}}]]</h3> | |||
<!-- | <!-- Intro text text constrained by line clamping in CSS --> | ||
{{#if: {{{ | {{#if: {{{Intro|}}} | <p class="article-intro">{{{Intro|}}}</p> }} | ||
<!-- | <!-- Optional Author photo placeholder if passed down --> | ||
{{#if: {{{ | {{#if: {{{Authorphoto|}}} | <div class="author-photo-hidden">[[File:{{{Authorphoto}}}|20px]]</div> }} | ||
<!-- 3. Author name and date paired in a single bottom row --> | |||
<div class="article-meta-row"> | |||
<!-- | {{#if: {{{Author|}}} | <span class="article-author">{{{Author|}}}</span> }} | ||
{{#if: {{{ | {{#if: {{{Published date|}}} | | ||
<span class="article-date">{{#time: j F Y | {{{Published date|}}} | ml }}</span> | |||
}} | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
Revision as of 15:53, 9 June 2026
[[|{{{1}}}]]