Difference between revisions of "Template: Article"
From Genesys Documentation
(34 intermediate revisions by 5 users not shown) | |||
Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{Article | {{Article | ||
+ | |Standalone= | ||
|productshort= | |productshort= | ||
+ | |Platform= | ||
|ComingSoon= | |ComingSoon= | ||
− | | | + | |Role= |
|DisplayName= | |DisplayName= | ||
|TocName= | |TocName= | ||
− | |||
|Dimension= | |Dimension= | ||
|Context= | |Context= | ||
|Product= | |Product= | ||
|Manual= | |Manual= | ||
+ | |Application= | ||
+ | |UseCase= | ||
+ | |Prereq= | ||
+ | |PEPageType= | ||
}} | }} | ||
Line 21: | Line 26: | ||
{{#cargo_declare:_table=Article | {{#cargo_declare:_table=Article | ||
+ | |Standalone=String | ||
|productshort=String | |productshort=String | ||
|Platform=String | |Platform=String | ||
Line 27: | Line 33: | ||
|DisplayName=String | |DisplayName=String | ||
|TocName=String | |TocName=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|}}} | + | |
− | + | 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|}}} | + | }}<!-- |
− | }}}} | + | |
− | + | adding TOC and suppressing section editing | |
− | + | ||
− | + | -->__TOC__ | |
− | | | + | __NOEDITSECTION__<!-- |
− | | | + | |
− | + | storing values in Article tables | |
− | + | ||
− | button#version-dropdown { display: none; } | + | -->{{#cargo_store: |
− | }}|#default=}}< | + | _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.