Template:Hp-highlight: Difference between revisions
m (Protected "Template:Hp-highlight" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="col-xs-12 col-sm-6 highlight-section-block | __NOEDITSECTION__<includeonly>{{#default_form:Hp-highlight}}<div class="col-xs-12 col-sm-6 highlight-section-block"> | ||
<h3>{{{title}}}</h3> | <h3>{{{title}}}</h3> | ||
<h4 class="subtitle>{{{subtitle}}}</h4> | <h4 class="subtitle>{{{subtitle}}}</h4> | ||
Line 15: | Line 15: | ||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
< | This is the "Hp-highlight-model" template, used to create "highlights" on the Homepage. | ||
To create Hp-highlights using this template, use the [[Form:Hp-highlight|dedicated form page]] | |||
Alternatively, you can call this template in the following format: | |||
<pre> | |||
{{Hp-highlight-model | |||
|title= | |||
|subtitle= | |||
|image= | |||
|text= | |||
|btn-text= | |||
|link= | |||
|text2= | |||
|btn-text2= | |||
|link2= | |||
}} | |||
</pre> | |||
Edit the page to see the template text. | |||
---- | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
"label": "Title", | "label": "Title", | ||
"description": "Title of the highlight", | "description": "Title of the highlight", | ||
"example": " | "example": "Electrical Fire Prevention", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 41: | Line 59: | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": "The image to show in this highlight (recommended size = | "description": "The image to show in this highlight (recommended size = 200x270px)", | ||
"example": "help-section-doc.png", | "example": "help-section-doc.png", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 66: | Line 77: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "link": { | ||
"label": " | "label": "Link", | ||
"description": " | "description": "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/", | "example": "http://www.schneider-electric.com/en/download/document/9982095_02-08-17A_EN/", | ||
"type": "string", | "type": "string", | ||
" | "required": true | ||
}, | }, | ||
"text2": { | "text2": { | ||
Line 83: | Line 94: | ||
"description": "Optional second CTA - Text of the link/button", | "description": "Optional second CTA - Text of the link/button", | ||
"example": "Donwload the guide", | "example": "Donwload the guide", | ||
"type": "string", | |||
"suggested": true | |||
}, | |||
"link2": { | |||
"label": "Link2", | |||
"description": "Optional second CTA - link (can be a wiki page name or an external url)", | |||
"example": "http://www.schneider-electric.com/en/download/document/9982095_02-08-17A_EN/", | |||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "This | "description": "This is the \"Hp-highlight-model\" template, used to create \"highlights\" on the Homepage. Details on its parameters" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 14:09, 27 March 2020
This is the "Hp-highlight-model" 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-model |title= |subtitle= |image= |text= |btn-text= |link= |text2= |btn-text2= |link2= }}
Edit the page to see the template text.
This is the "Hp-highlight-model" 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 |