Template:Article: Difference between revisions

From AbhiprayaVedi
No edit summary
Undo revision 898 by VijayanPN (talk)
Tags: Undo Reverted
Line 5: Line 5:


<div class="article-header">
<div class="article-header">
<div class="article-meta">
  <div class="article-meta">
<span class="meta-line">
    <span class="meta-line">
{{#if:{{{Author|}}}|{{{Author}}}}}
      {{#if:{{{Author|}}}|{{{Author}}}}}
{{#if:{{{Author|}}}{{{Date|}}}|<span class="meta-sep">•</span>}}
      {{#if:{{{Author|}}}{{{Date|}}}|<span class="meta-sep">•</span>}}
{{#if:{{{Date|}}}|{{{Date}}}}}
      {{#if:{{{Date|}}}|{{{Date}}}}}
</span>
    </span>
</div>
  </div>
</div>
</div>


Line 23: Line 23:
<div class="article-floatbox">
<div class="article-floatbox">


{{#if:{{{Thumbnail|}}}|
  {{#if:{{{Thumbnail|}}}|
[[File:{{{Thumbnail}}}|thumb|right|160px|{{{Thumbnail_Caption|}}}]]
  [[File:{{{Thumbnail}}}|thumb|right|160px|{{{Thumbnail_Caption|}}}]]
}}
  }}


{{#if:{{{Highlight1|}}}{{{Highlight2|}}}|
  {{#if:{{{Highlight1|}}}{{{Highlight2|}}}|
<div class="article-highlights">
  <div class="article-highlights">
<h3>Highlights</h3>
    <h3>Highlights</h3>
<ul>
    <ul>
{{#if:{{{Highlight1|}}}|<li>{{{Highlight1}}}</li>}}
      {{#if:{{{Highlight1|}}}|<li>{{{Highlight1}}}</li>}}
{{#if:{{{Highlight2|}}}|<li>{{{Highlight2}}}</li>}}
      {{#if:{{{Highlight2|}}}|<li>{{{Highlight2}}}</li>}}
</ul>
    </ul>
</div>
  </div>
}}
  }}


</div>
</div>
Line 42: Line 42:
<div class="article-content">
<div class="article-content">


{{#if:{{{Image1|}}}|
  {{#if:{{{Image1|}}}|
[[File:{{{Image1}}}|thumb|left|300px|{{{Image1_Caption|}}}]]
  [[File:{{{Image1}}}|thumb|left|300px|{{{Image1_Caption|}}}]]
}}
  }}


{{{Content}}}
  {{{Content}}}


{{#if:{{{Image2|}}}|
  {{#if:{{{Image2|}}}|
[[File:{{{Image2}}}|thumb|right|300px|{{{Image2_Caption|}}}]]
  [[File:{{{Image2}}}|thumb|right|300px|{{{Image2_Caption|}}}]]
}}
  }}


</div>
</div>
Line 56: Line 56:
{{#if:{{{Translator|}}}{{{Source|}}}|
{{#if:{{{Translator|}}}{{{Source|}}}|
<div class="article-source">
<div class="article-source">
<h3>Source & Attribution</h3>
  <h3>Source & Attribution</h3>
{{#if:{{{Translator|}}}|<p><strong>Translator:</strong> {{{Translator}}}</p>}}
  {{#if:{{{Translator|}}}|<p><strong>Translator:</strong> {{{Translator}}}</p>}}
{{#if:{{{Source|}}}|<p><strong>Original Source:</strong> {{{Source}}}</p>}}
  {{#if:{{{Source|}}}|<p><strong>Original Source:</strong> {{{Source}}}</p>}}
</div>
</div>
}}
}}
Line 65: Line 65:
<hr class="author-divider">
<hr class="author-divider">
<div class="article-author-bio">
<div class="article-author-bio">
<h3>About the Author</h3>
  <h3>About the Author</h3>
{{{Author_Bio}}}
  {{{Author_Bio}}}
</div>
</div>
}}
}}


{{#if:{{{Category|}}}
{{#if:{{{Category|}}}
| [[Category:{{{Category}}}]]
| [[Category:{{{Category}}}]]
| [[Category:Uncategorized Articles]]
| [[Category:Uncategorized Articles]]
}}
}}


Line 81: Line 81:
<templatedata>
<templatedata>
{
{
"description": "Structured article layout template",
  "description": "Structured article layout template",
"params": {
  "params": {
"Display_Name": {
    "Display_Name": {
"label": "Display Name",
      "label": "Display Name",
"description": "Title shown on the page",
      "description": "Title shown on the page",
"type": "string",
      "type": "string",
"required": true
      "required": true
},
    },
"Author": { "label": "Author", "type": "string" },
    "Author": { "label": "Author", "type": "string" },
"Date": { "label": "Date", "type": "date" },
    "Date": { "label": "Date", "type": "date" },
"Intro": { "label": "Introduction", "type": "string", "multiline": true },
    "Intro": { "label": "Introduction", "type": "string", "multiline": true },
"Thumbnail": { "label": "Thumbnail Image", "type": "wiki-file-name" },
    "Thumbnail": { "label": "Thumbnail Image", "type": "wiki-file-name" },
"Thumbnail_Caption": { "label": "Thumbnail Caption", "type": "string" },
    "Thumbnail_Caption": { "label": "Thumbnail Caption", "type": "string" },
"Image1": { "label": "Main Image", "type": "wiki-file-name" },
    "Image1": { "label": "Main Image", "type": "wiki-file-name" },
"Image1_Caption": { "label": "Image Caption", "type": "string" },
    "Image1_Caption": { "label": "Image Caption", "type": "string" },
"Highlight1": { "label": "Highlight 1", "type": "string" },
    "Highlight1": { "label": "Highlight 1", "type": "string" },
"Highlight2": { "label": "Highlight 2", "type": "string" },
    "Highlight2": { "label": "Highlight 2", "type": "string" },
"Content": {
    "Content": {
"label": "Article Content",
      "label": "Article Content",
"type": "string",
      "type": "string",
"multiline": true,
      "multiline": true,
"required": true
      "required": true
},
    },
"Author_Bio": { "label": "About the Author", "type": "string", "multiline": true },
    "Author_Bio": { "label": "About the Author", "type": "string", "multiline": true },
"Category": { "label": "Category", "type": "string" }
    "Category": { "label": "Category", "type": "string" }
}
  }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 22:09, 21 April 2026





 {{{Content}}}



<templatedata> {

 "description": "Structured article layout template",
 "params": {
   "Display_Name": {
     "label": "Display Name",
     "description": "Title shown on the page",
     "type": "string",
     "required": true
   },
   "Author": { "label": "Author", "type": "string" },
   "Date": { "label": "Date", "type": "date" },
   "Intro": { "label": "Introduction", "type": "string", "multiline": true },
   "Thumbnail": { "label": "Thumbnail Image", "type": "wiki-file-name" },
   "Thumbnail_Caption": { "label": "Thumbnail Caption", "type": "string" },
   "Image1": { "label": "Main Image", "type": "wiki-file-name" },
   "Image1_Caption": { "label": "Image Caption", "type": "string" },
   "Highlight1": { "label": "Highlight 1", "type": "string" },
   "Highlight2": { "label": "Highlight 2", "type": "string" },
   "Content": {
     "label": "Article Content",
     "type": "string",
     "multiline": true,
     "required": true
   },
   "Author_Bio": { "label": "About the Author", "type": "string", "multiline": true },
   "Category": { "label": "Category", "type": "string" }
 }

} </templatedata>