Template:Approval: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
Line 24: Line 24:
***This code adds the workgroup names, upto three can be used from the metadata page.***
***This code adds the workgroup names, upto three can be used from the metadata page.***


-->The {{#if:{{{group}}}
-->The {{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat1}}|
           |{{#if:{{{group2|}}}
           |an unknown workgroup}} oversaw this approval.
              |{{#if:{{{group3|}}}
          |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat3}}|
                     |[[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]], [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]] and [[CZ:{{{group3}}} Workgroup|{{{group3}}} Workgroup]] are
                     |[[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup]] and [[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat2}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat2}} Workgroup]] oversaw this approval.
                    |[[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]] and [[CZ:{{{group2}}} Workgroup|{{{group2}}} Workgroup]] are}}
                    |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat2}}|
              |[[CZ:{{{group}}} Workgroup|{{{group}}} Workgroup]]}}
                          |[[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup]] oversaw this approval.
          |an unknown workgroup}} oversaw this approval. <!--
                          |[[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup]], [[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat2}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat2}} Workgroup]] and [[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat3}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat3}} Workgroup]]}} oversaw this approval. }} }} }}<!--


***This code adds the date for approval unless no url has been specificed.***
***This code adds the date for approval unless no url has been specificed.***

Revision as of 09:31, 21 August 2007

[[User:{{{ToA editor}}}|{{{ToA editor}}}]] nominated this article for approval. The oversaw this approval. [[CZ:Template:Approval/Metadata Workgroup|Template:Approval/Metadata Workgroup]], [[CZ:Template:Approval/Metadata Workgroup|Template:Approval/Metadata Workgroup]] and [[CZ:Template:Approval/Metadata Workgroup|Template:Approval/Metadata Workgroup]] oversaw this approval. }} }}

Usage

This template is used to document the approval process on the Approval subpage of an article. After the approval process is complete the ToApprove metadata should be deleted from the Metadata subpages and pasted into this template on the Approval subpage. For more information about the process, see CZ:Approval Process.

The template fields include:

{{Approval
|article url = 
|subpage url = 
|cluster =
|now =
|ToA editor=
|ToA editor2=
|ToA editor3=
|group=
|group2=
|group3=
|date =
}}

Type of approvel

Whole cluster use the article url and the cluster field.
Article only use the article url and leave the cluster field blank.
Subpage only us the subpage url field and leave the cluster field blank.
Article and ONE subpage use both the article and subpage url fields but leave the cluster field blank.

Parameters

article url = the location in the page history where the version-to-approve lives.

subpage url = the location in the page history where the version-to-approve lives.

cluster = add text here if the whole cluster needs to be approved, otherwise leave blank.

now = the date and time when the template was added.

ToA editor = the username of the person who did the approval (or who nominated the article on behalf of a group of people)

ToA editor2 = second editor (optional but must use before editor3 if only two editors approved)

ToA editor3 = third editor (optional)

group = must be an existing workgroup

group2 = second workgroup (optional but must use before group3 if only two workgroups)

group3 = third workgroup (optional)

date = format yyyymmdd (typically three days after "now", to allow copyedits and suggestions)