« Modèle:Hp-highlight » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
m 1 révision importée : importer pages, templates etc de PPR-FR - X3
modified for migration to MW1.35
Ligne 1 : Ligne 1 :
__NOEDITSECTION__<includeonly>{{#default_form:Hp-highlight}}<div class="col-xs-12 col-sm-6 highlight-section-block">
__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-sm-12 col-md-5">
<div class="col-12 col-lg-5">
[[file:{{{image}}}|class=img-responsive|link={{{link|}}}]]
[[file:{{{image}}}|class=img-fluid|link={{{link|}}}]]
</div>
</div>
<div class="col-sm-12 col-md-7">
<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 du 30 juin 2022 à 15:56

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

Paramètres du modèle[Modifier les données du modèle]

ParamètreDescriptionTypeÉtat
Titletitle

Title of the highlight

Exemple
Electrical Fire Prevention
Inconnuobligatoire
Subtitlesubtitle

Subtitle of the highlight

Exemple
White paper
Chaîneobligatoire
Imageimage

The image to show in this highlight (recommended size = 200x270px)

Exemple
help-section-doc.png
Fichierobligatoire
Texttext

Text giving details about this highlight

Wikicode non équilibrésuggéré
Button or link textbtn-text

The text of the link/button

Exemple
Donwload the guide
Chaîneobligatoire
Linklink

Link of the Call To Action (can be a wiki page name or an external url)

Exemple
http://www.schneider-electric.com/en/download/document/9982095_02-08-17A_EN/
Chaîneobligatoire
Text2text2

Optional second CTA - Text

Wikicode non équilibrésuggéré
2nd Button or 2nd link textbtn-text2

Optional second CTA - Text of the link/button

Exemple
Donwload the guide
Chaînesuggéré
Link2link2

Optional second CTA - link (can be a wiki page name or an external url)

Exemple
http://www.schneider-electric.com/en/download/document/9982095_02-08-17A_EN/
Chaînesuggéré