Template:RelatedGuide: Difference between revisions
No edit summary |
m (1 revision imported: MW1.35 - common pages to all wikis) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOEDITSECTION__<includeonly>{{#default_form: | __NOEDITSECTION__<includeonly>{{#default_form:RelatedGuide}}{{#if:{{{image}}}|<div class="related-guide noexport"> | ||
<div class="related-guide-image">[[file:{{{image}}}|class=img- | <div class="related-guide-image">[[file:{{{image}}}|class=img-fluid|link={{{link|}}}|{{{btn-text}}}]]</div> | ||
<div class="related-guide-details"> | <div class="related-guide-details"> | ||
<div class="related-guide-title">{{{title}}}</div> | <div class="related-guide-title">{{{title}}}</div> | ||
<div class="related-guide-description">{{{text}}}</div> | <div class="related-guide-description">{{{text}}}</div> | ||
<div class="highlight-link">[{{{link | <div class="highlight-link">{{#ifeq: {{#sub:{{{link}}}|0|4}} | http |[{{{link}}} <span class="btn btn-primary">{{{btn-text}}}</span>] | [[{{{link}}}|> {{{btn-text}}} ...]]}}</div> | ||
</div> | </div> | ||
</div>}}</includeonly><noinclude> | </div>}}</includeonly><noinclude> |
Latest revision as of 09:10, 22 June 2022
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | The image to show (recommended size = 140x198px but not mandatory)
| File | required |
Title | title | Title of the highlight
| Unknown | required |
Text | text | Text giving details about this highlight | Unbalanced wikitext | suggested |
Button or link text | btn-text | The text of the link/button
| String | required |
Link | link | Link of the Call To Action (can be a wiki page name or an external url)
| String | required |