Template:ArticleCard: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
Tag: 2017 source edit
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<templatestyles src="Template:ArticleCard/styles.css" />
<div class="index-card">
<div class="article-card">
  {{#if: {{#show: {{{1}}} |?Image1 |link=none}} |
<!-- 1. Image explicitly at the top --> {{#if: {{{Image1|}}} | <div class="article-thumbnail"> {{{Image1}}} </div>  }}
  <div class="index-card-image">
<!-- 2. Content block below the image -->
    [[File:{{#show: {{{1}}} |?Image1 |link=none}}|400x250px]]
<div class="article-info">
  </div>
<!-- Displayname directly under the image -->
  }}
<h3 class="article-title">[[{{{ArticlePage|}}}|{{{Displayname|{{{1}}}}}}]]</h3>
  <div class="index-card-text">
<!-- Intro container using standard CSS clipping mechanics -->
    <h3>{{#if: {{#show: {{{1}}} |?DisplayTitle |link=none}} | [[{{{1}}}|{{#show: {{{1}}} |?DisplayTitle |link=none}}]] | [[{{{1}}}]] }}</h3>
{{#if: {{{Intro|}}} |
    <p class="index-card-meta">{{#show: {{{1}}} |?Author |link=none}} · {{#time:j M Y|{{#show: {{{1}}} |?Date |link=none}}}} · <span class="lang-badge">{{#show: {{{1}}} |?Language |link=none}}</span></p>
<div class="article-intro-wrapper">
    <p class="index-card-intro">{{#show: {{{1}}} |?Introduction |link=none}}</p>
<p class="article-intro">{{{Intro|}}}</p>
  </div>
</div>
}}
<!-- Optional Author photo placeholder -->
{{#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: {{{Published date|}}} |
<span class="article-date">{{#time: j F Y | {{{Published date|}}} | ml }}</span>
}}
</div>
</div>
</div>
</div>
</includeonly>

Latest revision as of 18:15, 9 June 2026