You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Template:Banner"
Fbaeckmann (talk | contribs) (Tag: 2017 source edit) |
Fbaeckmann (talk | contribs) (Tag: 2017 source edit) |
Banner
[[File:{{{image}}}|left|frameless|link=]]
Template for MediaWiki/Homepage redesign. The CSS is in MediaWiki:Gadget-site.css. See also Template:Full-width image.
Template for full-width images with inset text.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image |
Image name, without the File: prefix
|
File | required |
Title | title |
no description
|
String | optional |
Section | section |
no description
|
Unknown | optional |
Direction | direction |
no description
|
Unknown | optional |
Section-id | section-id |
no description
|
Unknown | optional |
Short quote | short quote |
no description
|
Unknown | optional |
Banner-title |
banner-title
|
no description
|
String | suggested |
<!-- <div class="banner-image nomobile"> <div class="banner-box banner-box-{{{direction}}}"> <div class="name">{{{title}}}</div> <div class="type">{{{section}}}</div> </div> --> <!--</div>--> <div class="portal-bannerbox"> <h1>{{#if:{{{banner-title|}}}|{{{banner-title}}}|{{PAGENAME}} }}</h1> [[File:{{{image}}}|left|frameless|link=]] {{#if:{{{short quote|}}}|<div class="portal-shortquote">{{{short quote}}}</div>}} </div> <noinclude> Template for [[MediaWiki/Homepage redesign]]. The CSS is in [[MediaWiki:Gadget-site.css]]. See also [[Template:Full-width image]]. <templatedata> { "params": { "direction": {}, "title": { "type": "string", "required": false }, "section": {}, "image": { "direction": {}, "title": { "type": "string", "required": false }, "section": {}, "image": { "description": "Image name, without the File: prefix", "example": "Example.png", "required": true, "example": "Example.png", "required": true, "type": "wiki-file-name" }, "section-id": {}, "short quote": {} }, }, "section-id": {}, "short quote": {}, "banner-title": { "type": "string", "suggested": true } }, "description": "Template for full-width images with inset text.", "paramOrder": [ "image", "title", "section", "direction", "section-id", "short quote" "image", "title", "section", "direction", "section-id", "short quote", "banner-title" ] } </templatedata> </noinclude>
Line 19: | Line 19: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
− | + | "params": { | |
− | + | "direction": {}, | |
− | + | "title": { | |
− | + | "type": "string", | |
− | + | "required": false | |
− | + | }, | |
− | + | "section": {}, | |
− | + | "image": { | |
− | + | "description": "Image name, without the File: prefix", | |
− | + | "example": "Example.png", | |
− | + | "required": true, | |
− | + | "type": "wiki-file-name" | |
− | + | }, | |
− | + | "section-id": {}, | |
− | + | "short quote": {}, | |
− | + | "banner-title": { | |
− | + | "type": "string", | |
− | + | "suggested": true | |
− | + | } | |
− | + | }, | |
− | + | "description": "Template for full-width images with inset text.", | |
− | + | "paramOrder": [ | |
− | + | "image", | |
− | + | "title", | |
− | + | "section", | |
+ | "direction", | ||
+ | "section-id", | ||
+ | "short quote", | ||
+ | "banner-title" | ||
+ | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |