Template:RelatedGuide: Difference between revisions

From Electrical Installation Guide
m (1 revision imported: import template-form-msg for related-guides - exported from PPR-FR)
(added class "noexport")
Line 1: Line 1:
__NOEDITSECTION__<includeonly>{{#default_form:RelatedGuides}}{{#if:{{{image}}}|<div class="related-guide">
__NOEDITSECTION__<includeonly>{{#default_form:RelatedGuides}}{{#if:{{{image}}}|<div class="related-guide noexport">
<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">

Revision as of 12:48, 20 May 2021


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

Template parameters

ParameterDescriptionTypeStatus
Imageimage

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

Example
help-section-doc.png
Filerequired
Titletitle

Title of the highlight

Example
Electrical Fire Prevention
Unknownrequired
Texttext

Text giving details about this highlight

Unbalanced wikitextsuggested
Button or link textbtn-text

The text of the link/button

Example
Donwload the guide
Stringrequired
Linklink

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

Example
http://www.schneider-electric.com/en/download/document/9982095_02-08-17A_EN/
Stringrequired