Vorlage:Hp-highlight: Unterschied zwischen den Versionen
K (1 Version importiert: X3 import - exported pages from PPR-DE) |
(modified for migration to MW1.35) |
||
Zeile 1: | Zeile 1: | ||
__NOEDITSECTION__<includeonly>{{#default_form:Hp-highlight}}<div class="col | __NOEDITSECTION__<includeonly>{{#default_form:Hp-highlight}}<div class="col-12 col-md-6 highlight-section-block"> | ||
<h3>{{{title}}}</h3> | <h3>{{{title}}}</h3> | ||
<h4 class="subtitle>{{{subtitle}}}</h4> | <h4 class="subtitle">{{{subtitle}}}</h4> | ||
<div class="row"> | <div class="row"> | ||
<div class="col | <div class="col-12 col-lg-5"> | ||
[[file:{{{image}}}|class=img- | [[file:{{{image}}}|class=img-fluid|link={{{link|}}}]] | ||
</div> | </div> | ||
<div class="col | <div class="col-12 col-lg-7"> | ||
{{{text}}} | {{{text}}} | ||
<p class="highlight-link">{{#ifeq: {{#sub:{{{link}}}|0|4}} | http |[{{{link}}} <span class="btn btn-primary">{{{btn-text}}}</span>] | [[{{{link}}}|> {{{btn-text}}} ...]]}}</p><!-- | <p class="highlight-link">{{#ifeq: {{#sub:{{{link}}}|0|4}} | http |[{{{link}}} <span class="btn btn-primary">{{{btn-text}}}</span>] | [[{{{link}}}|> {{{btn-text}}} ...]]}}</p><!-- |
Version vom 17. Mai 2022, 08:00 Uhr
This is the "Hp-highlight" template, used to create "highlights" on the Homepage.
To create Hp-highlights using this template, use the dedicated form page
Alternatively, you can call this template in the following format:
{{Hp-highlight |title= |subtitle= |image= |text= |btn-text= |link= |text2= |btn-text2= |link2= }}
Edit the page to see the template text.
This is the "Hp-highlight" template, used to create "highlights" on the Homepage. Details on its parameters
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Title | title | Title of the highlight
| Unbekannt | erforderlich |
Subtitle | subtitle | Subtitle of the highlight
| Mehrzeiliger Text | erforderlich |
Image | image | The image to show in this highlight (recommended size = 200x270px)
| Datei | erforderlich |
Text | text | Text giving details about this highlight | Unausgeglichener Wikitext | vorgeschlagen |
Button or link text | btn-text | The text of the link/button
| Mehrzeiliger Text | erforderlich |
Link | link | Link of the Call To Action (can be a wiki page name or an external url)
| Mehrzeiliger Text | erforderlich |
Text2 | text2 | Optional second CTA - Text | Unausgeglichener Wikitext | vorgeschlagen |
2nd Button or 2nd link text | btn-text2 | Optional second CTA - Text of the link/button
| Mehrzeiliger Text | vorgeschlagen |
Link2 | link2 | Optional second CTA - link (can be a wiki page name or an external url)
| Mehrzeiliger Text | vorgeschlagen |