Difference between revisions of "Template: ArticleCloudRN"
From Genesys Documentation
(19 intermediate revisions by 5 users not shown) | |||
Line 6: | Line 6: | ||
{{ArticleCloudRN | {{ArticleCloudRN | ||
|ServiceId= | |ServiceId= | ||
+ | |DepGuideServiceId= | ||
|ComponentId= | |ComponentId= | ||
|DeploymentTypeId= | |DeploymentTypeId= | ||
Line 16: | Line 17: | ||
{{#cargo_declare:_table=ArticleCloudRN | {{#cargo_declare:_table=ArticleCloudRN | ||
− | |ServiceId=String | + | |ServiceId=List (,) of String |
+ | |DepGuideServiceId=List (,) of String | ||
|ComponentId=List (,) of String | |ComponentId=List (,) of String | ||
|DeploymentTypeId=List (,) of String | |DeploymentTypeId=List (,) of String | ||
Line 23: | Line 25: | ||
}} | }} | ||
{{#cargo_attach:_table=Article}} | {{#cargo_attach:_table=Article}} | ||
+ | |||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly><!-- |
− | __NOEDITSECTION__{{#cargo_store:_table=Article|Standalone={{{Standalone}}}|productshort={{#explode:{{FULLPAGENAME}}|/|0}}|DisplayName={{{DisplayName|}}}|Context={{{Context|}}}}}{{#cargo_store:_table=ArticleCloudRN | + | |
− | |ServiceId={{{ServiceId|}}} | + | adding category to set form |
− | |ComponentId={{{ComponentId|}}} | + | |
− | |DeploymentTypeId={{{DeploymentTypeId|}}} | + | -->[[Category:ArticleCloudRN]] |
− | |ReleaseTypeId={{{ReleaseTypeId|}}} | + | |
− | |Footer={{{Footer|}}} | + | <!-- |
− | }}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic: | + | |
+ | forcing TOC and suppressing section inks | ||
+ | |||
+ | -->__TOC__ | ||
+ | __NOEDITSECTION__<!-- | ||
+ | |||
+ | storing cargo values in both Article table for general queries | ||
+ | |||
+ | -->{{#cargo_store: | ||
+ | _table=Article | ||
+ | |Standalone={{{Standalone}}} | ||
+ | |Dimension={{{Dimension|}}} | ||
+ | |productshort={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |DisplayName={{{DisplayName|}}} | ||
+ | |Context={{{Context|}}}}}<!-- | ||
+ | |||
+ | storing values in ArticleCloudRN table for specific queries | ||
+ | |||
+ | -->{{#cargo_store: | ||
+ | _table=ArticleCloudRN | ||
+ | |ServiceId={{{ServiceId|}}} | ||
+ | |ComponentId={{{ComponentId|}}} | ||
+ | |DeploymentTypeId={{{DeploymentTypeId|}}} | ||
+ | |ReleaseTypeId={{{ReleaseTypeId|}}} | ||
+ | |Footer={{{Footer|}}} | ||
+ | |DepGuideServiceId={{{DepGuideServiceId|}}} | ||
+ | }}<!-- | ||
+ | |||
+ | Set MintyDocs topic, including a switch for different treatment for Manual pages | ||
+ | |||
+ | -->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic: | ||
|display name={{{DisplayName|}}} | |display name={{{DisplayName|}}} | ||
|toc name={{{TocName|}}} | |toc name={{{TocName|}}} | ||
− | }}}}<!-- | + | }}}}<!-- |
− | |||
− | <!-- | + | Defining the EPPO Header; all parameters need to be passed to it |
− | < | + | |
− | + | -->{{EPPOHead | |
− | {{#cargo_query: | + | |RN=Yes |
− | tables= | + | |Role={{{Role|}}} |
− | |join on= | + | |ComingSoon={{{ComingSoon|}}} |
− | |fields= | + | |Context=Not all releases or changes listed below may pertain to your deployment. Check the table below to see which releases apply to you. |
− | + | |UseCase={{{UseCase|}}} | |
− | |intro=<table><tr>{{#ifeq:{{#cargo_query:tables=ArticleCloudRN,ArticleCloudRN__ComponentId|join on=ArticleCloudRN._ID=ArticleCloudRN__ComponentId._rowID|fields=COUNT(*)|where=ArticleCloudRN._pageName="{{FULLPAGENAME}}" AND ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"|no html}}|1||<th>Service</th>}} | + | |Application={{{Application|}}} |
− | <th> | + | |Platform={{{Platform|}}} |
− | + | |PageType=Article | |
− | + | |DepGuideServiceId={{{DepGuideServiceId|}}} | |
− | + | |ServiceId={{{ServiceId|}}} | |
− | + | }}<!-- | |
− | + | ||
− | + | Defining the Prerequisite Head | |
− | + | ||
− | <!-- | + | -->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}<!-- |
− | < | + | |
+ | Query for showing component list | ||
+ | |||
+ | -->{{NoteFormat | ||
+ | |The Release table lists the initial availability date for each release and the deployment environments for which a release is made available. Except when otherwise stated in the description for a specific release, each release includes all of the features and resolved issues that were introduced on earlier dates, regardless of the deployment environment. The features and resolved issues that apply only to a specific deployment environment are noted as such. | ||
+ | }}<!-- | ||
+ | |||
+ | setting up list of releases table | ||
+ | |||
+ | -->{{#cargo_query: | ||
+ | tables= | ||
+ | ArticleCloudRN, | ||
+ | ComponentRN, | ||
+ | ComponentRN__DeploymentTypeId | ||
+ | |join on= | ||
+ | ArticleCloudRN.ComponentId HOLDS ComponentRN.ComponentId, | ||
+ | ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID | ||
+ | |fields= | ||
+ | ComponentRN.ComponentId, | ||
+ | ComponentRN.ReleaseNumber, | ||
+ | ComponentRN.ReleaseDate, | ||
+ | ComponentRN.Highlight, | ||
+ | ComponentRN.HighlightBoilerplateId | ||
+ | |where=ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}" | ||
+ | AND ComponentRN._pageNamespace=ArticleCloudRN._pageNamespace | ||
+ | AND (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) | ||
+ | AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) | ||
+ | |limit=10000 | ||
+ | |order by=ComponentRN.ReleaseDate DESC | ||
+ | |group by= | ||
+ | ComponentRN._pageID, | ||
+ | ComponentRN.ComponentId, | ||
+ | ComponentRN.ReleaseNumber, | ||
+ | ComponentRN.ReleaseDate, | ||
+ | ComponentRN.Highlight | ||
+ | |named args=yes | ||
+ | |format=template | ||
+ | |template=PrintTopRN | ||
+ | |intro= | ||
+ | <table class="sortable" style="font-size:90%"> | ||
+ | <tr>{{#ifeq:{{#cargo_query:tables=ArticleCloudRN,ArticleCloudRN__ComponentId|join on=ArticleCloudRN._ID=ArticleCloudRN__ComponentId._rowID|fields=COUNT(*)|where=ArticleCloudRN._pageName="{{FULLPAGENAME}}" AND ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"|no html}}|1||<th rowspan="2" style="width:15%">Service</th>}} | ||
+ | <th rowspan="2" style="width:12%">Available</th> | ||
+ | <th colspan="2" style="text-align: center>Genesys CX on</th> | ||
+ | <th rowspan="2">Private edition</th> | ||
+ | <th rowspan="2">Highlights</th> | ||
+ | <th rowspan="2">Release</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <th>AWS</th> | ||
+ | <th>Azure</th> | ||
+ | <!--<th>GCP</th>--> | ||
+ | <tr> | ||
+ | |outro=</table> | ||
+ | }}<!-- | ||
+ | |||
+ | printing content of indivual release note entries | ||
− | {{#cargo_query: | + | -->{{#cargo_query: |
− | tables= | + | tables= |
− | |join on= | + | Component, |
− | |fields=ComponentId=Component,ComponentRN.ReleaseNumber=ReleaseNumber,ComponentRN.ReleaseDate=ReleaseDate,ComponentRN._pageName=Page | + | ComponentRN, |
− | |format=template | + | ComponentRN__DeploymentTypeId |
− | |template=RNPrint | + | |join on= |
− | |where=( | + | Component.Id=ComponentRN.ComponentId, |
− | |named args=yes | + | ComponentRN._ID=ComponentRN__DeploymentTypeId._rowID |
− | | | + | |fields= |
− | | | + | ComponentId=Component, |
+ | ComponentRN.ReleaseNumber=ReleaseNumber, | ||
+ | ComponentRN.ReleaseDate=ReleaseDate, | ||
+ | Component.Name=ComponentName, | ||
+ | ComponentRN._pageName=Page | ||
+ | |format=template | ||
+ | |template=RNPrint | ||
+ | |where= | ||
+ | (ComponentRN.ComponentId IN ({{#arraymap:{{{ComponentId|}}}|,|x|'x'}})) | ||
+ | AND (ComponentRN__DeploymentTypeId._value IN ({{#arraymap:{{{DeploymentTypeId|}}}|,|x|'x'}})) | ||
+ | AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}" | ||
+ | |named args=yes | ||
+ | |order by=ComponentRN.ReleaseDate DESC | ||
+ | |group by= | ||
+ | Component._pageID, | ||
+ | ComponentRN._pageID, | ||
+ | ComponentRN.ComponentId, | ||
+ | ComponentRN.ReleaseNumber, | ||
+ | ComponentRN.ReleaseDate, | ||
+ | Component.Name, | ||
+ | ComponentRN._pageName | ||
}} | }} | ||
Line 75: | Line 182: | ||
{{{AzureBoilerplate|}}} | {{{AzureBoilerplate|}}} | ||
− | |||
− | |||
{{#css: | {{#css: | ||
− | #mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; } | + | #mw-content-text .select2-container .select2-choice { height: 34px; line-height: normal; } |
− | .panel-title { padding: 10px; } | + | .panel-title { padding: 10px; } |
− | .panel>.panel-heading { padding: 0 } | + | .panel>.panel-heading { padding: 0 } |
− | .toggle-wrap { margin: 20px 0 25px; } | + | .toggle-wrap { margin: 20px 0 25px; } |
− | .toggle-wrap>a{ display: block; padding: 10px; color: #333; background-color: #f5f5f5; border: 1px solid #ddd; border-top-left-radius: 3px; border-top-right-radius: 3px; } | + | .toggle-wrap>a{ display: block; padding: 10px; color: #333; background-color: #f5f5f5; border: 1px solid #ddd; border-top-left-radius: 3px; border-top-right-radius: 3px; } |
− | .toggle-wrap>a:before { content: '\f0d7'; float: left; font-family: FontAwesome; margin-right: 10px; text-decoration: none; } | + | .toggle-wrap>a:before { content: '\f0d7'; float: left; font-family: FontAwesome; margin-right: 10px; text-decoration: none; } |
− | .toggle-content { padding: 10px 20px; border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } | + | .toggle-content { padding: 10px 20px; border: 1px solid #ddd; border-top: none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } |
}} | }} | ||
{{{ArticleCloudRN|}}} | {{{ArticleCloudRN|}}} | ||
− | <!-- Removing the version dropdown for Standalone (version-less) pages -->{{#switch:{{{Standalone}}}|Yes={{#css: | + | <!-- |
− | button#version-dropdown { display: none; } | + | |
− | }}|#default=}}<nowiki /></includeonly><noinclude>[[Category:RNAutomation]]</noinclude> | + | Removing the version dropdown for Standalone (version-less) pages |
+ | |||
+ | -->{{#switch:{{{Standalone}}} | ||
+ | |Yes= | ||
+ | {{#css: | ||
+ | button#version-dropdown { display: none; } | ||
+ | .MintyDocsTopicDesc {display:none} | ||
+ | }} | ||
+ | |#default= | ||
+ | }}[[Category:Linkable]]<nowiki /></includeonly><noinclude>[[Category:RNAutomation]][[Category:ComponentRN.ComponentId cleanup]]</noinclude> |
Latest revision as of 05:45, December 21, 2022
This is the "ArticleCloudRN" template.
It should be called in the following format:
{{ArticleCloudRN |ServiceId= |DepGuideServiceId= |ComponentId= |DeploymentTypeId= |ReleaseTypeId= |Footer= }}
Edit the page to see the template text.
This template defines the table "ArticleCloudRN". View table. This template adds rows to the table "Article", which is declared by the template Article. View table.