Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | <includeonly> | ||
{{#set:DisplayTitle={{{DisplayTitle|{{{Title|}}}}}}|Date={{{Date|}}}|Category={{{Category|}}}}} | |||
{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | |||
<templatestyles src="Article/styles.css" /> | <templatestyles src="Article/styles.css" /> | ||
{{#set:Date={{{Date|}}}|Category={{{Category|}}}}} | {{#set:Date={{{Date|}}}|Category={{{Category|}}}}} | ||
| Line 33: | Line 35: | ||
{{#if:{{{Category|}}}|<div class="related-articles"> | {{#if:{{{Category|}}}|<div class="related-articles"> | ||
<h2>📄 More in {{{Category|}}}</h2> | <h2>📄 More in {{{Category|}}}</h2> | ||
<ul> | |||
{{#ask: | {{#ask: | ||
[[Category:{{{Category|}}}]] | [[Category:{{{Category|}}}]] | ||
[[!{{FULLPAGENAME}}]] | [[!{{FULLPAGENAME}}]] | ||
[[Date::+]] | [[Date::+]] | ||
|? | |?DisplayTitle | ||
|sort=Date | |sort=Date | ||
|order=desc | |order=desc | ||
|limit=5 | |limit=5 | ||
|format= | |format=template | ||
|link= | |template=RelatedArticleRow | ||
|link=none | |||
|headers=hide | |headers=hide | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
</ul> | |||
</div>|}} | </div>|}} | ||
| Line 100: | Line 104: | ||
{{#ask: | {{#ask: | ||
[[Category:{{{Category|}}}]] | [[Category:{{{Category|}}}]] | ||
[[!{{ | [[!{{FULLPAGENAME}}]] | ||
[[Date::+]] | [[Date::+]] | ||
|?Date | |?Date | ||
Revision as of 18:33, 28 April 2026
Article Template
This template renders article pages with proper layout and styling.