Draft:Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="article- | {{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | ||
'''Author:''' {{{Author|}}} | <!-- Main Article Title with Custom Styling --> | ||
'''Date:''' {{{Date|}}} | <div class="article-title" style="font-size: 2.5em; color: #0645ad; font-weight: bold; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 3px solid #0645ad;"> | ||
'''Category:''' {{{Category|}}} | {{{DisplayTitle|{{{Title|}}}}}} | ||
</div> | |||
<!-- Article Metadata --> | |||
<div class="article-meta" style="color: #666; font-size: 0.9em; margin-bottom: 20px;"> | |||
'''രചയിതാവ് (Author):''' {{{Author|}}} | '''തീയതി (Date):''' {{{Date|}}} | '''വിഭാഗം (Category):''' {{{Category|}}} | |||
</div> | |||
<!-- Main Content Area with Sidebars --> | |||
<div style="display: flex; gap: 20px; margin: 20px 0;"> | |||
<!-- Left Sidebar - Key Points --> | |||
{{#if:{{{KeyPoint1|}}}| | |||
<div class="left-sidebar" style="flex: 0 0 200px; background: #fffacd; border: 2px solid #f0e68c; border-radius: 5px; padding: 15px; font-size: 0.9em;"> | |||
<div style="font-weight: bold; color: #8b4513; margin-bottom: 10px; font-size: 1.1em;">📌 പ്രധാന പോയിന്റുകൾ</div> | |||
<ul style="margin: 0; padding-left: 20px;"> | |||
{{#if:{{{KeyPoint1|}}}|<li>{{{KeyPoint1|}}}</li>}} | |||
{{#if:{{{KeyPoint2|}}}|<li>{{{KeyPoint2|}}}</li>}} | |||
{{#if:{{{KeyPoint3|}}}|<li>{{{KeyPoint3|}}}</li>}} | |||
{{#if:{{{KeyPoint4|}}}|<li>{{{KeyPoint4|}}}</li>}} | |||
</ul> | |||
</div> | |||
|}} | |||
<!-- Main Content Column --> | |||
<div class="main-content-column" style="flex: 1; min-width: 0;"> | |||
<!-- Thumbnail --> | |||
{{#if:{{{Thumbnail|}}}| | {{#if:{{{Thumbnail|}}}| | ||
[[File:{{{Thumbnail}}}|thumb| | <div style="float: right; margin: 0 0 15px 15px;"> | ||
[[File:{{{Thumbnail}}}|thumb|300px|{{{ThumbnailCaption|}}}]] | |||
</div> | |||
|}} | |}} | ||
<!-- Introduction Section with Special Styling --> | |||
<div class="article-introduction" style="background: linear-gradient(to right, #e3f2fd, #ffffff); padding: 20px; margin: 0 0 25px 0; border-left: 5px solid #2196f3; border-radius: 3px; font-size: 1.15em; line-height: 1.8; color: #1565c0; font-weight: 500;"> | |||
{{{Introduction|}}} | {{{Introduction|}}} | ||
</div> | |||
<!-- Main Article Content --> | |||
<div class="article-content" style="font-size: 1.05em; line-height: 1.8; text-align: justify;"> | |||
{{{Content|}}} | {{{Content|}}} | ||
</div> | |||
<!-- Additional Images Section --> | |||
{{#if:{{{Image1|}}}| | |||
<div class="article-images" style="margin: 30px 0;"> | |||
{{#if:{{{Image1|}}}| | |||
<div style="margin: 20px 0; text-align: center;"> | |||
[[File:{{{Image1}}}|thumb|center|600px|{{{Image1Caption|}}}]] | |||
</div> | |||
}} | |||
{{#if:{{{Image2|}}}| | |||
<div style="margin: 20px 0; text-align: center;"> | |||
[[File:{{{Image2}}}|thumb|center|600px|{{{Image2Caption|}}}]] | |||
</div> | |||
}} | |||
{{#if:{{{Image3|}}}| | |||
<div style="margin: 20px 0; text-align: center;"> | |||
[[File:{{{Image3}}}|thumb|center|600px|{{{Image3Caption|}}}]] | |||
</div> | |||
}} | |||
</div> | |||
|}} | |||
</div> | |||
<!-- Right Sidebar - Highlights/Quick Facts --> | |||
{{#if:{{{Highlight1|}}}| | |||
<div class="right-sidebar" style="flex: 0 0 220px; background: #e8f5e9; border: 2px solid #81c784; border-radius: 5px; padding: 15px; font-size: 0.9em;"> | |||
<div style="font-weight: bold; color: #2e7d32; margin-bottom: 10px; font-size: 1.1em;">💡 പ്രത്യേക ശ്രദ്ധയ്ക്ക്</div> | |||
<div style="line-height: 1.6;"> | |||
{{#if:{{{Highlight1|}}}| | |||
<div style="background: white; padding: 10px; margin-bottom: 10px; border-radius: 3px; border-left: 3px solid #4caf50;"> | |||
{{{Highlight1|}}} | |||
</div> | |||
}} | |||
{{#if:{{{Highlight2|}}}| | |||
<div style="background: white; padding: 10px; margin-bottom: 10px; border-radius: 3px; border-left: 3px solid #4caf50;"> | |||
{{{Highlight2|}}} | |||
</div> | |||
}} | |||
{{#if:{{{Highlight3|}}}| | |||
<div style="background: white; padding: 10px; border-radius: 3px; border-left: 3px solid #4caf50;"> | |||
{{{Highlight3|}}} | |||
</div> | |||
}} | |||
</div> | |||
</div> | |||
|}} | |||
</div> | |||
<!-- Source Attribution Section --> | |||
{{#if:{{{SourceName|}}}| | |||
<div class="source-attribution" style="background: #fff3cd; border: 2px solid #ffc107; border-radius: 5px; padding: 20px; margin: 30px 0 20px 0;"> | |||
<div style="font-size: 1.2em; font-weight: bold; color: #856404; margin-bottom: 10px;">📰 സ്രോതസ്സ് / Source Attribution</div> | |||
<div style="line-height: 1.6; color: #856404;"> | |||
{{#if:{{{TranslationType|}}}|<div style="margin-bottom: 5px;">'''തരം (Type):''' {{{TranslationType|}}}</div>}} | |||
<div style="margin-bottom: 5px;">'''ഉറവിടം (Original Source):''' {{{SourceName|}}}</div> | |||
{{#if:{{{OriginalAuthor|}}}|<div style="margin-bottom: 5px;">'''യഥാർത്ഥ രചയിതാവ് (Original Author):''' {{{OriginalAuthor|}}}</div>}} | |||
{{#if:{{{OriginalDate|}}}|<div style="margin-bottom: 5px;">'''പ്രസിദ്ധീകരണ തീയതി (Publication Date):''' {{{OriginalDate|}}}</div>}} | |||
{{#if:{{{SourceURL|}}}| | |||
<div style="margin-top: 10px; padding: 10px; background: white; border-radius: 3px;"> | |||
'''യഥാർത്ഥ ലേഖനം (Original Article):''' [{{{SourceURL|}}} {{{SourceURL|}}}] | |||
</div> | |||
}} | |||
{{#if:{{{PermissionNote|}}}| | |||
<div style="margin-top: 10px; font-size: 0.9em; font-style: italic;"> | |||
{{{PermissionNote|}}} | |||
</div> | |||
}} | |||
</div> | |||
</div> | |||
|}} | |||
<!-- Author Bio Section --> | |||
{{#if:{{{Author_Bio|}}}| | {{#if:{{{Author_Bio|}}}| | ||
== | <div class="author-bio" style="background: #f5f5f5; padding: 20px; margin: 30px 0 20px 0; border-top: 3px solid #9e9e9e; border-radius: 3px;"> | ||
<div style="font-size: 1.3em; color: #424242; font-weight: bold; margin-bottom: 10px;">✍️ രചയിതാവിനെക്കുറിച്ച്</div> | |||
<div style="line-height: 1.6;"> | |||
{{{Author_Bio|}}} | {{{Author_Bio|}}} | ||
</div> | |||
</div> | |||
|}} | |}} | ||
<!-- Categories --> | |||
[[Category:{{{Category|}}}]] | [[Category:{{{Category|}}}]] | ||
[[Category:Articles]] | [[Category:Articles]] | ||
[[Category:Articles by {{{Author|}}}]] | [[Category:Articles by {{{Author|}}}]] | ||
{{#if:{{{TranslationType|}}}|[[Category:Translations]]}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Article Template Documentation == | |||
This template creates a beautifully formatted article page with: | |||
* Custom display title (supports Malayalam) | |||
* Colored introduction section | |||
* Optional left sidebar for key points | |||
* Optional right sidebar for highlights | |||
* Support for multiple images/charts within content | |||
* Source attribution section for translations/republished content | |||
* Author bio section | |||
* Automatic categorization | |||
=== Usage === | |||
== Usage == | |||
<pre> | <pre> | ||
{{Draft:Template:Article | {{Draft:Template:Article | ||
|Title=Article | |DisplayTitle=പ്രധാനപ്പെട്ട ലേഖനം | ||
|Author= | |Title=Important-Article | ||
|Date=2026-01- | |Author=രചയിതാവിന്റെ പേര് | ||
|Date=2026-01-13 | |||
|Category=Politics | |Category=Politics | ||
|Thumbnail=Example.jpg | |Thumbnail=Example.jpg | ||
|Introduction= | |ThumbnailCaption=Main image description | ||
|Content= | |Introduction=ലേഖനത്തിന്റെ ആമുഖം... | ||
|Author_Bio=Author | |Content=പ്രധാന ഉള്ളടക്കം... | ||
|Image1=Chart1.png | |||
|Image1Caption=First chart description | |||
|Image2=Photo2.jpg | |||
|Image2Caption=Second photo description | |||
|Author_Bio=രചയിതാവിനെക്കുറിച്ച്... | |||
|KeyPoint1=ആദ്യ പോയിന്റ് | |||
|Highlight1=പ്രത്യേക ശ്രദ്ധയ്ക്ക് | |||
|SourceName=The Hindu | |||
|OriginalAuthor=Original Author Name | |||
|OriginalDate=2026-01-10 | |||
|SourceURL=https://example.com/original-article | |||
|TranslationType=Translation | |||
|PermissionNote=Published with permission from the publisher | |||
}} | }} | ||
</pre> | </pre> | ||
=== Parameters === | |||
'''Basic Information:''' | |||
* '''DisplayTitle''' (required): Title as displayed on page (Malayalam supported) | |||
* '''Title''' (required): Simple page name (English/numbers) | |||
* '''Author''' (required): Author/Translator name | |||
* '''Date''' (required): Publication date | |||
* '''Category''' (required): Article category | |||
'''Content:''' | |||
* '''Thumbnail''' (optional): Main featured image filename | |||
* '''ThumbnailCaption''' (optional): Caption for main image | |||
* '''Introduction''' (required): Brief introduction with colored background | |||
* '''Content''' (required): Main article text | |||
'''Additional Images:''' | |||
* '''Image1''' (optional): First additional image/chart | |||
* '''Image1Caption''' (optional): Caption for first image | |||
* '''Image2''' (optional): Second additional image/chart | |||
* '''Image2Caption''' (optional): Caption for second image | |||
* '''Image3''' (optional): Third additional image/chart | |||
* '''Image3Caption''' (optional): Caption for third image | |||
'''Sidebars:''' | |||
* '''KeyPoint1-4''' (optional): Left sidebar key points | |||
* '''Highlight1-3''' (optional): Right sidebar highlights | |||
'''Source Attribution (for translations/republished content):''' | |||
* '''SourceName''' (optional): Name of original publication | |||
* '''OriginalAuthor''' (optional): Original article author | |||
* '''OriginalDate''' (optional): Original publication date | |||
* '''SourceURL''' (optional): Link to original article | |||
* '''TranslationType''' (optional): Type (Translation, Adaptation, Reprint, etc.) | |||
* '''PermissionNote''' (optional): Note about permission obtained | |||
'''Author Information:''' | |||
* '''Author_Bio''' (optional): Information about the author | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 15:31, 13 January 2026
Article Template Documentation
This template creates a beautifully formatted article page with:
- Custom display title (supports Malayalam)
- Colored introduction section
- Optional left sidebar for key points
- Optional right sidebar for highlights
- Support for multiple images/charts within content
- Source attribution section for translations/republished content
- Author bio section
- Automatic categorization
Usage
{{Draft:Template:Article
|DisplayTitle=പ്രധാനപ്പെട്ട ലേഖനം
|Title=Important-Article
|Author=രചയിതാവിന്റെ പേര്
|Date=2026-01-13
|Category=Politics
|Thumbnail=Example.jpg
|ThumbnailCaption=Main image description
|Introduction=ലേഖനത്തിന്റെ ആമുഖം...
|Content=പ്രധാന ഉള്ളടക്കം...
|Image1=Chart1.png
|Image1Caption=First chart description
|Image2=Photo2.jpg
|Image2Caption=Second photo description
|Author_Bio=രചയിതാവിനെക്കുറിച്ച്...
|KeyPoint1=ആദ്യ പോയിന്റ്
|Highlight1=പ്രത്യേക ശ്രദ്ധയ്ക്ക്
|SourceName=The Hindu
|OriginalAuthor=Original Author Name
|OriginalDate=2026-01-10
|SourceURL=https://example.com/original-article
|TranslationType=Translation
|PermissionNote=Published with permission from the publisher
}}
Parameters
Basic Information:
- DisplayTitle (required): Title as displayed on page (Malayalam supported)
- Title (required): Simple page name (English/numbers)
- Author (required): Author/Translator name
- Date (required): Publication date
- Category (required): Article category
Content:
- Thumbnail (optional): Main featured image filename
- ThumbnailCaption (optional): Caption for main image
- Introduction (required): Brief introduction with colored background
- Content (required): Main article text
Additional Images:
- Image1 (optional): First additional image/chart
- Image1Caption (optional): Caption for first image
- Image2 (optional): Second additional image/chart
- Image2Caption (optional): Caption for second image
- Image3 (optional): Third additional image/chart
- Image3Caption (optional): Caption for third image
Sidebars:
- KeyPoint1-4 (optional): Left sidebar key points
- Highlight1-3 (optional): Right sidebar highlights
Source Attribution (for translations/republished content):
- SourceName (optional): Name of original publication
- OriginalAuthor (optional): Original article author
- OriginalDate (optional): Original publication date
- SourceURL (optional): Link to original article
- TranslationType (optional): Type (Translation, Adaptation, Reprint, etc.)
- PermissionNote (optional): Note about permission obtained
Author Information:
- Author_Bio (optional): Information about the author