Template:Template Main Process: Difference between revisions

From Aeroraft
Jump to navigationJump to search
(Created page with "<noinclude> {{#template_params:}} </noinclude><includeonly>{| class="wikitable" |- ! |{{#ask:[[Foaf:homepage::{{SUBJECTPAGENAME}}]]|format=list}} |} </includeonly>")
 
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:}}
{| class="wikitable"
</noinclude><includeonly>{| class="wikitable"
! Approval Status
| [[Has approval status::{{#if:{{{ApprovalStatus|}}}|{{{ApprovalStatus}}}|draft}}]]
|}
{{#set:
  Has approval status=draft
}}
 
<templatedata>
{
"params": {
"Scope of Validity": {
"aliases": [
"Global",
"Local"
],
"type": "content",
"autovalue": "Global"
},
"Title": {
"type": "wiki-page-name"
},
"Document Type": {
"aliases": [
"Has document type"
],
"type": "string",
"autovalue": "Main Process"
},
"Approval Status": {
"aliases": [
"Has approval status"
],
"type": "string",
"autovalue": "draft"
},
"Version": {
"type": "string",
"autovalue": "0"
},
"Due Date": {
"type": "string"
},
"Created On": {
"type": "string",
"autovalue": "{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}"
},
"Approval On": {
"type": "string",
"autovalue": "{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}"
},
"Validated On": {
"type": "string",
"autovalue": "{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}"
},
"editor": {
"aliases": [
"Has editor"
],
"label": "Author",
"type": "wiki-user-name",
"autovalue": "{{CURRENTUSER}}"
},
"reviewer": {
"label": "Process Owner",
"type": "wiki-user-name"
},
"approver": {
"label": "Quality Manager",
"type": "wiki-user-name"
}
},
"paramOrder": [
"Scope of Validity",
"Title",
"Version",
"editor",
"reviewer",
"approver",
"Created On",
"Validated On",
"Approval On",
"Document Type",
"Approval Status",
"Due Date"
]
}
</templatedata>
</noinclude><includeonly>{| class="wikitable"style="width: 100%; text-align: center;"
! Scope of Validity !! Title !! Version
|-
| {{{Scope of Validity|Global}}}
||  {{PAGENAME}}
|| 0
|-
! Author !! Process Owner !! Quality Manager
|-
| {{REVISIONUSER}}
|| {{{reviewer|}}} 
|| {{{approver|}}}
|-
! Created on !! Validated on !! Approval on
|-
| {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
|| {{{Validated On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}
|| {{{Approval On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}
|-
! Document Type !! Approval Status !! Due Date
|-
|-
!
| {{{Document Type|Main Process}}} 
|{{#ask:[[Foaf:homepage::{{SUBJECTPAGENAME}}]]|format=list}}
|| {{{Approval Status|draft}}} 
|| {{#time:{{{Approval On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}|+2 years}}  
|}
|}
----
{{#set:Has Scope of Validity={{{Scope of Validity|Global}}}}}
{{#set:Has Title={{PAGENAME}}}}
{{#set:Has version=0}}
{{#set:Has editor=User:{{REVISIONUSER}}}}
{{#if:{{{reviewer|}}}|{{#set:Has process owner=User:{{{reviewer}}}}}}}
{{#if:{{{approver|}}}|{{#set:Has approver=User:{{{approver}}}}}}}
{{#set:Has edited on={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}
{{#set:Has validated on={{{Validated On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}}}
{{#set:Has approval on={{{Approval On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}}}
{{#set:Has document type={{{Document Type|Documented Information}}}}}
{{#set:Has approval status={{{Approval Status|draft}}}}}
{{#set:Has due date={{#time:{{{Approval On|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}}}}}}
</includeonly>
</includeonly>
[[Category:Main Process]]

Latest revision as of 16:08, 3 February 2025

Approval Status draft


No description.

Template parameters

ParameterDescriptionTypeStatus
Scope of ValidityScope of Validity Global Local

no description

Auto value
Global
Contentoptional
TitleTitle

no description

Page nameoptional
VersionVersion

no description

Auto value
0
Stringoptional
Authoreditor Has editor

no description

Auto value
{{CURRENTUSER}}
Useroptional
Process Ownerreviewer

no description

Useroptional
Quality Managerapprover

no description

Useroptional
Created OnCreated On

no description

Auto value
{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
Stringoptional
Validated OnValidated On

no description

Auto value
{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
Stringoptional
Approval OnApproval On

no description

Auto value
{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
Stringoptional
Document TypeDocument Type Has document type

no description

Auto value
Main Process
Stringoptional
Approval StatusApproval Status Has approval status

no description

Auto value
draft
Stringoptional
Due DateDue Date

no description

Stringoptional