Template: SwitchForCloud

From Genesys Documentation
Jump to: navigation, search

Template to streamline conditionalization of content transcluded between Genesys Multicloud CX (MC), private edition (PE), and on-prem (GIM) content. The template switches on the manual to suppress or provide alternative content for the different deployment models, with the Library book displaying Genesys Multicloud CX (former PEC). (On docs.genesys.com, the template switches on the Ponydocs product.) The template further switches on version to display different font colors as conditional text indicators in the draft manuals.

The MintyDocs template likely does not preserve compatibility with the Ponydocs one, but should be tweakable so that Library content can still be shared between the platforms and doc versions.

To facilitate identifying divergent content for reviewers, in Draft versions Multicloud-specific content displays in purple font and PE- or prem-specific content (i.e., the PE or GIM parameters) display in green font. Note, however, that this is not robust, unless you use more than the occasional <nowiki /> hack to circumvent some Mediawiki default behaviour.

Content of the template is:

{{#switch:{{#explode:{{FULLPAGENAME}}|/|0}}
|PEC-REP
|Draft:PEC-REP={{#switch:{{#sub:{{#explode:{{FULLPAGENAME}}|/|2}}|0|5}}
|PDMPE={{#switch:{{NAMESPACENUMBER}}|620=<font color="#038236">|#default=}}{{{PE}}}{{#switch:{{NAMESPACENUMBER}}|620=</font>|#default=}}
|PDMCX
|PDMLi
|#default={{#switch:{{NAMESPACENUMBER}}|620=<font color="#B24DE7">|#default=}}{{{MC}}}{{#switch:{{NAMESPACENUMBER}}|620=</font>|#default=}}}}<!--End of switch for PE vs. MC-->
|#default={{#switch:{{NAMESPACENUMBER}}|620=<font color="brown">|#default=}}{{#if:{{{GIM|}}}|{{{GIM}}}|{{{PE}}}}}{{#switch:{{NAMESPACENUMBER}}|620=</font>|#default=}}
}}

{{{PE}}}

Retrieved from "https://all.docs.genesys.com/Template:SwitchForCloud (2024-05-05 02:26:27)"