« Modèle:RelatedGuide » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
m (doc uniquement)
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
__NOEDITSECTION__<includeonly>{{#if:{{{image}}}|<div class="related-guide">
__NOEDITSECTION__<includeonly>{{#default_form:RelatedGuides}}{{#if:{{{image}}}|<div class="related-guide">
<div class="related-guide-image">[[file:{{{image}}}|class=img-responsive|link={{{link|}}}|{{{btn-text}}}]]</div>
<div class="related-guide-image">[[file:{{{image}}}|class=img-responsive|link={{{link|}}}|{{{btn-text}}}]]</div>
<div class="related-guide-details">
<div class="related-guide-details">
Ligne 7 : Ligne 7 :
</div>
</div>
</div>}}</includeonly><noinclude>
</div>}}</includeonly><noinclude>
[[Category:eig-other-templates|{{PAGENAME}}]]
This template is used to add a "related guide" block (in chapter landing pages, for example).
This template is used to add a "related guide" block (in chapter landing pages, for example).



Version du 12 octobre 2020 à 08:08


This template is used to add a "related guide" block (in chapter landing pages, for example).

You can call this template in the following format:

{{RelatedGuide
|image=
|title=
|text=
|btn-text=
|link=
}}

Edit the page to see the template text.



This template is used to add a "related guide" block (in chapter landing pages, for example). Details on its parameters

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Imageimage

The image to show (recommended size = 140x198px but not mandatory)

Exemple
help-section-doc.png
Fichierobligatoire
Titletitle

Title of the highlight

Exemple
Electrical Fire Prevention
Inconnuobligatoire
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