Difference between revisions of "Template: Section"
From Genesys Documentation
(Updating for new Article form type) |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 13: | Line 13: | ||
|image= | |image= | ||
|Media= | |Media= | ||
+ | |Status= | ||
}} | }} | ||
Line 27: | Line 28: | ||
|image=String | |image=String | ||
|Media=String | |Media=String | ||
+ | |Status=String | ||
}} | }} | ||
− | + | {{#cargo_attach:_table=Videos}} | |
</noinclude> | </noinclude> | ||
<includeonly>{{#cargo_store:_table=Section | <includeonly>{{#cargo_store:_table=Section | ||
Line 35: | Line 37: | ||
|sectionHeading={{{sectionHeading|}}} | |sectionHeading={{{sectionHeading|}}} | ||
|FAQHeading={{{FAQHeading|}}} | |FAQHeading={{{FAQHeading|}}} | ||
− | |structuredtext={{{structuredtext|}}} | + | |structuredtext={{#replace:{{{structuredtext|}}}|GlossaryTooltip|GlossaryCargoSafe}} |
− | |structuredtextwide={{{structuredtextwide|}}} | + | |structuredtextwide={{#replace:{{{structuredtextwide|}}}|GlossaryTooltip|GlossaryCargoSafe}} |
|image={{{image|}}} | |image={{{image|}}} | ||
|Media={{{Media|}}} | |Media={{{Media|}}} | ||
− | }} | + | |Status={{{Status|}}} |
− | {{# | + | }}{{#switch:{{{Media|}}}|Video={{#cargo_store:_table=Videos|Id={{{image|}}}|ConcatId={{FULLPAGENAME}}-{{{image|}}}|WorkspaceId={{#explode:{{FULLPAGENAME}}|/|0}}|Description={{{sectionHeading|}}} }}|#default=}}{{#if:{{{sectionHeading|}}}|{{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="margin-top: 40px; padding: 0 10px; opacity: .75; border-left: solid 3px lightgrey;"><div style="background-color: lightgrey; padding-left: 15px; margin-bottom: -30px; font-size: 90%; margin: 0 -10px -30px;"><i class="glyphicon glyphicon-eye-close" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}}<h2>{{{sectionHeading}}}</h2>|}}{{#switch:{{{Media|}}}|Video={{AnchorDiv|{{{image|}}}}}|#default=}}{{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}}{{#switch:{{{alignment|}}} |
− | {{#if:{{{sectionHeading|}}}|{{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="margin-top: 40px; padding: 0 10px; opacity: .75; border-left: solid 3px lightgrey;"><div style="background-color: lightgrey; padding-left: 15px; margin-bottom: -30px; font-size: 90%; margin: 0 -10px -30px;"><i class="glyphicon glyphicon-eye-close" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}}<h2>{{{sectionHeading}}}</h2>|}} | + | |Horizontal=<div class="clearfix row"> |
− | {{#switch:{{{alignment|}}} | ||
− | |Horizontal=<div class="clearfix"> | ||
<div class="col-md-7"> | <div class="col-md-7"> | ||
{{#switch:{{{Media|}}} | {{#switch:{{{Media|}}} | ||
− | |Image=[[File:{{{image}}}|1]] | + | |Image=[[File:{{{image}}}|1|alt={{{AltText|}}}|]] |
− | |GIF=[[File:{{{image}}}|1|class=gifffer| | + | |GIF=[[File:{{{image}}}|1|class=gifffer|alt={{{AltText|}}}]] |
|Video={{#widget:Vimeo|id={{{image}}}|width=100%}} | |Video={{#widget:Vimeo|id={{{image}}}|width=100%}} | ||
|#default= | |#default= | ||
Line 64: | Line 64: | ||
|Vertical=<div class="clearfix"> | |Vertical=<div class="clearfix"> | ||
{{#switch:{{{Media|}}} | {{#switch:{{{Media|}}} | ||
− | |Image=[[File:{{{image}}}|1]] | + | |Image=[[File:{{{image}}}|1|alt={{{Alt-Text|}}}|]] |
− | |GIF=[[File:{{{image}}}|1|class=gifffer| | + | |GIF=[[File:{{{image}}}|1|class=gifffer|alt={{{Alt-Text|}}}]] |
|Video={{#widget:Vimeo|id={{{image}}}|width=100%}} | |Video={{#widget:Vimeo|id={{{image}}}|width=100%}} | ||
|#default= | |#default= |
Latest revision as of 18:30, June 23, 2022
This is the "Section" template.
It should be called in the following format:
{{Section |alignment= |anchor= |sectionHeading= |FAQHeading= |structuredtext= |structuredtextwide= |image= |Media= |Status= }}
Edit the page to see the template text.
This template defines the table "Section". View table. This template adds rows to the table "Videos", which is declared by the template Video. View table.