You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Template:Banner"
(Changed categories.) |
(Tag: 2017 source edit) |
[[File:{{{image}}}|frameless|950px|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.
TemplateBanner template for portal pages
requiredParameter | 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 |
<!-- <includeonly><div class="banner-image nomobileportal-bannerbox"> <div class="banner-box banner-box-{{{direction}}}bannertitle"> <div class="name">{{{{{{banner-title|}}}</div> <div class="type">{{{section}}}</div> </div> -->[[File:{{{image}}}|frameless|950px|link=]] <!--</div>--> <div id="mf-section-{{{section-id}}}" class="mf-mobile-only"> {{#if:{{{title|}}}|=={{{title|}}}==|}} {{#if:{{{section|}}}|'''{{{section|}}}'''|}} </div><noinclude> Template for [[MediaWiki/Homepage redesign]]. The CSS is in [[MediaWiki:Gadget-site.css]]. See also [[Template:Full-width image]]. <templatedata> { "params": { {{#if:{{{short quote|}}}|[[File:{{{image}}}|left|frameless|link=]]}} {{#if:{{{short quote|}}}|<div class="portal-shortquote">{{{short quote}}}</div>}} </div></includeonly> <noinclude> <templatedata> { "params": { "direction": {}, "title": { "type": "string", "required": truefalse }, "section": {}, "image": { "description": "Image name, without the File: prefix", "example": "Example.png", "required": true, "type": "wiki-file-name" }, "section-id": {} }, "description": "Template for full-width images with inset text., "short quote": {} }, "description": "Banner template for portal pages", "paramOrder": [ "image", "title", "section", "direction", "section-id" ] } </templatedata> </noinclude> [[Category:Portal]], "short quote" ] } </templatedata> </noinclude>
(23 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly><div class="portal-bannerbox"><div class="bannertitle">{{{banner-title|}}}</div> |
− | + | {{#if:{{{short quote|}}}|[[File:{{{image}}}|left|frameless|link=]]}} | |
− | <div class=" | + | {{#if:{{{short quote|}}}|<div class="portal-shortquote">{{{short quote}}}</div>}} |
− | <div class=" | + | </div></includeonly> |
− | + | <noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | {{#if:{{{ | ||
− | |||
− | </div><noinclude> | ||
− | |||
− | |||
− | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
− | + | "direction": {}, | |
"title": { | "title": { | ||
"type": "string", | "type": "string", | ||
− | "required": | + | "required": false |
}, | }, | ||
"section": {}, | "section": {}, | ||
Line 30: | Line 20: | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
− | "section-id": {} | + | "section-id": {}, |
+ | "short quote": {} | ||
}, | }, | ||
− | "description": " | + | "description": "Banner template for portal pages", |
"paramOrder": [ | "paramOrder": [ | ||
"image", | "image", | ||
Line 38: | Line 29: | ||
"section", | "section", | ||
"direction", | "direction", | ||
− | "section-id" | + | "section-id", |
+ | "short quote" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
− |