Difference between revisions of "Template: Section"

From Genesys Documentation
Jump to: navigation, search
 
(16 intermediate revisions by 6 users not shown)
Line 5: Line 5:
 
<pre>
 
<pre>
 
{{Section
 
{{Section
|Type=
 
 
|alignment=
 
|alignment=
 
|anchor=
 
|anchor=
|sectionHeading=op
+
|sectionHeading=
 
|FAQHeading=
 
|FAQHeading=
|freetext=
 
 
|structuredtext=
 
|structuredtext=
 
|structuredtextwide=
 
|structuredtextwide=
 
|image=
 
|image=
|gif=
+
|Media=
 +
|Status=
 
}}
 
}}
  
Line 21: Line 20:
  
 
{{#cargo_declare:_table=Section
 
{{#cargo_declare:_table=Section
|Type=String
 
 
|alignment=String
 
|alignment=String
 
|anchor=String
 
|anchor=String
 
|sectionHeading=Text
 
|sectionHeading=Text
 
|FAQHeading=Text
 
|FAQHeading=Text
|freetext=Wikitext (size=10000)
 
 
|structuredtext=Wikitext (size=10000)
 
|structuredtext=Wikitext (size=10000)
 
|structuredtextwide=Wikitext (size=10000)
 
|structuredtextwide=Wikitext (size=10000)
 
|image=String
 
|image=String
|gif=String
+
|Media=String
 +
|Status=String
 
}}
 
}}
 
+
{{#cargo_attach:_table=Videos}}
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#cargo_store:_table=Section
 
<includeonly>{{#cargo_store:_table=Section
|Type={{{Type|}}}
 
 
|alignment={{{alignment|}}}
 
|alignment={{{alignment|}}}
 
|anchor={{{anchor|}}}
 
|anchor={{{anchor|}}}
 
|sectionHeading={{{sectionHeading|}}}
 
|sectionHeading={{{sectionHeading|}}}
 
|FAQHeading={{{FAQHeading|}}}
 
|FAQHeading={{{FAQHeading|}}}
|freetext={{{freetext|}}}
+
|structuredtext={{#replace:{{{structuredtext|}}}|GlossaryTooltip|GlossaryCargoSafe}}
|structuredtext={{{structuredtext|}}}
+
|structuredtextwide={{#replace:{{{structuredtextwide|}}}|GlossaryTooltip|GlossaryCargoSafe}}
|structuredtextwide={{{structuredtextwide|}}}
 
 
|image={{{image|}}}
 
|image={{{image|}}}
|gif={{{gif|}}}
+
|Media={{{Media|}}}
}}</includeonly><onlyinclude>
+
|Status={{{Status|}}}
{{#switch:{{{Type|}}}
+
}}{{#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|}}}
|Unstructured=
+
|Horizontal=<div class="clearfix row">
{{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}}
 
{{#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-eye-close" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}}<h2>{{{sectionHeading}}}</h2>
 
|}}
 
{{#if:{{{freetext|}}}|
 
{{{freetext}}}
 
|}}
 
|Structured=
 
{{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}}
 
{{#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="glyphiconglyphicon-eye-close" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}}<h2>{{{sectionHeading}}}</h2>
 
|}}
 
{{#switch:{{{alignment|}}}
 
|Horizontal=
 
<div class="clearfix">
 
 
<div class="col-md-7">
 
<div class="col-md-7">
{{#if:{{{image|}}}|
+
{{#switch:{{{Media|}}}
{{#ifeq:{{{gif|}}}|Yes|[[File:{{{image}}}|1|class=gifffer|link=]]|[[File:{{{image}}}|1]]}}
+
|Image=[[File:{{{image}}}|1|alt={{{AltText|}}}|]]
||}}{{#if:{{{video|}}}|{{#widget:Vimeo|id={{{video}}}|width=100%}}||}}
+
|GIF=[[File:{{{image}}}|1|class=gifffer|alt={{{AltText|}}}]]
 +
|Video={{#widget:Vimeo|id={{{image}}}|width=100%}}
 +
|#default=
 +
}}
 
</div>
 
</div>
 
<div class="col-md-5">
 
<div class="col-md-5">
 
{{#if:{{{structuredtext|}}}|
 
{{#if:{{{structuredtext|}}}|
 
{{{structuredtext}}}
 
{{{structuredtext}}}
|}}
+
|}}</div>
</div>
 
 
{{#if:{{{structuredtextwide|}}}|
 
{{#if:{{{structuredtextwide|}}}|
 
<div class="col-md-12" style="padding-left: 0; padding-right: 0;">
 
<div class="col-md-12" style="padding-left: 0; padding-right: 0;">
Line 77: Line 62:
 
||}}
 
||}}
 
</div>
 
</div>
|Vertical=
+
|Vertical=<div class="clearfix">
<div class="clearfix">
+
{{#switch:{{{Media|}}}
{{#if:{{{image|}}}|
+
|Image=[[File:{{{image}}}|1|alt={{{Alt-Text|}}}|]]
{{#ifeq:{{{gif|}}}|Yes|[[File:{{{image}}}|1|class=gifffer|link=]]|[[File:{{{image}}}|1]]}}
+
|GIF=[[File:{{{image}}}|1|class=gifffer|alt={{{Alt-Text|}}}]]
||}}{{#if:{{{video|}}}|{{#widget:Vimeo|id={{{video}}}|width=100%}}||}}
+
|Video={{#widget:Vimeo|id={{{image}}}|width=100%}}
 +
|#default=
 +
}}
 
{{#if:{{{structuredtext|}}}|
 
{{#if:{{{structuredtext|}}}|
 
{{{structuredtext}}}
 
{{{structuredtext}}}
Line 87: Line 74:
 
{{#if:{{{structuredtextwide|}}}|
 
{{#if:{{{structuredtextwide|}}}|
 
{{{structuredtextwide}}}
 
{{{structuredtextwide}}}
||}}
+
||}}</div>
</div>
 
}}
 
 
}}{{#switch:{{{Status|}}}
 
}}{{#switch:{{{Status|}}}
|Yes={{#switch:{{NAMESPACENUMBER}}|620=</div>|0=</div>}}}}<nowiki /></onlyinclude><noinclude>[[Category:Article_Cargo]]
+
|Yes={{#switch:{{NAMESPACENUMBER}}|620=</div>|0=</div>}}}}<nowiki /></includeonly><noinclude>[[Category:Article_Cargo]]
 
</noinclude>
 
</noinclude>

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.

Retrieved from "https://all.docs.genesys.com/Template:Section (2025-06-19 07:50:09)"