Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#set:DisplayTitle={{{DisplayTitle|{{{Title|}}}}}}|Date={{{Date|}}}|Category={{{Category|}}}}} | {{#set: | ||
DisplayTitle={{{DisplayTitle|{{{Title|}}}}}} | |||
|Date={{{Date|}}} | |||
|Category={{{Category|}}} | |||
|Author={{{Author|}}} | |||
|Image1={{{Image1|}}} | |||
|Language={{{Language|}}} | |||
|Introduction={{{Introduction|}}} | |||
}} | |||
{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | {{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | ||
<templatestyles src="Article/styles.css" /> | <templatestyles src="Template:Article/styles.css" /> | ||
{{#set:Date={{{Date|}}}|Category={{{Category|}}}}} | {{#set:Date={{{Date|}}}|Category={{{Category|}}}}} | ||
<div class="article-container" data-language="{{{Language|}}}"> | <div class="article-container" data-language="{{{Language|}}}"> | ||
| Line 10: | Line 18: | ||
<div class="main-content"> | <div class="main-content"> | ||
{{#if:{{{Image1|}}}|<div class="image-left">[[File:{{{Image1}}}|frameless|400px|{{{Image1Caption|}}}]]<div class="image-caption">{{{Image1Caption|}}}</div></div>|}} | {{#if:{{{Image1|}}}|<div class="image-left">[[File:{{{Image1}}}|frameless|400px|{{{Image1Caption|}}}]]<div class="image-caption">{{{Image1Caption|}}}</div></div>|}} | ||
<div class="article-text"> | <div class="article-text"> | ||
{{{Content|}}} | {{{Content|}}} | ||
</div> | </div> | ||
<!-- Second Image (Centered) --> | <!-- Second Image (Centered) --> | ||
{{#if:{{{Image2|}}}| | {{#if:{{{Image2|}}}| | ||
| Line 22: | Line 28: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- Source Attribution --> | <!-- Source Attribution --> | ||
{{#if:{{{SourceName|}}}| | {{#if:{{{SourceName|}}}| | ||
| Line 31: | Line 36: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- “More in this Category” Section --> | <!-- “More in this Category” Section --> | ||
{{#if:{{{Category|}}}|<div class="related-articles"> | {{#if:{{{Category|}}}|<div class="related-articles"> | ||
| Line 52: | Line 56: | ||
</ul> | </ul> | ||
</div>|}} | </div>|}} | ||
</div> | </div> | ||
<!-- Right Sidebar --> | <!-- Right Sidebar --> | ||
<div class="right-sidebar"> | <div class="right-sidebar"> | ||
<!-- Author Info Box --> | <!-- Author Info Box --> | ||
<div class="author-infobox"> | <div class="author-infobox"> | ||
| Line 70: | Line 71: | ||
|}} | |}} | ||
</div> | </div> | ||
<!-- Highlights --> | <!-- Highlights --> | ||
{{#if:{{{Highlight1|}}}| | {{#if:{{{Highlight1|}}}| | ||
| Line 78: | Line 78: | ||
</div> | </div> | ||
|}} | |}} | ||
{{#if:{{{Highlight2|}}}| | {{#if:{{{Highlight2|}}}| | ||
<div class="highlight-box"> | <div class="highlight-box"> | ||
| Line 85: | Line 84: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- Key Points --> | <!-- Key Points --> | ||
{{#if:{{{KeyPoint1|}}}| | {{#if:{{{KeyPoint1|}}}| | ||
| Line 99: | Line 97: | ||
|}} | |}} | ||
<!-- Sidebar Widget with Related Articles --> | <!-- Sidebar Widget with Related Articles --> | ||
{{#if:{{{Category|}}}|<div class="sidebar-related"> | {{#if:{{{Category|}}}|<div class="sidebar-related"> | ||
<div class="sidebar-related-title">🔗 Latest in {{{Category|}}}</div> | <div class="sidebar-related-title">🔗 Latest in {{{Category|}}}</div> | ||
| Line 119: | Line 116: | ||
</ul> | </ul> | ||
</div>|}} | </div>|}} | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- Categories --> | <!-- Categories --> | ||
[[Category:{{{Category|}}}]] | [[Category:{{{Category|}}}]] | ||
[[Category:Articles]] | [[Category:Articles]] | ||
{{#if:{{{Language|}}}|[[Category:{{{Language}}} articles]]|}} | {{#if:{{{Language|}}}|[[Category:{{{Language}}} articles]]|}} | ||
{{#if:{{{OriginalAuthor|}}}| | {{#if:{{{OriginalAuthor|}}}| | ||
[[Category:Translations]] | [[Category:Translations]] | ||
| Line 133: | Line 127: | ||
|[[Category:Articles by {{{Author|}}}]]}} | |[[Category:Articles by {{{Author|}}}]]}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Article Template == | == Article Template == | ||
This template renders article pages with proper layout and styling. | This template renders article pages with proper layout and styling. | ||
[[Category:Templates]] | [[Category:Templates]] | ||
{{DEFAULTSORT:{{{DisplayTitle|{{{Title|}}}}}}}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 16:04, 2 May 2026
Article Template
This template renders article pages with proper layout and styling.