Misplaced Pages

Template:Article history: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 23:12, 16 January 2007 view sourceDr pda (talk | contribs)Extended confirmed users, Rollbackers3,175 editsm should be space not pipe← Previous edit Revision as of 23:47, 16 January 2007 view source Dr pda (talk | contribs)Extended confirmed users, Rollbackers3,175 edits handled case where actionXoldid is not defined, updated instructionsNext edit →
Line 27: Line 27:
</pre> </pre>


*action1 can take values FAC (Featured Article Candidate) or FAR (Featured Article Review). (It 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) *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 or FAR *action1date is the date the article was listed at FAC, FAR, PR, etc
*action1link is the name of the subpage at FAC or FAR *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 {{tl|historyoutput}} for more details.) *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 {{tl|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 action2 up to action6 allow for subsequent FAC/FAR
Line 36: Line 38:
*currentstatus can take values FAC (Featured Article Candidate), FA (Featured Article), FFAC (Former Featured Article Candidate), FAR (Featured Article Review), FFA (Former Featured Article) *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 *maindate is the date the article was (or will be) featured on the Main Page, if any. Can accept all date formats
*oldid (optional) is the revision id of the (most recent) version which was approved as FA. If not given, the link just points to the article history
*small=yes makes the box smaller *small=yes makes the box smaller


==Example== ==Example==
Example for ]:
For ]
<pre><nowiki> <pre><nowiki>
{{ArticleHistory {{ArticleHistory
|action1=FAC |action1=FAC
|action1date=December 12, 2003 |action1date=June 2, 2004
|action1link=Misplaced Pages:Featured article candidates/Hubble Space Telescope/old |action1link=Misplaced Pages:Featured article candidates/Fermi paradox/archive1
|action1result=Promoted |action1result=Promoted
|maindate=March 2, 2004
|action2=FAR |action2=FAR
|action2date=April 24, 2005 |action2date=April 4, 2006
|action2link=Misplaced Pages:Featured article removal candidates/Hubble Space Telescope |action2link=Misplaced Pages:Featured article removal candidates/Fermi paradox
|action2result=Demoted |action2result=Demoted
|action3=FAC |action3=PR
|action3date=June 24, 2005 |action3date=April 28, 2006
|action3link=Misplaced Pages:Featured article candidates/Hubble Space Telescope |action3link=Misplaced Pages:Peer review/Fermi paradox
|action3result=Promoted |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 |currentstatus=FA
}} }}
Line 148: Line 154:
</tr> </tr>
{{#ifeq: {{{action1|}}} | {{{action1|u}}} | {{#ifeq: {{{action1|}}} | {{{action1|u}}} |
{{historyoutput|{{{action1}}}|{{{action1date}}}|{{{action1link}}}|{{{action1result}}}|{{{action1oldid}}}}} {{historyoutput|{{{action1}}}|{{{action1date}}}|{{{action1link}}}|{{{action1result}}}|{{{action1oldid|none}}}}}
| |
}} }}
{{#ifeq: {{{action2|}}} | {{{action2|u}}} | {{#ifeq: {{{action2|}}} | {{{action2|u}}} |
{{historyoutput|{{{action2}}}|{{{action2date}}}|{{{action2link}}}|{{{action2result}}}|{{{action2oldid}}}}} {{historyoutput|{{{action2}}}|{{{action2date}}}|{{{action2link}}}|{{{action2result}}}|{{{action2oldid|none}}}}}
| |
}} }}
{{#ifeq: {{{action3|}}} | {{{action3|u}}} | {{#ifeq: {{{action3|}}} | {{{action3|u}}} |
{{historyoutput|{{{action3}}}|{{{action3date}}}|{{{action3link}}}|{{{action3result}}}|{{{action3oldid}}}}} {{historyoutput|{{{action3}}}|{{{action3date}}}|{{{action3link}}}|{{{action3result}}}|{{{action3oldid|none}}}}}
| |
}} }}
{{#ifeq: {{{action4|}}} | {{{action4|u}}} | {{#ifeq: {{{action4|}}} | {{{action4|u}}} |
{{historyoutput|{{{action4}}}|{{{action4date}}}|{{{action4link}}}|{{{action4result}}}|{{{action4oldid}}}}} {{historyoutput|{{{action4}}}|{{{action4date}}}|{{{action4link}}}|{{{action4result}}}|{{{action4oldid|none}}}}}
| |
}} }}
{{#ifeq: {{{action5|}}} | {{{action5|u}}} | {{#ifeq: {{{action5|}}} | {{{action5|u}}} |
{{historyoutput|{{{action5}}}|{{{action5date}}}|{{{action5link}}}|{{{action5result}}}|{{{action5oldid}}}}} {{historyoutput|{{{action5}}}|{{{action5date}}}|{{{action5link}}}|{{{action5result}}}|{{{action5oldid|none}}}}}
| |
}} }}
{{#ifeq: {{{action6|}}} | {{{action6|u}}} | {{#ifeq: {{{action6|}}} | {{{action6|u}}} |
{{historyoutput|{{{action6}}}|{{{action6date}}}|{{{action6link}}}|{{{action6result}}}|{{{action6oldid}}}}} {{historyoutput|{{{action6}}}|{{{action6date}}}|{{{action6link}}}|{{{action6result}}}|{{{action6oldid|none}}}}}
| |
}} }}

Revision as of 23:47, 16 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.

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=
|action2=
|action2date=
|action2link=
|action2result=
...
|currentstatus=
|maindate=
|small=
|oldid=
}}
  • 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.
Article history
Date Process Result
Current Status: ?
Category: