Difference between revisions of "Template:Design pattern"

From PegaWiki
Jump to navigation Jump to search
(added label to all fields)
Tag: Visual edit: Switched
(release 1.1 - new design pattern code)
 
(6 intermediate revisions by 3 users not shown)
Line 14: Line 14:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#set: Class=Design pattern  
+
</noinclude><includeonly>{{#vardefine:@title|{{#if:{{{Title|}}} |{{{Title|}}} |{{#explode:{{FULLPAGENAME}}|-|-1|2}} }} }}<!--
 +
-->__NOTITLE__<!--
 +
 
 +
 
 +
// ---v Do not change!!
 +
--><div class="title"><h1 style="display:inline;">{{#var:@title}}</h1><div class="ratingstars-inline-title">{{#ratepage:{{FULLPAGENAME}}|Main }}</div><!--
 +
-->{{DISPLAYTITLE:{{#var:@title}} }}<!--
 +
--></div><!--
 +
// ---^ Do not change!!
 +
 
 +
-->{{#set: Class=Design pattern  
 
|Title={{{Title|}}}  
 
|Title={{{Title|}}}  
 
|Description={{{Description|}}}  
 
|Description={{{Description|}}}  
Line 21: Line 31:
 
|Capability/Industry Area={{{Capability Area|}}}  
 
|Capability/Industry Area={{{Capability Area|}}}  
 
|Owner={{{Owner|}}}  
 
|Owner={{{Owner|}}}  
 +
|Average rating=
 +
|E-mail notification sent={{{E-mail notification sent|True}}}
 
|Is new={{#if: {{#show: {{FULLPAGENAME}} |?Approval status}}|0|1}}  
 
|Is new={{#if: {{#show: {{FULLPAGENAME}} |?Approval status}}|0|1}}  
 
|Is changed={{#ifexpr: {{#time: U | {{#show: {{FULLPAGENAME}} |?Modification date#ISO}} }} > {{#time: U | {{#show: {{FULLPAGENAME}} |?Approval date#ISO|default=2020-01-01}} }}|1|0}}  
 
|Is changed={{#ifexpr: {{#time: U | {{#show: {{FULLPAGENAME}} |?Modification date#ISO}} }} > {{#time: U | {{#show: {{FULLPAGENAME}} |?Approval date#ISO|default=2020-01-01}} }}|1|0}}  
 
}}
 
}}
 +
<div class="infobar">
 +
<div class="description">
 
{| class="wikitable"
 
{| class="wikitable"
 
! Description
 
! Description
Line 37: Line 51:
 
| {{{Capability Area|}}}
 
| {{{Capability Area|}}}
 
|}
 
|}
 +
</div><!--
 +
-->{{Pega liked badge}}<!--
 +
--></div><!--
 +
 +
-->
 +
__TOC__
 
{{{Body|}}}
 
{{{Body|}}}
 +
 +
[[Category:{{{Applications}}}]]
 +
[[Category:Design pattern]]
 +
 
</includeonly>
 
</includeonly>
 +
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
     "description": "Template for adding metadata to a Design pattern.",
+
     "description": "Please select the appropriate value from the available dropdowns where applicable",
 
     "params": {
 
     "params": {
 
         "Title": {
 
         "Title": {
 
             "label": "Design pattern title",
 
             "label": "Design pattern title",
 +
            "description": "Description placeholder that explains the purpose of this field",
 
             "type": "string",
 
             "type": "string",
 
             "example": "Design pattern title",
 
             "example": "Design pattern title",
Line 52: Line 78:
 
         "Description": {
 
         "Description": {
 
             "label": "Design pattern description",
 
             "label": "Design pattern description",
 +
            "description": "Description placeholder that explains the purpose of this field",
 
             "type": "string",
 
             "type": "string",
 
             "example": "Design pattern description",
 
             "example": "Design pattern description",
Line 58: Line 85:
 
         "Version": {
 
         "Version": {
 
             "label": "Pega Infinity version",
 
             "label": "Pega Infinity version",
             "type": "string",
+
            "description": "Description placeholder that explains the purpose of this field",
 +
             "type": "wiki-user-name",
 
             "example": "Pega Infinity version",
 
             "example": "Pega Infinity version",
 
             "required": true
 
             "required": true
Line 64: Line 92:
 
         "Applications": {
 
         "Applications": {
 
             "label": "Pega Platform or Application",
 
             "label": "Pega Platform or Application",
             "type": "string",
+
            "description": "Description placeholder that explains the purpose of this field",
 +
             "type": "wiki-user-name",
 
             "example": "'Platform' or Application name",
 
             "example": "'Platform' or Application name",
 
             "required": true
 
             "required": true
 
         },
 
         },
 
         "Capability Area": {
 
         "Capability Area": {
             "label": "Capability area",
+
             "label": "Capability or Industry area",
             "type": "string",
+
            "description": "Description placeholder that explains the purpose of this field",
 +
             "type": "wiki-user-name",
 
             "example": "Capability area",
 
             "example": "Capability area",
 
             "required": true
 
             "required": true
Line 76: Line 106:
 
         "Owner": {
 
         "Owner": {
 
             "label": "Design pattern owner",
 
             "label": "Design pattern owner",
             "type": "string",
+
            "description": "Description placeholder that explains the purpose of this field",
 +
             "type": "wiki-user-name",
 
             "example": "Design pattern owner",
 
             "example": "Design pattern owner",
 
             "required": true
 
             "required": true
Line 84: Line 115:
 
         "Title",
 
         "Title",
 
         "Description",
 
         "Description",
 +
        "Version",
 
         "Applications",
 
         "Applications",
        "Version",
 
 
         "Capability Area",
 
         "Capability Area",
 
         "Owner"
 
         "Owner"

Latest revision as of 08:13, 27 May 2021

This is the "Design pattern" template. It should be called in the following format:

{{Design pattern
|Title=
|Description=
|Version as of=
|Application=
|Capability/Industry Area=
|Owner=
|Body=
}}

Edit the page to see the template text.


Please select the appropriate value from the available dropdowns where applicable

Template parameters

ParameterDescriptionTypeStatus
Design pattern titleTitle

Description placeholder that explains the purpose of this field

Example
Design pattern title
Stringrequired
Design pattern descriptionDescription

Description placeholder that explains the purpose of this field

Example
Design pattern description
Stringrequired
Pega Infinity versionVersion

Description placeholder that explains the purpose of this field

Example
Pega Infinity version
Userrequired
Pega Platform or ApplicationApplications

Description placeholder that explains the purpose of this field

Example
'Platform' or Application name
Userrequired
Capability or Industry areaCapability Area

Description placeholder that explains the purpose of this field

Example
Capability area
Userrequired
Design pattern ownerOwner

Description placeholder that explains the purpose of this field

Example
Design pattern owner
Userrequired