Draft:Template:Article: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | {{DISPLAYTITLE:{{{DisplayTitle|{{{Title|}}}}}}}} | ||
<!-- Custom CSS --> | |||
<style> | |||
.article-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | |||
} | |||
.article-header { | |||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |||
color: white; | |||
padding: 40px; | |||
border-radius: 12px; | |||
margin-bottom: 30px; | |||
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); | |||
} | |||
.article-meta-box { | |||
background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%); | |||
border-left: 5px solid #4c51bf; | |||
padding: 20px; | |||
margin: 25px 0; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.08); | |||
} | |||
.introduction-box { | |||
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); | |||
border-left: 5px solid #f59e0b; | |||
padding: 25px; | |||
margin: 25px 0; | |||
border-radius: 8px; | |||
font-size: 1.15em; | |||
line-height: 1.9; | |||
color: #78350f; | |||
font-weight: 500; | |||
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15); | |||
} | |||
.left-sidebar { | |||
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); | |||
border: 2px solid #fbbf24; | |||
border-radius: 10px; | |||
padding: 20px; | |||
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2); | |||
} | |||
.right-sidebar { | |||
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); | |||
border: 2px solid #34d399; | |||
border-radius: 10px; | |||
padding: 20px; | |||
box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2); | |||
} | |||
.sidebar-title { | |||
font-weight: bold; | |||
margin-bottom: 15px; | |||
font-size: 1.1em; | |||
padding-bottom: 10px; | |||
border-bottom: 2px solid rgba(0,0,0,0.1); | |||
} | |||
.highlight-box { | |||
background: white; | |||
padding: 12px; | |||
margin-bottom: 12px; | |||
border-radius: 6px; | |||
border-left: 4px solid #10b981; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.05); | |||
} | |||
.keypoint-list { | |||
list-style: none; | |||
padding: 0; | |||
margin: 0; | |||
} | |||
.keypoint-list li { | |||
padding: 10px; | |||
margin-bottom: 8px; | |||
background: white; | |||
border-radius: 6px; | |||
border-left: 4px solid #f59e0b; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.05); | |||
} | |||
.keypoint-list li:before { | |||
content: "▸ "; | |||
color: #f59e0b; | |||
font-weight: bold; | |||
margin-right: 8px; | |||
} | |||
.source-box { | |||
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); | |||
border: 2px solid #fbbf24; | |||
border-radius: 8px; | |||
padding: 18px; | |||
margin: 30px 0; | |||
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15); | |||
} | |||
.author-bio-box { | |||
background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%); | |||
padding: 25px; | |||
margin: 35px 0 25px 0; | |||
border-top: 4px solid #667eea; | |||
border-radius: 8px; | |||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); | |||
} | |||
.article-content { | |||
font-size: 1.08em; | |||
line-height: 1.9; | |||
color: #1f2937; | |||
text-align: justify; | |||
} | |||
.article-content p { | |||
margin-bottom: 1.2em; | |||
} | |||
@media (max-width: 768px) { | |||
.article-layout { | |||
flex-direction: column !important; | |||
} | |||
.left-sidebar, .right-sidebar { | |||
flex: 1 1 auto !important; | |||
margin-bottom: 20px; | |||
} | |||
} | |||
</style> | |||
<div class="article-container"> | <div class="article-container"> | ||
| Line 52: | Line 186: | ||
<div class="article-content"> | <div class="article-content"> | ||
{{#if:{{{Image1|}}}| | {{#if:{{{Image1|}}}| | ||
{{{Content|}}} | {{{Content|}}} | ||
| Line 59: | Line 192: | ||
</div> | </div> | ||
| | | | ||
{{{Content|}}} | {{{Content|}}} | ||
}} | }} | ||
| Line 149: | Line 281: | ||
<noinclude> | <noinclude> | ||
{{TemplateData|<nowiki> | |||
{ | |||
"description": "Template for displaying article content with modern styling, sidebars, and metadata. Used by Form:Article for submissions.", | |||
"format": "block", | |||
"params": { | |||
"DisplayTitle": { | |||
"label": "Display Title", | |||
"description": "The title as displayed on the article page (in Malayalam or English)", | |||
"type": "string", | |||
"required": true, | |||
"example": "കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം" | |||
}, | |||
"Title": { | |||
"label": "Page Name", | |||
"description": "Simple English name for the page URL (use hyphens, no spaces)", | |||
"type": "string", | |||
"required": true, | |||
"example": "Climate-Change-Kerala" | |||
}, | |||
"Author": { | |||
"label": "Author", | |||
"description": "Name of the article author or translator", | |||
"type": "string", | |||
"required": true, | |||
"example": "രാജേഷ് കുമാർ" | |||
}, | |||
"Date": { | |||
"label": "Publication Date", | |||
"description": "Date of article publication", | |||
"type": "date", | |||
"required": true | |||
}, | |||
"Category": { | |||
"label": "Category", | |||
"description": "Main category for the article", | |||
"type": "string", | |||
"required": true, | |||
"suggestedvalues": [ | |||
"Politics", | |||
"Society", | |||
"Culture", | |||
"Science", | |||
"Literature", | |||
"Cinema", | |||
"Environment", | |||
"Economics", | |||
"Opinion" | |||
] | |||
}, | |||
"Introduction": { | |||
"label": "Introduction", | |||
"description": "Brief 2-3 sentence introduction to the article", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"Content": { | |||
"label": "Main Content", | |||
"description": "Full text of the article", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"Thumbnail": { | |||
"label": "Main Thumbnail", | |||
"description": "Main image that appears at top-right of article", | |||
"type": "wiki-file-name", | |||
"required": false | |||
}, | |||
"ThumbnailCaption": { | |||
"label": "Thumbnail Caption", | |||
"description": "Caption text for the main thumbnail image", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"Image1": { | |||
"label": "Image 1", | |||
"description": "First inline image (appears in middle of article)", | |||
"type": "wiki-file-name", | |||
"required": false | |||
}, | |||
"Image1Caption": { | |||
"label": "Image 1 Caption", | |||
"description": "Caption for first inline image", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"Image2": { | |||
"label": "Image 2", | |||
"description": "Second inline image", | |||
"type": "wiki-file-name", | |||
"required": false | |||
}, | |||
"Image2Caption": { | |||
"label": "Image 2 Caption", | |||
"description": "Caption for second inline image", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"Image3": { | |||
"label": "Image 3", | |||
"description": "Third inline image", | |||
"type": "wiki-file-name", | |||
"required": false | |||
}, | |||
"Image3Caption": { | |||
"label": "Image 3 Caption", | |||
"description": "Caption for third inline image", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"KeyPoint1": { | |||
"label": "Key Point 1", | |||
"description": "First key point (appears in left sidebar)", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"KeyPoint2": { | |||
"label": "Key Point 2", | |||
"description": "Second key point (appears in left sidebar)", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"KeyPoint3": { | |||
"label": "Key Point 3", | |||
"description": "Third key point (appears in left sidebar)", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"KeyPoint4": { | |||
"label": "Key Point 4", | |||
"description": "Fourth key point (appears in left sidebar)", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"Highlight1": { | |||
"label": "Highlight 1", | |||
"description": "First highlight box (appears in right sidebar)", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"Highlight2": { | |||
"label": "Highlight 2", | |||
"description": "Second highlight box (appears in right sidebar)", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"Highlight3": { | |||
"label": "Highlight 3", | |||
"description": "Third highlight box (appears in right sidebar)", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"OriginalAuthor": { | |||
"label": "Original Author", | |||
"description": "Name of original author (for translations only)", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"SourceName": { | |||
"label": "Source Publication", | |||
"description": "Name of source publication (for translations)", | |||
"type": "string", | |||
"required": false, | |||
"example": "The Hindu" | |||
}, | |||
"SourceURL": { | |||
"label": "Source URL", | |||
"description": "Link to original article (for translations)", | |||
"type": "url", | |||
"required": false | |||
}, | |||
"OriginalDate": { | |||
"label": "Original Publication Date", | |||
"description": "Date of original publication (for translations)", | |||
"type": "date", | |||
"required": false | |||
}, | |||
"TranslationType": { | |||
"label": "Translation Type", | |||
"description": "Type of translation or adaptation", | |||
"type": "string", | |||
"required": false, | |||
"suggestedvalues": [ | |||
"Translation", | |||
"Adaptation", | |||
"Reprint", | |||
"Summary" | |||
] | |||
}, | |||
"PermissionNote": { | |||
"label": "Permission Note", | |||
"description": "Statement about publication permissions", | |||
"type": "string", | |||
"required": false, | |||
"example": "Published with permission from the publisher" | |||
}, | |||
"Author_Bio": { | |||
"label": "Author Biography", | |||
"description": "Brief biography of the author or translator", | |||
"type": "content", | |||
"required": false | |||
} | |||
} | |||
} | |||
</nowiki>}} | |||
This template | == Usage == | ||
This template is used automatically by Form:Article. Do not use directly unless you know what you're doing. | |||
=== | === Example === | ||
<pre> | |||
{{Draft:Template:Article | |||
|DisplayTitle=കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം | |||
|Title=Climate-Change-Kerala | |||
|Author=രാജേഷ് കുമാർ | |||
|Date=2026-01-15 | |||
|Category=Environment | |||
== | |Introduction=കേരളത്തിലെ കാലാവസ്ഥയിൽ സംഭവിക്കുന്ന മാറ്റങ്ങളെക്കുറിച്ചുള്ള വിശകലനം. | ||
|Content=പ്രധാന ഉള്ളടക്കം ഇവിടെ... | |||
}} | |||
</pre> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Article Templates]] | |||
</noinclude> | </noinclude> | ||
Revision as of 13:31, 31 March 2026
Usage
This template is used automatically by Form:Article. Do not use directly unless you know what you're doing.
Example
{{Draft:Template:Article
|DisplayTitle=കേരളത്തിലെ കാലാവസ്ഥാ വ്യതിയാനം
|Title=Climate-Change-Kerala
|Author=രാജേഷ് കുമാർ
|Date=2026-01-15
|Category=Environment
|Introduction=കേരളത്തിലെ കാലാവസ്ഥയിൽ സംഭവിക്കുന്ന മാറ്റങ്ങളെക്കുറിച്ചുള്ള വിശകലനം.
|Content=പ്രധാന ഉള്ളടക്കം ഇവിടെ...
}}