Revision as of 18:32, 17 January 2007 view sourceRaul654 (talk | contribs)70,896 edits the 'or a previous version of it' functionality has been superseeded by the ability to oldid the FAC date← Previous edit | Revision as of 20:15, 17 January 2007 view source Dr pda (talk | contribs)Extended confirmed users, Rollbackers3,175 edits Changed show/hide NavFrame divs to collapsible table (allows default state of hidden), updated oldid parameters in syntax exampleNext edit → | ||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template combines all the featured article-related templates into one, to reduce clutter on talk pages, and make it less confusing when an article has had multiple FACs, FARs or been demoted and repromoted etc. | This template combines all the featured article-related templates into one, to reduce clutter on talk pages, and make it less confusing when an article has had multiple FACs, FARs or been demoted and repromoted etc. Peer reviews and WikiProject reviews can also be included. | ||
The parameter '''currentstatus''' controls what text appears at the top of the box, a set of parameters of the form |action1= | The parameter '''currentstatus''' controls what text appears at the top of the box, a set of parameters of the form |action1= | ||
Line 13: | Line 13: | ||
|action1link= | |action1link= | ||
|action1result= | |action1result= | ||
|action1oldid= | |||
|action2= | |action2= | ||
Line 18: | Line 19: | ||
|action2link= | |action2link= | ||
|action2result= | |action2result= | ||
|action2oldid= | |||
... | ... | ||
|currentstatus= | |currentstatus= | ||
|maindate= | |maindate= | ||
|small= | |small= | ||
|oldid= | |||
}} | }} | ||
</nowiki> | </nowiki> | ||
Line 123: | Line 124: | ||
{{#ifeq: {{{maindate|}}}| {{{maindate|u}}}| | {{#ifeq: {{{maindate|}}}| {{{maindate|u}}}| | ||
<tr> | <tr> | ||
<td align=" |
<td align="center">]</td> | ||
<td> | <td> | ||
{{#ifexpr: {{CURRENTTIMESTAMP}} >= {{#time: YmdHis|{{{maindate}}} }} | {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{#time: YmdHis|{{{maindate}}} }} | ||
Line 138: | Line 139: | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
< |
<table class="collapsible collapsed" style="width:100%;background-color: #f8eaba; font-size:90%;"> | ||
<tr> | |||
<div class="NavHead" style="font-weight:bold; text-align: center; background-color: #F8EABA; font-size: 110%;">Article history</div> | |||
< |
<th colspan="3"><span style="font-size:110%;">Article History</span></th> | ||
</tr> | |||
<table style="width:100%;background-color: #F8EABA;"> | |||
<tr> | <tr> | ||
<th>Date</th> | <th>Date</th> | ||
Line 173: | Line 174: | ||
<tr><td colspan="3">Current Status: '''{{#ifeq: {{{currentstatus|}}} | {{{currentstatus|u}}}| {{#switch:{{{currentstatus|}}}|FAC|fac=Featured Article Candidate|FA|fa=Featured Article|FAR|far|FARC|farc=Featured Article Review Candidate|FFA|ffa=Former Featured Article|FFAC|ffac|FACfailed|facfailed=Former Featured Article Candidate|?}} |?}}'''</td><tr> | <tr><td colspan="3">Current Status: '''{{#ifeq: {{{currentstatus|}}} | {{{currentstatus|u}}}| {{#switch:{{{currentstatus|}}}|FAC|fac=Featured Article Candidate|FA|fa=Featured Article|FAR|far|FARC|farc=Featured Article Review Candidate|FFA|ffa=Former Featured Article|FFAC|ffac|FACfailed|facfailed=Former Featured Article Candidate|?}} |?}}'''</td><tr> | ||
</table> | </table> | ||
</div></div></div></div> | |||
</td></tr> | </td></tr> | ||
</table> | </table> |
Revision as of 20:15, 17 January 2007
This template combines all the featured article-related templates into one, to reduce clutter on talk pages, and make it less confusing when an article has had multiple FACs, FARs or been demoted and repromoted etc. Peer reviews and WikiProject reviews can also be included.
The parameter currentstatus controls what text appears at the top of the box, a set of parameters of the form |action1= |action1date=|action1link=|action1result= produces a row in the history section at the bottom of the box.
Syntax
{{ArticleHistory |action1= |action1date= |action1link= |action1result= |action1oldid= |action2= |action2date= |action2link= |action2result= |action2oldid= ... |currentstatus= |maindate= |small= }}
- action1 can take values FAC (Featured Article Candidate), FAR (Featured Article Review),and PR (Peer Review). If desired, reviews carried out by WikiProjects can also be included with PPR (Project Peer Review) and AR (A-Class Review). This parameter can also take the values BP (Brilliant Prose) and RBP (Refreshing of Brilliant Prose) for articles which were first featured before the current Featured Article system.
- action1date is the date the article was listed at FAC, FAR, PR, etc
- action1link is the name of the subpage at FAC or FAR
- action1result is the result of the FAC or FAR, and can take values promoted/failed for FAC, kept/demoted for FAR (and RBP) and nominated for BP. (Some synonyms for these are also accepted to make the template more fault-tolerant; view the source of {{historyoutput}} for more details.) For PR/PPR/AR it doesn't matter what you put here, it will just show 'reviewed'
There is also an optional parameter
- action1oldid is the revision id of the article at the end of the procedure, i.e. the version which was approved as FA/demoted after FAR/reviewed at PR etc. If given, the date in the history will link to this version. If not given, the date is unlinked.
action2 up to action6 allow for subsequent FAC/FAR
- currentstatus can take values FAC (Featured Article Candidate), FA (Featured Article), FFAC (Former Featured Article Candidate), FAR (Featured Article Review), FFA (Former Featured Article)
- maindate is the date the article was (or will be) featured on the Main Page, if any. Can accept all date formats
- small=yes makes the box smaller
Example
Example for Fermi Paradox:
{{ArticleHistory |action1=FAC |action1date=June 2, 2004 |action1link=Misplaced Pages:Featured article candidates/Fermi paradox/archive1 |action1result=Promoted |action2=FAR |action2date=April 4, 2006 |action2link=Misplaced Pages:Featured article removal candidates/Fermi paradox |action2result=Demoted |action3=PR |action3date=April 28, 2006 |action3link=Misplaced Pages:Peer review/Fermi paradox |action3result= |action4=FAC |action4date=June 6, 2006 |action4link=Misplaced Pages:Featured article candidates/Fermi paradox |action4result=Promoted |action4oldid=61126325 |maindate=January 13, 2005 |currentstatus=FA }}
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
|