Difference between revisions of "Template: EPPOHead"
From Genesys Documentation
(removing tabs from rss links) |
|||
(43 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude>{{#css: | + | <onlyinclude> |
− | ul.related-links, ul.related-links li {display: inline; margin-left: 0;} | + | {{#css: |
− | ul.related-links li {padding: 0 20px; | + | ul.related-links, ul.related-links li {display: inline; margin-left: 0;} |
− | ul#prod-link li {border: 0 none;} | + | ul.related-links li, ul.related-links>a {padding: 0 20px;border-left: 1px solid #5d3e5d; font-size: 15px;} |
− | ul.related-links li:last-child { border-right: 0 none;} | + | ul#prod-link li {border: 0 none;} |
− | ul.related-links li.roles {padding:0 18px; border-left: 1px solid #77828f;} | + | ul.related-links li:last-child { border-right: 0 none;} |
− | ul.related-links li.roles a, ul.related-links li.roles a:focus, ul.related-links li.roles a:hover {font-weight: 400; color: #77828f;} | + | ul.related-links li.roles {padding:0 18px; border-left: 1px solid #77828f;} |
− | ul.related-links li.apps {padding: 0 | + | ul.related-links li.roles a, ul.related-links li.roles a:focus, ul.related-links li.roles a:hover {font-weight: 400; color: #77828f;} |
− | ul.related-links li.apps:last-child {padding-right: 18px;} | + | ul.related-links li.apps {padding: 0 18px 0 18px;} |
− | ul.related-links li.apps:first-child {padding-left: 18px;border-left: 1px solid #77828f;} | + | ul.related-links li.apps:last-child {padding-right: 18px;} |
− | ul.related-links.pages li:first-child{border:0 none;} | + | ul.related-links li.apps:first-child {padding-left: 18px;border-left: 1px solid #77828f;} |
− | }}<div style="background-color:#f6f6f6; color: #5d3e5d;margin:-20px -18px 20px -36px; padding:20px 20px 30px 40px;"> | + | ul.related-links.pages li:first-child, ul.related-links>a:first-child {border:0 none;} |
+ | span.mw-redirectedfrom {display: none;} | ||
+ | }}<div class="eppo-head" style="background-color:#f6f6f6; color: #5d3e5d;margin:-20px -18px 20px -36px; padding:20px 20px 30px 40px;"> | ||
<div class="col-md-10" id="eppo-links" style="padding:0; margin-top:-10px;min-height:20px;"> | <div class="col-md-10" id="eppo-links" style="padding:0; margin-top:-10px;min-height:20px;"> | ||
− | <ul class="related-links">{{#if:{{{Application|}}}| | + | <ul class="related-links"> |
− | {{#arraymaptemplate:{{{Application|}}}|ApplicationsMap|,|}} | + | {{#if:{{{Application|}}} |
+ | |{{#arraymaptemplate:{{{Application|}}} | ||
+ | |ApplicationsMap | ||
+ | |, | ||
+ | | | ||
+ | }} | ||
}}</ul> | }}</ul> | ||
− | <ul class="related-links">{{#if:{{{Role|}}}| | + | <ul class="related-links"> |
− | {{#arraymaptemplate:{{{Role|}}}|RolesMap|,|}} | + | {{#if:{{{Role|}}} |
+ | |{{#arraymaptemplate:{{{Role|}}} | ||
+ | |RolesMap | ||
+ | |, | ||
+ | | | ||
+ | }} | ||
}}</ul> | }}</ul> | ||
</div> | </div> | ||
Line 25: | Line 37: | ||
<span style="background-color: #5D3E5D; color: #fff; padding: 3px 10px; border: 1px solid #5D3E5D; border-radius: 3px; font-size: 90%; font-weight: 500;margin-right: 5px;"><i class="glyphicon glyphicon-flag" style="margin-right: 5px;"></i>Feature coming soon!</span> | <span style="background-color: #5D3E5D; color: #fff; padding: 3px 10px; border: 1px solid #5D3E5D; border-radius: 3px; font-size: 90%; font-weight: 500;margin-right: 5px;"><i class="glyphicon glyphicon-flag" style="margin-right: 5px;"></i>Feature coming soon!</span> | ||
|}}{{#if:{{{Context|}}}| | |}}{{#if:{{{Context|}}}| | ||
− | <span>{{{Context}}}</span> | + | <span>{{{Context}}}</span>}} |
+ | <!-- An IF to find if any links at all exist. If yes, format accordingly. If no, do nothing. --> | ||
+ | {{#if:{{EPPOQueries | ||
+ | |PageType={{{PageType|}}} | ||
+ | |RN={{{RN|}}} | ||
+ | |ServiceId={{{ServiceId|}}} | ||
+ | |DepGuideServiceId={{{DepGuideServiceId|}}} | ||
+ | }} | ||
+ | |<div style="margin-top:20px;"><span style="font-weight:600;">Related documentation:</span><ul class="related-links pages"> | ||
+ | {{EPPOQueries | ||
+ | |PageType={{{PageType|}}} | ||
+ | |RN={{{RN|}}} | ||
+ | |ServiceId={{{ServiceId|}}} | ||
+ | |DepGuideServiceId={{{DepGuideServiceId|}}} | ||
+ | }} | ||
+ | </ul> | ||
+ | |<!-- do nothing if no links | ||
+ | -->}} | ||
+ | <div> | ||
+ | {{#if:{{{UseCase|}}} | ||
+ | | | ||
+ | {{#switch:{{{Platform|}}} | ||
+ | |GenesysEngage-onpremises=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPE|,|}}</ul> | ||
+ | |GenesysCloud=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPC|,|}}</ul> | ||
+ | |PureConnect=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPCON|,|}}</ul> | ||
+ | }} | ||
+ | | | ||
+ | }}<!-- | ||
+ | |||
+ | adding RSS links to Relase notes pages & PE guide pages | ||
+ | |||
+ | -->{{#switch:{{{RN|}}} | ||
+ | |Yes=<span style="font-weight:600; ">RSS:</span><ul class="related-links pages"><li>[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/Hosted?action=rnrss For cloud]</li><li>[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/PrivateEdition?action=rnrss For private edition]</li></ul> | ||
+ | |#default={{#cargo_query: | ||
+ | tables=MintyDocsManual,Article,Service | ||
+ | |join on= | ||
+ | MintyDocsManual.Manual=Article.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |intro=<span style="font-weight:600; ">RSS:</span><ul class="related-links pages"> | ||
+ | |outro=</ul> | ||
+ | |fields=CONCAT('[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/PrivateEdition?action=rnrss For private edition]') | ||
+ | |where= | ||
+ | Article._pageName="{{FULLPAGENAME}}" | ||
+ | AND (MintyDocsManual.ServiceId IS NOT NULL OR MintyDocsManual.Manual="PEGuide" OR MintyDocsManual.Manual="Operations") | ||
+ | AND Article._pageNamespace="{{NAMESPACENUMBER}}" | ||
+ | |format=template | ||
+ | |template=ListItems | ||
+ | |default= | ||
+ | |group by=Article._pageName | ||
+ | }} | ||
}} | }} | ||
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | <!-- Notices--><div id="footer-notice" style="margin: 0 auto;margin-top:20px;display: none;"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#cargo_query: | {{#cargo_query: | ||
− | + | tables= | |
− | + | Article, | |
− | + | MintyDocsManual | |
− | + | |join on=Article._pageNamespace=MintyDocsManual._pageNamespace | |
− | + | |fields=MintyDocsManual.Notice | |
− | + | |where= | |
− | + | Article._pageName="{{FULLPAGENAME}}" | |
− | + | AND Article.Manual=MintyDocsManual.Manual | |
− | + | |named args=yes | |
− | + | |format=template | |
− | + | |template=Notices | |
− | + | |default= | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div></onlyinclude> | </div></onlyinclude> | ||
<noinclude>[[Category:MintyDocs_Cargo]][[Category:EPPO_Cargo]][[Category:Cargo_CloudRN]][[Category:UCSales_Cargo]] | <noinclude>[[Category:MintyDocs_Cargo]][[Category:EPPO_Cargo]][[Category:Cargo_CloudRN]][[Category:UCSales_Cargo]] | ||
− | </noinclude> | + | </noinclude><noinclude>[[Category:GroupByFix]]</noinclude> |
Latest revision as of 12:42, August 25, 2022
Related documentation: