Template

News header

From Dogcraft Wiki

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="News:Test/styles.css" />
<templatestyles src="Template:News_header/styles.css" />
__NOTOC__
__NOTOC__
<div id="headbanner" title="20.88%">{{#if:{{{image|}}}|{{filepath:{{{image|}}}{{!}}nowiki}}|/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|}}}|&nbsp;&nbsp;&nbsp;&nbsp;{{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.

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Default
/wiki/images/e/e6/Banner_v2.png
Stringoptional
authorauthor

The author, or authors of this page

Default
Dogcraft Wiki
Stringoptional
datedate

The date this page was created

Stringoptional