Template:Hp-highlight: Difference between revisions

From Electrical Installation Guide
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 {{#ifeq: {{{position|}}}|right|highlight-section-right|highlight-section-left}}">
__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>
<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": {
"position": {
"label": "Position",
"description": "Position of this highlight (left or right)",
"example": "left",
"type": "string",
"required": true
},
"title": {
"title": {
"label": "Title",
"label": "Title",
"description": "Title of the highlight",
"description": "Title of the highlight",
"example": "Electricl Fire Prevention",
"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 = 200x300px)",
"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
},
"link": {
"label": "Link",
"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/",
"type": "string",
"required": true
"required": true
},
},
Line 66: Line 77:
"required": true
"required": true
},
},
"link2": {
"link": {
"label": "Link2",
"label": "Link",
"description": "Optional second CTA - link (can be a wiki page name or an external url)",
"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",
"suggested": true
"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 templates is used on homepage, to add a \"highlight\" block"
"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

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the highlight

Example
Electrical Fire Prevention
Unknownrequired
Subtitlesubtitle

Subtitle of the highlight

Example
White paper
Stringrequired
Imageimage

The image to show in this highlight (recommended size = 200x270px)

Example
help-section-doc.png
Filerequired
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
Text2text2

Optional second CTA - Text

Unbalanced wikitextsuggested
2nd Button or 2nd link textbtn-text2

Optional second CTA - Text of the link/button

Example
Donwload the guide
Stringsuggested
Link2link2

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/
Stringsuggested