Difference between revisions of "Template: WorkspaceArticle"
From Genesys Documentation
Line 43: | Line 43: | ||
==Manage your manuals== | ==Manage your manuals== | ||
{{#cargo_query:tables=MintyDocsManual|fields=CONCAT('[[',_pageName,'|',displayname,']]')=Manual,version=Version,CONCAT('<span class="button">[{{server}}/Special:FormEdit/CreateMintyDocsManual/',_pageName,'?returnto={{FULLPAGENAME}} Setup]</span> <span class="button">[{{server}}/Special:FormEdit/EditTOC/',_pageName,'?returnto={{FULLPAGENAME}} Edit TOC]</span>')=Edit manual|where=product="{{#explode:{{FULLPAGENAME}}|/|0}}" AND _pageName!="{{FULLPAGENAME}}"|format=dynamic table}} | {{#cargo_query:tables=MintyDocsManual|fields=CONCAT('[[',_pageName,'|',displayname,']]')=Manual,version=Version,CONCAT('<span class="button">[{{server}}/Special:FormEdit/CreateMintyDocsManual/',_pageName,'?returnto={{FULLPAGENAME}} Setup]</span> <span class="button">[{{server}}/Special:FormEdit/EditTOC/',_pageName,'?returnto={{FULLPAGENAME}} Edit TOC]</span>')=Edit manual|where=product="{{#explode:{{FULLPAGENAME}}|/|0}}" AND _pageName!="{{FULLPAGENAME}}"|format=dynamic table}} | ||
− | |||
==Manage Standalone articles== | ==Manage Standalone articles== | ||
+ | You can create two kinds of standalone articles: generic standalone and How It Works articles. Each article type lives within this workspace. | ||
+ | {| | ||
+ | !Generic standalone article | ||
+ | !Structured "How It Works" article | ||
+ | !Standalone Deprecation Notice article | ||
+ | |- | ||
+ | | style="vertical-align:top" | | ||
<div class="template-form"> | <div class="template-form"> | ||
{{#formlink:form=CreateStandaloneArticle | {{#formlink:form=CreateStandaloneArticle | ||
| link type=button | | link type=button | ||
− | |link text=Create | + | |link text=Create generic standalone article |
|query string=Article[product]={{#explode:{{FULLPAGENAME}}|/|0}} | |query string=Article[product]={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |returnto={{FULLPAGENAME}} | ||
|reload | |reload | ||
− | | | + | |popup |
+ | }} | ||
</div> | </div> | ||
− | + | | style="vertical-align:top" | | |
− | + | <div class="template-form"> | |
+ | {{#formlink:form=HIW | ||
+ | | link type=button | ||
+ | |link text=Create How It Works article | ||
+ | |query string=HIW[product]={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |returnto={{FULLPAGENAME}} | ||
+ | |reload | ||
+ | }} | ||
+ | </div> | ||
+ | | style="vertical-align:top" | | ||
+ | {{#cargo_query:tables=Article|fields=CONCAT('<div style="display:none;">',Standalone,'</div>')|where=DisplayName="Deprecation-AllNotices" AND productshort="{{#explode:{{FULLPAGENAME}}|/|0}}"|default= | ||
+ | <div class="template-form"> | ||
+ | {{#formlink:form=DeprecationNoticeList | ||
+ | | link type=button | ||
+ | |link text=Create Deprecation List page | ||
+ | |query string=DeprecationNoticeList[product]={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |returnto={{FULLPAGENAME}} | ||
+ | |reload | ||
+ | }} | ||
+ | </div> | ||
+ | }} | ||
+ | <div class="template-form"> | ||
+ | {{#formlink:form=DeprecationNotice | ||
+ | | link type=button | ||
+ | |link text=Add a Deprecation Notice | ||
+ | |query string=DeprecationNotice[product]={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |query string=DeprecationNotice[Title]={{{Title|}}} | ||
+ | |returnto={{FULLPAGENAME}} | ||
+ | |reload | ||
+ | }} | ||
+ | </div> | ||
+ | |} | ||
===List of standalone articles in this workspace=== | ===List of standalone articles in this workspace=== | ||
− | {{# | + | {{#cargo_compound_query: |
+ | tables=Article;where=Article.Standalone="Yes" AND productshort="{{#explode:{{FULLPAGENAME}}|/|0}}";fields=CONCAT('[[',Article._pageName,'|',Article.displayname,']]')=Article | ||
+ | |tables=HIW;where=productshort="{{#explode:{{FULLPAGENAME}}|/|0}}";fields=CONCAT('[[',_pageName,'|',DisplayName,']]')=Article | ||
+ | |format=dynamic table}} | ||
__NOCACHE__ | __NOCACHE__ |
Revision as of 23:56, September 19, 2019
This is the "WorkspaceArticle" template.
It should be called in the following format:
{{WorkspaceArticle |productshort= |DisplayName= |Product }}
Edit the page to see the template text.
This template defines the table "WorkspaceArticle". View table.