Difference between revisions of "Template: Article"

From Genesys Documentation
Jump to: navigation, search
(test eap notice)
 
(One intermediate revision by one other user not shown)
Line 44: Line 44:
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#css: .MintyDocsTopicDesc {display:none} }}{{#switch:{{{PageType|}}}|Manual=[[Category:MintyDocsManual]]|SelfHelpManual=[[Category:SelfHelpManual]]|#default=[[Category:Article]]}}__TOC__
+
<includeonly><!--
__NOEDITSECTION__{{#cargo_store:_table=Article
+
 
|Standalone={{{Standalone|}}}
+
setting up local css overrides
|productshort={{#explode:{{FULLPAGENAME}}|/|0}}
+
 
|Role={{{Role|}}}
+
-->{{#css:  
|ComingSoon={{{ComingSoon|}}}
+
.MintyDocsTopicDesc {display:none}  
|Platform={{{Platform|}}}
+
}}<!--
|DisplayName={{{DisplayName|}}}
+
 
|TocName={{{TocName|}}}
+
choosing which form triggered by categgorybased on PEPageType
|Dimension={{{Dimension|}}}
+
 
|Context={{{Context|}}}
+
-->{{#switch:
|Product={{MINTYDOCSPRODUCT}}
+
{{{PageType|}}}
|Manual={{#explode:{{FULLPAGENAME}}|/|2}}
+
|Manual=[[Category:MintyDocsManual]]
|Application={{{Application|}}}
+
|SelfHelpManual=[[Category:SelfHelpManual]]
|UseCase={{{UseCase|}}}
+
|#default=[[Category:Article]]
|Prereq={{{Prereq|}}}
+
}}<!--
|PEPageType={{{PEPageType|}}}
+
 
}}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#switch:{{{PageType|}}}|Manual=|SelfHelpManual=|#default={{#mintydocs_topic:
+
adding TOC and suppressing section editing
|display name={{{DisplayName|}}}
+
 
|toc name={{{TocName|}}}
+
-->__TOC__
}}}}<!-- Defining the EPPO Header; all parameters need to be passed to it -->{{EPPOHead|Role={{{Role|}}}|ComingSoon={{{ComingSoon|}}}|Dimension={{{Dimension|}}}|Context={{{Context|}}}|UseCase={{{UseCase|}}}|Application={{{Application|}}}|Platform={{{Platform|}}}|PageType=Article}}<!--Defining the Prerequisite Head
+
__NOEDITSECTION__<!--
  -->{{PrerequisitesHead|Prereq={{{Prereq|}}}}}{{{Section|}}}<!-- Removing the version dropdown for Standalone (version-less) pages -->{{#switch:{{{Standalone}}}|Yes={{#css:  
+
 
button#version-dropdown { display: none; }
+
storing values in Article tables
}}|#default=}}<!--Notices --><!--Transclusion Test-->
+
 
{{#if:{{{TransclusionSource|}}}|{{#cargo_query:tables=Section|fields=Type,alignment,anchor,sectionHeading,structuredtext,structuredtextwide,image|format=template|template=Section|named args=yes|where=_pageName="{{#switch:{{NAMESPACENUMBER}}|620=Draft:|#default=}}{{{TransclusionSource}}}"}}|}}{{#cargo_query:tables=Article,MintyDocsManual|join on=Article.Manual=MintyDocsManual.Manual|fields=MintyDocsManual.Notice|where=Article.Manual="{{#explode:{{FULLPAGENAME}}|/|2}}"|named args=yes|format=template|template=Notices|group by=Notice|default=}}</includeonly><noinclude>[[Category:MintyDocs_Cargo]]</noinclude>
+
-->{{#cargo_store:
 +
_table=
 +
Article
 +
|Standalone={{{Standalone|}}}
 +
|productshort={{#explode:{{FULLPAGENAME}}|/|0}}
 +
|Role={{{Role|}}}
 +
|ComingSoon={{{ComingSoon|}}}
 +
|Platform={{{Platform|}}}
 +
|DisplayName={{{DisplayName|}}}
 +
|TocName={{{TocName|}}}
 +
|Dimension={{{Dimension|}}}
 +
|Context={{{Context|}}}
 +
|Product={{MINTYDOCSPRODUCT}}
 +
|Manual={{#explode:{{FULLPAGENAME}}|/|2}}
 +
|Application={{{Application|}}}
 +
|UseCase={{{UseCase|}}}
 +
|Prereq={{{Prereq|}}}
 +
|PEPageType={{{PEPageType|}}}
 +
}}<!--  
 +
 
 +
Set MintyDocs topic, including a switch for different treatment for Manual pages  
 +
 
 +
-->{{#switch:{{{PageType|}}}
 +
|Manual=
 +
|SelfHelpManual=
 +
|#default={{#mintydocs_topic:
 +
|display name={{{DisplayName|}}}
 +
|toc name={{{TocName|}}}
 +
}}
 +
}}<!--  
 +
 
 +
Defining the EPPO Header; all parameters need to be passed to it  
 +
 
 +
-->{{EPPOHead
 +
|Role={{{Role|}}}
 +
|ComingSoon={{{ComingSoon|}}}
 +
|Dimension={{{Dimension|}}}
 +
|Context={{{Context|}}}
 +
|UseCase={{{UseCase|}}}
 +
|Application={{{Application|}}}
 +
|Platform={{{Platform|}}}
 +
|PageType=Article
 +
}}<!--
 +
 
 +
Defining the Prerequisite Head
 +
 
 +
  -->{{PrerequisitesHead
 +
|Prereq={{{Prereq|}}}
 +
}}<!--
 +
 
 +
passing in all content in the embedded mutli-instancae Section template
 +
 
 +
-->{{{Section|}}}<!--  
 +
 
 +
Removing the version dropdown for Standalone (version-less) pages  
 +
 
 +
-->{{#switch:
 +
{{{Standalone}}}
 +
|Yes=
 +
{{#css:  
 +
button#version-dropdown { display: none; }
 +
}}
 +
|#default=
 +
}}<!--  
 +
 
 +
Notices  
 +
 
 +
--><!--Transclusion Test-->
 +
{{#if:
 +
{{{TransclusionSource|}}}
 +
|{{#cargo_query:
 +
tables=Section
 +
|fields=Type,alignment,anchor,sectionHeading,structuredtext,structuredtextwide,image
 +
|format=template
 +
|template=Section
 +
|named args=yes
 +
|where=_pageName="{{#switch:{{NAMESPACENUMBER}}|620=Draft:|#default=}}{{{TransclusionSource}}}"
 +
}}
 +
|
 +
}}</includeonly><noinclude>[[Category:MintyDocs_Cargo]]</noinclude>

Latest revision as of 16:00, June 20, 2022

This is the "Article" template.

It should be called in the following format:

{{Article
|Standalone=
|productshort=
|Platform=
|ComingSoon=
|Role=
|DisplayName=
|TocName=
|Dimension=
|Context=
|Product=
|Manual=
|Application=
|UseCase=
|Prereq=
|PEPageType=
}}

Edit the page to see the template text.

This template defines the table "Article". View table.

Retrieved from "https://all.docs.genesys.com/Template:Article (2025-06-19 22:23:30)"