Vorlage:Banner: Unterschied zwischen den Versionen

K
(Markierung: 2017-Quelltext-Bearbeitung)
K
(Markierung: 2017-Quelltext-Bearbeitung)
 

[[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.

Vorlagenparameter

Parameter Beschreibung Typ Status
Image image

Image name, without the File: prefix

Standard
leer
Beispiel
Example.png
Autowert
leer
Datei erforderlich
Title title

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolge optional
Section section

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Unbekannt optional
Direction direction

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Unbekannt optional
Section-id section-id

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Unbekannt optional
Short quote short quote

keine Beschreibung

Standard
leer
Beispiel
leer
Autowert
leer
Unbekannt optional
<!--
            <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>{{PAGENAME}}{banner-title|}}}</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": {
        
                    "description": "Image name, without the File: prefix",
        
                    "example": "Example.png",
        
                    "required": true,
        
                    "type": "wiki-file-name"
        
                },
        
                "section-id": {},
        
                "short quote": {}
        
            },
        
            "description": "Template for full-width images with inset text.",
        
            "paramOrder": [
        
                "image",
        
                "title",
        
                "section",
        
                "direction",
        
                "section-id",
        
                "short quote"
        
            ]
        
        }
        </templatedata>
        </noinclude>
Zeile 8: Zeile 8:
 
<!--</div>-->
 
<!--</div>-->
 
<div class="portal-bannerbox">
 
<div class="portal-bannerbox">
<h1>{{PAGENAME}}</h1>
+
<h1>{{{banner-title|}}}</h1>
 
[[File:{{{image}}}|left|frameless|link=]]
 
[[File:{{{image}}}|left|frameless|link=]]
 
{{#if:{{{short quote|}}}|<div class="portal-shortquote">{{{short quote}}}</div>}}
 
{{#if:{{{short quote|}}}|<div class="portal-shortquote">{{{short quote}}}</div>}}

Anhänge

Diskussionen