Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | <includeonly>{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | ||
<templatestyles src="Article/styles.css" /> | <templatestyles src="Article/styles.css" /> | ||
{{#set:Date={{{Date|}}}|Category={{{Category|}}}}} | |||
<div class="article-container" data-language="{{{Language|}}}"> | <div class="article-container" data-language="{{{Language|}}}"> | ||
| Line 32: | Line 35: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- “More in this Category” Section --> | |||
{{#if:{{{Category|}}}|<div class="related-articles"> | |||
<h2>📄 More in {{{Category|}}}</h2> | |||
{{#ask: | |||
[[Category:{{{Category|}}}]] | |||
[[!{{FULLPAGENAME}}]] | |||
[[Date::+]] | |||
|?Date | |||
|sort=Date | |||
|order=desc | |||
|limit=5 | |||
|format=ul | |||
|link=all | |||
|headers=hide | |||
|mainlabel=- | |||
|searchlabel= | |||
}} | |||
</div>|}} | |||
</div> | </div> | ||
| Line 78: | Line 100: | ||
</div> | </div> | ||
|}} | |}} | ||
<!-- Sidebar Widget with Related Articles --> | |||
{{#if:{{{Category|}}}|<div class="sidebar-related"> | |||
<div class="sidebar-related-title">🔗 Latest in {{{Category|}}}</div> | |||
{{#ask: | |||
[[Category:{{{Category|}}}]] | |||
[[!{{FULLPAGENAME}}]] | |||
[[Date::+]] | |||
|?Date | |||
|sort=Date | |||
|order=desc | |||
|limit=3 | |||
|format=ul | |||
|link=all | |||
|headers=hide | |||
|mainlabel=- | |||
|searchlabel= | |||
}} | |||
</div>|}} | |||
</div> | </div> | ||
</div> | </div> | ||
Revision as of 15:47, 28 April 2026
Article Template
This template renders article pages with proper layout and styling.