Template:Hp-highlight: Difference between revisions
m (1 revision imported: HP highlights and sliders - Forms and Tempates - from PPR-EN) |
m (doc) |
||
Line 15: | Line 15: | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
This is the "Hp-highlight | This is the "Hp-highlight" template, used to create "highlights" on the Homepage. | ||
To create Hp-highlights using this template, use the [[Form:Hp-highlight|dedicated form page]] | To create Hp-highlights using this template, use the [[Form:Hp-highlight|dedicated form page]] | ||
Line 21: | Line 21: | ||
Alternatively, you can call this template in the following format: | Alternatively, you can call this template in the following format: | ||
<pre> | <pre> | ||
{{Hp-highlight | {{Hp-highlight | ||
|title= | |title= | ||
|subtitle= | |subtitle= | ||
Line 105: | Line 105: | ||
} | } | ||
}, | }, | ||
"description": "This is the \"Hp-highlight | "description": "This is the \"Hp-highlight\" template, used to create \"highlights\" on the Homepage. Details on its parameters" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 16:15, 28 March 2020
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title of the highlight
| Unknown | required |
Subtitle | subtitle | Subtitle of the highlight
| String | required |
Image | image | The image to show in this highlight (recommended size = 200x270px)
| File | 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 |
Text2 | text2 | Optional second CTA - Text | Unbalanced wikitext | suggested |
2nd Button or 2nd link text | btn-text2 | Optional second CTA - Text of the link/button
| String | suggested |
Link2 | link2 | Optional second CTA - link (can be a wiki page name or an external url)
| String | suggested |