« Modèle:RelatedGuide » : différence entre les versions
(création - copie de la version testée en PRE-PROD) |
m (suppression de la référence à un formulaire (fonctionnement avec formulaire pas finalisé)) |
||
Ligne 1 : | Ligne 1 : | ||
__NOEDITSECTION__<includeonly> | __NOEDITSECTION__<includeonly>{{#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"> |
Version du 17 juin 2020 à 17:29
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:
{{RelatedGuides |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ètre | Description | Type | État | |
---|---|---|---|---|
Image | image | The image to show (recommended size = 140x198px but not mandatory)
| Fichier | obligatoire |
Title | title | Title of the highlight
| Inconnu | obligatoire |
Text | text | Text giving details about this highlight | Wikicode non équilibré | suggéré |
Button or link text | btn-text | The text of the link/button
| Chaîne | obligatoire |
Link | link | Link of the Call To Action (can be a wiki page name or an external url)
| Chaîne | obligatoire |