Difference between revisions of "Template: Article"

From Genesys Documentation
Jump to: navigation, search
 
(40 intermediate revisions by 5 users not shown)
Line 5: Line 5:
 
<pre>
 
<pre>
 
{{Article
 
{{Article
 +
|Standalone=
 
|productshort=
 
|productshort=
 +
|Platform=
 
|ComingSoon=
 
|ComingSoon=
|Platform=
 
 
|Role=
 
|Role=
 
|DisplayName=
 
|DisplayName=
 
|TocName=
 
|TocName=
|Tags=
 
 
|Dimension=
 
|Dimension=
 
|Context=
 
|Context=
 
|Product=
 
|Product=
 
|Manual=
 
|Manual=
 +
|Application=
 +
|UseCase=
 +
|Prereq=
 +
|PEPageType=
 
}}
 
}}
  
Line 22: Line 26:
  
 
{{#cargo_declare:_table=Article
 
{{#cargo_declare:_table=Article
 +
|Standalone=String
 
|productshort=String
 
|productshort=String
 
|Platform=String
 
|Platform=String
Line 28: Line 33:
 
|DisplayName=String
 
|DisplayName=String
 
|TocName=String
 
|TocName=String
|Tags=List (,) of String
 
 
|Dimension=String
 
|Dimension=String
 
|Context=Wikitext (size=10000)
 
|Context=Wikitext (size=10000)
 
|Product=String
 
|Product=String
 
|Manual=String
 
|Manual=String
 +
|Application=String
 +
|UseCase=String
 +
|Prereq=Wikitext (size=10000)
 +
|PEPageType=String
 
}}
 
}}
  
 
</noinclude>
 
</noinclude>
<includeonly>{{#switch:{{{PageType|}}}|Manual=[[Category:MintyDocsManual]]|#default=[[Category:Article]]}}__TOC__
+
<includeonly><!--
__NOEDITSECTION__{{#cargo_store:_table=Article
+
 
|productshort={{#explode:{{FULLPAGENAME}}|/|0}}
+
setting up local css overrides
|Role={{{Role|}}}
+
 
|ComingSoon={{{ComingSoon|}}}
+
-->{{#css:
|Platform={{{Platform|}}}
+
.MintyDocsTopicDesc {display:none}
|DisplayName={{{DisplayName|}}}
+
}}<!--
|TocName={{{TocName|}}}
+
 
|Tags={{{Tags|}}}
+
choosing which form triggered by categgorybased on PEPageType
|Dimension={{{Dimension|}}}
+
 
|Context={{{Context|}}}
+
-->{{#switch:
|Product={{MINTYDOCSPRODUCT}}
+
{{{PageType|}}}
|Manual={{#explode:{{FULLPAGENAME}}|/|2}}
+
|Manual=[[Category:MintyDocsManual]]
}}{{#switch:{{{PageType|}}}|Manual=|#default={{#mintydocs_topic:
+
|SelfHelpManual=[[Category:SelfHelpManual]]
|display name={{{DisplayName|}}}
+
|#default=[[Category:Article]]
|toc name={{{TocName|}}}
+
}}<!--
}}}}{{#cargo_query:tables=MintyDocsVersion
+
 
|fields=MintyDocsVersion.comingsoon
+
adding TOC and suppressing section editing
|no html
+
 
|default={{#cargo_query:tables=Article|fields=ComingSoon|where=Article._pageName="{{FULLPAGENAME}}" AND ComingSoon="Yes"|format=template|template=ComingSoon|default=}}
+
-->__TOC__
|where=MintyDocsVersion._pageName="{{#explode:{{FULLPAGENAME}}|/|0}}/{{#explode:{{FULLPAGENAME}}|/|1}}" AND comingsoon="Yes"
+
__NOEDITSECTION__<!--
|format=template
+
 
|template=ComingSoon
+
storing values in Article tables
}}{{EPPOHead|Role={{{Role|}}}|Dimension={{{Dimension|}}}|Context={{{Context|}}}|Prereq={{{Prereq|}}}|Tags={{{Tags|}}}}}{{{Section|}}}{{#switch:{{{Standalone}}}|Yes={{#css:  
+
 
button#version-dropdown { display: none; }
+
-->{{#cargo_store:
}}|#default=}}<nowiki /></includeonly><noinclude>[[Category:MintyDocs_Cargo]]</noinclude>
+
_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:14:30)"