Template:EnglishArticle: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
Tag: 2017 source edit
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#displaytitle: {{{display_name|{{{title|No Title Provided}}}}}}}}<!-- Must be first line, no space before it -->
<!--
<noinclude>
'''Template:EnglishArticle''' — Main template for English articles.
[[Category:Article Templates]]
</noinclude>
<templatestyles src="Template:EnglishArticle/styles.css" />
{{DISPLAYTITLE:{{{display_name|No Title Provided}}}}}
<div class="article-header">
<div class="article-byline">
<span class="author-name">{{{author|Anonymous}}}</span>
<span class="meta-separator">•</span>
<span class="article-date">{{#if: {{{date|}}} | {{{date}}} | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</span>
{{#if: {{{category|}}} | <span class="meta-separator">•</span><span class="article-meta-category">{{{category}}}</span> }}
</div>
</div>


<div class="article-header">
<div class="intro-box">
'''{{display_name|{{{title|No Title Provided}}}}}'''<br>
{{{intro|Placeholder: Add a brief 2-3 line introduction here.}}}
''By <span style="font-weight:bold; font-size:1.3em;">{{{author|Anonymous}}}</span>''<br>
''Published: <span style="font-size:1.2em;">{{ #if: {{{date|}}} | {{{date}}} | {{CURRENTDAY}}-{{CURRENTMONTH}}-{{CURRENTYEAR}} }}'' </span>''
</div>
</div>


<div class="article-sidebar" style="float:right; width:320px; border:1px solid #ccc; padding:12px; margin:0 0 15px 15px; background:#f9f9f9;">
<div class="article-sidebar">
<!-- Thumbnail larger -->
{{#if: {{{thumbnail|}}} | [[File:{{{thumbnail}}}|thumb|220px|center|{{{thumbnail_caption|}}}]] }}
{{#if: {{{thumbnail|}}} |
[[File:{{{thumbnail}}}|thumb|220px|center|{{{thumbnail_caption|Author Photo}}} <br><small>Credit: {{{thumbnail_credit|}}}</small>]]
}}


<!-- Highlights stacked with separator -->
{{#if: {{{highlight1|}}} |  
{{#if: {{{highlight1|}}} |  
<div style="margin:10px 0; padding:8px; border-left:4px solid #555; background:#fff;">'''Key Point:''' {{{highlight1}}}</div>
<div class="highlight-box">🔑 {{{highlight1}}}</div>  
}}
}}


{{#if: {{{highlight2|}}} |  
{{#if: {{{highlight2|}}} |  
<hr style="margin:12px 0; border:0; border-top:1px solid #aaa;">
<hr>
<div style="padding:8px; background:#fff;">'''Additional Insight:''' {{{highlight2}}}</div>
<div class="highlight-box">💡 {{{highlight2}}}</div>  
}}
}}
</div>
</div>
<!-- Intro (no wrapper to avoid blocks) -->
{{{intro|Placeholder: Add a brief 2-3 line introduction here.}}}


<!-- Main Content (direct output for clean paragraphs) -->
<div class="article-content">
{{{content|Placeholder: Add the full article content here.}}}


<!-- Images (inline) -->
{{#if: {{{image1|}}} |
{{#if: {{{image1|}}} | [[File:{{{image1}}}|300px|{{{image1_caption|Image 1}}} (Credit: {{{image1_credit|}}})]] }}
<div class="article-image1">
{{#if: {{{image2|}}} | [[File:{{{image2}}}|300px|{{{image2_caption|Image 2}}} (Credit: {{{image2_credit|}}})]] }}
[[File:{{{image1}}}|left|300px|{{{image1_caption|}}}]]
<div class="image-caption">
{{{image1_caption|}}}
{{#if: {{{image1_credit|}}} | <br><small>Credit: {{{image1_credit}}}</small> }}
</div>
</div>
}}
{{{content}}}
</div>


{{#if: {{{author_bio|{{{translator|{{{source|}}}}}}}}} |
<!-- Edit with Form -->
== About the Author / Source Attribution ==
{{#formlink:form=EnglishArticleSubmission|target={{FULLPAGENAME}}|link text=✏️ Edit with Form|link type=button}}
{{{author_bio|}}}
-->
 
{{#if: {{{translator|}}} |
Translated by: {{{translator}}} <br>
Original: {{{source|}}} ({{{source_url|}}}) <br>
Permission: {{{permission_note|}}}
}}
}}

Latest revision as of 15:07, 5 June 2026

-->