Difference between revisions of "Template: Section"
From Genesys Documentation
Line 49: | Line 49: | ||
|Unstructured= | |Unstructured= | ||
{{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}} | {{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}} | ||
− | {{#if:{{{sectionHeading|}}}| | + | {{#if:{{{sectionHeading|}}}|{{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="padding: 0 10px;opacity: 0.5;border-left: solid 2px chocolate"><div style="background-color:#5d3e5d33; border-color: #ebccd1; color: #5D3E5D; padding: 5px 0 5px 15px; margin-bottom: -30px; border: 1px solid transparent; border-radius: 4px;font-size:90%;width:100%;"><i class="glyphicon glyphicon-flag" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}} |
− | {{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="padding: 0 10px;opacity: 0.5;border-left: solid 2px chocolate"><div style="background-color:#5d3e5d33; border-color: #ebccd1; color: #5D3E5D; padding: 5px 0 5px 15px; margin-bottom: -30px; border: 1px solid transparent; border-radius: 4px;font-size:90%;width:100%;"><i class="glyphicon glyphicon-flag" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}} | ||
<h2>{{{sectionHeading}}}</h2> | <h2>{{{sectionHeading}}}</h2> | ||
|}} | |}} | ||
Line 58: | Line 57: | ||
|Structured= | |Structured= | ||
{{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}} | {{#if:{{{anchor|}}}|{{AnchorDiv|{{{anchor}}}}}|}} | ||
− | {{#if:{{{sectionHeading|}}}| | + | {{#if:{{{sectionHeading|}}}|{{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="padding: 0 10px;opacity: 0.5;border-left: solid 2px chocolate"><div style="background-color:#5d3e5d33; border-color: #ebccd1; color: #5D3E5D; padding: 5px 0 5px 15px; margin-bottom: -30px; border: 1px solid transparent; border-radius: 4px;font-size:90%;width:100%;"><i class="glyphicon glyphicon-flag" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}} |
− | {{#switch:{{{Status|}}}|Yes={{#switch:{{NAMESPACENUMBER}}|620=<div style="padding: 0 10px;opacity: 0.5;border-left: solid 2px chocolate"><div style="background-color:#5d3e5d33; border-color: #ebccd1; color: #5D3E5D; padding: 5px 0 5px 15px; margin-bottom: -30px; border: 1px solid transparent; border-radius: 4px;font-size:90%;width:100%;"><i class="glyphicon glyphicon-flag" style="margin-right:5px;"></i> <strong>Hidden section</strong></div>|0=<div style="display:none;">}}}} | ||
<h2>{{{sectionHeading}}}</h2> | <h2>{{{sectionHeading}}}</h2> | ||
|}} | |}} | ||
Line 95: | Line 93: | ||
}} | }} | ||
}}{{#switch:{{{Status|}}} | }}{{#switch:{{{Status|}}} | ||
− | |Yes={{#switch:{{NAMESPACENUMBER}}|620=</div>|0=}}}} | + | |Yes={{#switch:{{NAMESPACENUMBER}}|620=</div>|0=</div>}}}} |
<noinclude>[[Category:Article_Cargo]] | <noinclude>[[Category:Article_Cargo]] | ||
</noinclude> | </noinclude> |
Revision as of 12:20, March 28, 2019
This is the "Section" template.
It should be called in the following format:
{{Section |Type= |alignment= |anchor= |sectionHeading= |FAQHeading= |freetext= |structuredtext= |structuredtextwide= |image= |gif= }}
Edit the page to see the template text.
This template defines the table "Section". View table.