Difference between revisions of "Template: Article"

From Genesys Documentation
Jump to: navigation, search
 
(16 intermediate revisions by 3 users not shown)
Line 19: Line 19:
 
|UseCase=
 
|UseCase=
 
|Prereq=
 
|Prereq=
 +
|PEPageType=
 
}}
 
}}
  
Line 39: Line 40:
 
|UseCase=String
 
|UseCase=String
 
|Prereq=Wikitext (size=10000)
 
|Prereq=Wikitext (size=10000)
 +
|PEPageType=String
 
}}
 
}}
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#switch:{{{PageType|}}}|Manual=[[Category:MintyDocsManual]]|#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|}}}
+
}}<!--
}}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic:
+
 
|display name={{{DisplayName|}}}
+
adding TOC and suppressing section editing
|toc name={{{TocName|}}}
+
 
}}}}<!--Adding switch to CreateStandaloneArticle forces a "purge" link until page is registered as a mintydocs_topic -->{{#if:{{MINTYDOCSPRODUCT}}| <!-- Defining the EPPO Header; all parameters need to be passed to it -->
+
-->__TOC__
{{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=}}<!--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}}}"}}|}}
+
 
|{{#css: #sidebar-right {display: none !important} .warningbox {display:none} #heading {display:none} # version-dropdown {display:none} }}&nbsp;[https://all.docs-content.genesys.com/index.php?title={{urlencode:{{FULLPAGENAME}}}}&action=purge Purge] (you may need to do this twice to register the page)}}</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:19:27)"