Template
News header
From Dogcraft Wiki
No edit summary Tag: Manual revert |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<templatestyles src=" | <templatestyles src="Template:News_header/styles.css" /> | ||
__NOTOC__ | __NOTOC__ | ||
<div id="headbanner" title="20.88%">{{#if:{{{image|}}}|{{{image|}}}|/wiki/images/e/e6/Banner_v2.png}}</div> | <div id="headbanner" title="20.88%">{{#if:{{{image|}}}|{{filepath:{{{image|}}}|nowiki}}|/wiki/images/e/e6/Banner_v2.png}}</div> | ||
<indicator name="news-info"><span style="color:#707070;">{{fa|pencil}} Written by {{#if:{{{author|}}}|{{{author|}}}|Dogcraft Wiki}}{{#if:{{{date|}}}| {{fa|calendar}} {{{date|}}}| }}</span></indicator> | |||
<span class="veonly">TEMPLATE: News header (this line is only visible in editing)</span> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 11: | Line 13: | ||
"default": "/wiki/images/e/e6/Banner_v2.png", | "default": "/wiki/images/e/e6/Banner_v2.png", | ||
"type": "string" | "type": "string" | ||
} | }, | ||
"author": { | |||
"type": "string", | |||
"default": "Dogcraft Wiki", | |||
"description": "The author, or authors of this page" | |||
}, | |||
"date": { | |||
"type": "string", | |||
"description": "The date this page was created" | |||
} | |||
}, | }, | ||
"description": "Header for a News page. Adds templatestyle and image behind the title.", | "description": "Header for a News page. Adds templatestyle and image behind the title.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"image" | "image", | ||
"author", | |||
"date" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 00:09, 27 January 2024
Header for a News page. Adds templatestyle and image behind the title.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | no description
| String | optional |
author | author | The author, or authors of this page
| String | optional |
date | date | The date this page was created | String | optional |