Draft:Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | |||
<div class="article-container" data-language="{{{Language|}}}"> | <div class="article-container" data-language="{{{Language|}}}"> | ||
| Line 6: | Line 8: | ||
<div class="author-info"> | <div class="author-info"> | ||
<span class="author-name">{{{Author|}}}</span> | <span class="author-name">{{{Author|}}}</span> | ||
<span class="date-info">{{{Date|}}}</span> | <span class="date-info">{{#time:d-m-Y|{{{Date|}}}}}</span> | ||
<span class="category-badge">{{{Category|}}}</span> | <span class="category-badge">{{{Category|}}}</span> | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- Introduction - | <!-- Introduction - Compact --> | ||
<div class="introduction-section"> | <div class="introduction-section"> | ||
{{{Introduction|}}} | {{{Introduction|}}} | ||
| Line 73: | Line 75: | ||
{{#if:{{{Highlight1|}}}| | {{#if:{{{Highlight1|}}}| | ||
<div class="highlight-box"> | <div class="highlight-box"> | ||
<div class="highlight-title"> | <div class="highlight-title">💡</div> | ||
<div class="highlight-text">{{{Highlight1|}}}</div> | <div class="highlight-text">{{{Highlight1|}}}</div> | ||
</div> | </div> | ||
| Line 80: | Line 82: | ||
{{#if:{{{Highlight2|}}}| | {{#if:{{{Highlight2|}}}| | ||
<div class="highlight-box"> | <div class="highlight-box"> | ||
<div class="highlight-title"> | <div class="highlight-title">💡</div> | ||
<div class="highlight-text">{{{Highlight2|}}}</div> | <div class="highlight-text">{{{Highlight2|}}}</div> | ||
</div> | </div> | ||
| Line 88: | Line 90: | ||
{{#if:{{{KeyPoint1|}}}| | {{#if:{{{KeyPoint1|}}}| | ||
<div class="keypoints-float"> | <div class="keypoints-float"> | ||
<div class="keypoints-header"> | <div class="keypoints-header">📌</div> | ||
<ul class="keypoints-list"> | <ul class="keypoints-list"> | ||
{{#if:{{{KeyPoint1|}}}|<li>{{{KeyPoint1|}}}</li>}} | {{#if:{{{KeyPoint1|}}}|<li>{{{KeyPoint1|}}}</li>}} | ||
| Line 104: | Line 106: | ||
</div> | </div> | ||
<!-- Categories - Bilingual --> | <!-- Categories - Bilingual with DEFAULTSORT for Malayalam display names --> | ||
{{DEFAULTSORT:{{{DisplayTitle|}}}}} | |||
[[Category:{{{Category|}}}]] | [[Category:{{{Category|}}}]] | ||
[[Category:Articles]] | [[Category:Articles]] | ||
| Line 132: | Line 136: | ||
<noinclude> | <noinclude> | ||
== Critical Fix: Display Names in Categories == | |||
The `{{DEFAULTSORT:{{{DisplayTitle|}}}}}` line makes categories show the **Display Title** instead of the page name! | |||
{{ | |||
**How it works:** | |||
- Page name: `Something-In-The-Air` | |||
- Display title: `Something in the Air?` | |||
- Category shows: **"Something in the Air?"** ✓ | |||
For Malayalam: | |||
- Page name: `Kerala-Climate-Change` | |||
- Display title: `കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം` | |||
* ** | - Category shows: **"കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം"** ✓ | ||
This single line fixes the category display issue! | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:27, 3 April 2026
Critical Fix: Display Names in Categories
The `` line makes categories show the **Display Title** instead of the page name!
- How it works:**
- Page name: `Something-In-The-Air` - Display title: `Something in the Air?` - Category shows: **"Something in the Air?"** ✓
For Malayalam: - Page name: `Kerala-Climate-Change` - Display title: `കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം` - Category shows: **"കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം"** ✓
This single line fixes the category display issue!