Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| (2 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 13: | Line 21: | ||
{{{Content|}}} | {{{Content|}}} | ||
</div> | </div> | ||
<!-- Second Image (Centered) --> | <!-- Second Image (Centered) --> | ||
{{#if:{{{Image2|}}}| | {{#if:{{{Image2|}}}| | ||
| Line 21: | Line 28: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- Source Attribution --> | <!-- Source Attribution --> | ||
{{#if:{{{SourceName|}}}| | {{#if:{{{SourceName|}}}| | ||
| Line 30: | 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 51: | 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 69: | Line 71: | ||
|}} | |}} | ||
</div> | </div> | ||
<!-- Highlights --> | <!-- Highlights --> | ||
{{#if:{{{Highlight1|}}}| | {{#if:{{{Highlight1|}}}| | ||
| Line 77: | Line 78: | ||
</div> | </div> | ||
|}} | |}} | ||
{{#if:{{{Highlight2|}}}| | {{#if:{{{Highlight2|}}}| | ||
<div class="highlight-box"> | <div class="highlight-box"> | ||
| Line 84: | Line 84: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- Key Points --> | <!-- Key Points --> | ||
{{#if:{{{KeyPoint1|}}}| | {{#if:{{{KeyPoint1|}}}| | ||
| Line 98: | 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 118: | 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]] | ||
Latest revision as of 16:04, 2 May 2026
Article Template
This template renders article pages with proper layout and styling.