Difference between revisions of "Template: Article"

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