Template:Article: Difference between revisions

From AbhiprayaVedi
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 2: Line 2:
{{DISPLAYTITLE:{{{Display_Name|{{PAGENAME}}}}}}}
{{DISPLAYTITLE:{{{Display_Name|{{PAGENAME}}}}}}}


<div class="article-wrapper">
<div style="max-width:900px;margin:0 auto;padding:20px;font-family:Georgia,serif;line-height:1.6;background:#fdfcfc">
<div class="article-header">
 
   <h1 class="page-title">{{{Display_Name|{{PAGENAME}}}}}</h1>
   <!-- TITLE -->
   <div class="article-meta">
   <div style="text-align:center;margin:0 0 0.2em 0">
     <span class="meta-line">
     <span style="font-size:2.2em;line-height:1.1;font-weight:bold;color:#2c1810">{{{Display_Name|{{PAGENAME}}}}}</span>
      <span class="meta-author">{{{Author|}}}</span>
      {{#if:{{{Date|}}}|
        <span class="meta-sep">•</span>
        <span class="meta-date">{{{Date}}}</span>
      }}
    </span>
   </div>
   </div>
</div>


{{#if:{{{Intro|}}}|
  <!-- META - INLINE STYLED -->
<div class="article-intro">
  <div style="text-align:center;background:#f8f9fa;color:#444;font-size:1.15em;font-weight:bold;padding:8px 16px;margin:0 auto 1em auto;border-radius:4px;max-width:350px;display:inline-block;line-height:1.2">
{{{Intro}}}
    {{{Author|}}} {{#if:{{{Date|}}}| <span style="margin:0 1em;font-weight:normal">•</span> {{{Date}}}}}
</div>
  </div>
}}


<div class="article-main">
   {{#if:{{{Intro|}}}|
   {{#if:{{{Image1|}}}|
   <div style="background:#f8f9fa;padding:16px;border-left:5px solid #adb5bd;margin-bottom:1em;font-size:1.2em">
   [[File:{{{Image1}}}|thumb|left|300px|{{{Image1_Caption|}}} {{{Image1_Credit|Credit: {{{Image1_Credit}}}}}}]]
    {{{Intro}}}
  </div>
   }}
   }}
   {{{Content}}}
 
  {{#if:{{{Image2|}}}|
  <!-- CONTENT WITH Image1 WRAP -->
  [[File:{{{Image2}}}|thumb|right|300px|{{{Image2_Caption|}}} {{{Image2_Credit|Credit: {{{Image2_Credit}}}}}}]]
   <div style="overflow:hidden">
    {{#if:{{{Image1|}}}|[[File:{{{Image1}}}|thumb|left|300px|{{{Image1_Caption|}}}]]}}
    {{{Content}}}
    {{#if:{{{Image2|}}}|[[File:{{{Image2}}}|thumb|right|300px|{{{Image2_Caption|}}}]]}}
  </div>
 
  <!-- FLOATBOX -->
  {{#if:{{{Thumbnail|}}}{{{Highlight1|}}}{{{Highlight2|}}}|
  <div style="float:right;width:220px;margin:0 0 1em 1.5em;background:#f8f9fa;padding:12px;border-left:4px solid #dee2e6">
    {{#if:{{{Thumbnail|}}}|[[File:{{{Thumbnail}}}|center|160px|{{{Thumbnail_Caption|}}}]]}}
    {{#if:{{{Highlight1|}}}{{{Highlight2|}}}|
    <div style="margin-top:12px">
      <h3 style="margin:0 0 8px 0;font-size:0.95em">Highlights</h3>
      {{#if:{{{Highlight1|}}}|<div style="margin:8px 0;padding-bottom:6px;border-bottom:1px solid #ddd">{{{Highlight1}}}</div>}}
      {{#if:{{{Highlight2|}}}|<div style="margin:8px 0;padding-bottom:6px">{{{Highlight2}}}</div>}}
    </div>
    }}
  </div>
   }}
   }}
</div>


{{#if:{{{Thumbnail|}}}{{{Highlight1|}}}{{{Highlight2|}}}|
  {{#if:{{{Author_Bio|}}}|
<div class="article-floatbox">
  <div style="clear:both;margin-top:2em;background:#f1f3f4;padding:15px;border-radius:6px;border-top:2px solid #dee2e6">
  {{#if:{{{Thumbnail|}}}|
    <h3 style="margin-top:0">About the Author</h3>
  [[File:{{{Thumbnail}}}|center|160px|{{{Thumbnail_Caption|}}} {{{Thumbnail_Credit|Credit: {{{Thumbnail_Credit}}}}}}]]
     {{{Author_Bio}}}
  }}
  {{#if:{{{Highlight1|}}}{{{Highlight2|}}}|
  <div class="article-highlights">
    <h3>Highlights</h3>
     {{#if:{{{Highlight1|}}}|<div>{{{Highlight1}}}</div>}}
    {{#if:{{{Highlight2|}}}|<div>{{{Highlight2}}}</div>}}
   </div>
   </div>
   }}
   }}
</div>
}}
{{#if:{{{Author_Bio|}}}|
<div class="article-author-bio">
  <h3>About the Author</h3>
  {{{Author_Bio}}}
</div>
}}


{{#if:{{{Category|}}}|[[Category:{{{Category}}}]]}}
  {{#if:{{{Category|}}}|[[Category:{{{Category}}}]]}}
</div>
</div>

Revision as of 13:47, 2 February 2026


   Article


   {{{Content}}}