Template:Approval: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(adjust)
imported>Chris Day
(edit so names appear correctly)
 
(30 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{{!}}class=noprint width=100% border="0" cellpadding="5" cellspacing="0" style="text-align: left; border-bottom:2px solid #aaaaaa; border-top:2px solid #dddddd; border-left:2px solid #bbbbbb; border-right:2px solid #dddddd; border-collapse:collapse"
{|width=100% border="0" cellpadding="5" cellspacing="0" style="text-align: left; border-bottom:2px solid #999999; border-top:2px solid #dddddd; border-left:2px solid #aaaaaa; border-right:2px solid #dddddd; border-collapse:collapse"
{{!}}style="background:ffffff"{{!}} '''[[User:{{{ToA editor}}}|{{{ToA editor}}}]]''' <!--
|{{#if:{{{removed|}}}|style="background:#F5D3D1"|style="background:#F5F9E5"}}| '''{{#ifexist:User:{{{ToA editor}}}|[[User:{{{ToA editor}}}|{{{ToA editor}}}]]|{{{ToA editor}}}}}''' <!--


***This determines what was up for approval; the whole cluster, a subpage, the article or both.***
***This determines what was up for approval; the whole cluster, a subpage, the article or both.***
Line 18: Line 18:
-->{{#if:{{{ToA editor2|}}}
-->{{#if:{{{ToA editor2|}}}
           |{{#if:{{{ToA editor3|}}}
           |{{#if:{{{ToA editor3|}}}
               |Two other editors supported the approval ([[User:{{{ToA editor2}}}|{{{ToA editor2}}}]] and [[User:{{{ToA editor3}}}|{{{ToA editor3}}}]]).
               |Two other editors supported the approval ({{#ifexist:User:{{{ToA editor2}}}|[[User:{{{ToA editor2}}}|{{{ToA editor2}}}]]|{{{ToA editor2}}}}} and {{#ifexist:User:{{{ToA editor3}}}|[[User:{{{ToA editor3}}}|{{{ToA editor3}}}]]|{{{ToA editor3}}}}}).
               |One other editor supported the approval ([[User:{{{ToA editor2}}}|{{{ToA editor2}}}]]).}}  
               |One other editor supported the approval ({{#ifexist:User:{{{ToA editor2}}}|[[User:{{{ToA editor2}}}|{{{ToA editor2}}}]]|{{{ToA editor2}}}}}).}}  
           |}} <!--
           |}} <!--


***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
-->{{#ifeq:{{{cat1|}}}|
{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat1}}|
           |An unknown workgroup oversaw this approval
           |an unknown workgroup}} oversaw this approval.
           |{{#ifeq:{{{cat3|}}}|
           |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat3}}|
                     |{{#ifeq:{{{cat2|}}}|
                     |{{#ifeq:{{{{BASEPAGENAME}}/Metadata|info=cat2}}|
                           |The [[CZ:{{{cat1}}} Workgroup|{{{cat1}}} Workgroup]] oversaw this approval
                           |[[CZ:{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup|{{{{BASEPAGENAME}}/Metadata|info=cat1}} Workgroup]] oversaw this approval.
                           |The [[CZ:{{{cat1}}} Workgroup|{{{cat1}}} Workgroup]] and [[CZ:{{{cat2}}} Workgroup|{{{cat2}}} Workgroup]] oversaw this approval}}
                           |[[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.}}
                     |The [[CZ:{{{cat1}}} Workgroup|{{{cat1}}} Workgroup]], [[CZ:{{{cat2}}} Workgroup|{{{cat2}}} Workgroup]] and [[CZ:{{{cat3}}} Workgroup|{{{cat3}}} 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.***


-->{{#if:{{{cluster|}}}
-->{{#if:{{{removed|}}}
              |The cluster was approved on or around  '''{{#if: {{{date}}}|{{{date}}}|{{AddDays|3}}}}.''' 
          |. The ToApprove template was removed by {{{removed}}}.
          |{{#if:{{{cluster|}}}
              |&nbsp;and the cluster was approved on{{#ifeq:{{{date|}}}||&#32;an unknown date|, or around, {{{date}}}}}.  
               |{{#if:{{{article url|}}}
               |{{#if:{{{article url|}}}
                     |The article was approved on or around  '''{{#if: {{{date}}}|{{{date}}}|{{AddDays|3}}}}.'''
                     |&nbsp;and the article was approved on{{#ifeq:{{{date|}}}||&#32;an unknown date|, or around, {{{date}}}}}.  
                     |{{#if:{{{subpage url|}}}
                     |{{#if:{{{subpage url|}}}
                             |The subpage was approved on or around  '''{{#if: {{{date}}}|{{{date}}}|{{AddDays|3}}}}.'''
                             |&nbsp;and the subpage was approved on{{#ifeq:{{{date|}}}||&#32;an unknown date|, or around, {{{date}}}}}.  
                             |}} }} }}
                             |}} }} }} }}
{{!}}}<noinclude>
|}<noinclude>


==Usage==
==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]].
This template is used to document the approval process on the /Approval subpage of an article (see [[Shirley Chisholm/Approval]] for an example). After the approval process is complete, the ToApprove metadata should be deleted from the Metadata subpages and pasted into a call of this template on the /Approval subpage. For more information about the process, see [[CZ:Approval Process]].


The template fields include:
The template fields include:


<pre>
<pre>
{{Approval
{{Approval  
|article url =  
|cat1 =
|cat2 =
|cat3 =
|article url =
|subpage url =  
|subpage url =  
|cluster =
|cluster =
Line 59: Line 63:
|ToA editor2=
|ToA editor2=
|ToA editor3=
|ToA editor3=
|group=
|group2=
|group3=
|date =
|date =
|removed=
}}
}}
</pre>
</pre>
==Type of approvel==
 
==Type of approval==


:'''Whole cluster''' use the ''article url'' and the ''cluster'' field.   
:'''Whole cluster''' use the ''article url'' and the ''cluster'' field.   
Line 71: Line 74:
:'''Subpage only''' us the ''subpage url'' field 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.
:'''Article and ONE subpage''' use both the ''article and subpage url'' fields but leave the ''cluster'' field blank.
==Parameters==
==Parameters==
'''cat1''' = must be an existing workgroup
'''cat2''' = second workgroup (optional but must use before group3 if only two workgroups)
'''cat3''' = third workgroup (optional)
'''article url''' = the location in the page history where the version-to-approve lives.
'''article url''' = the location in the page history where the version-to-approve lives.


Line 85: Line 96:


'''ToA editor3''' = third editor (optional)
'''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)
'''date''' = format yyyymmdd (typically three days after "now", to allow copyedits and suggestions)


'''removed''' = who removed the template.  Only used in cases where the ToApprove template was removed before the approval took place. Explanation can go underneath the template on the approval page.
</noinclude>
</noinclude>

Latest revision as of 15:35, 5 January 2009

{{{ToA editor}}} nominated this article for approval. An unknown workgroup oversaw this approval

Usage

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

The template fields include:

{{Approval 
|cat1 =
|cat2 =
|cat3 =
|article url =
|subpage url = 
|cluster =
|now =
|ToA editor=
|ToA editor2=
|ToA editor3=
|date =
|removed=
}}

Type of approval

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

cat1 = must be an existing workgroup

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

cat3 = third workgroup (optional)

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)

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

removed = who removed the template. Only used in cases where the ToApprove template was removed before the approval took place. Explanation can go underneath the template on the approval page.