Template talk:Yearbox
From Wikipedia, the free encyclopedia
This template is used to add a box at the top of a years page in order to make it easier to navigate around the timeline.
Contents |
[edit] Usage
After copying the following onto the page
{{yearbox|
| in?=
| cp=
| c=
| cf=
| yp1=
| yp2=
| yp3=
| year=
| ya1=
| ya2=
| ya3=
| dp3=
| dp2=
| dp1=
| d=
| dn1=
| dn2=
| dn3=
}}
you must enter values after the = sign.
in?= (optional) If the page is "XXXX in music" then put: in?=in music. Omitting this parameter will suppress the "Year in XXXX" row
cp= The century previous to the one the page is in. cp=[[20th century]] for 2004
c= The century the page is in. c=[[21st century]] for 2004
cf= The century following the one the page is in. cn1=[[22nd century]] for 2004
yp1=
yp2= These 3 are the 3 decades previous to the one the page is in.
yp3=
year= Page year
ya1=
ya2= These 3 are the 3 years following the page.
ya3=
dp3=
dp2= These 3 are the 3 decades previous to the one the page is in.
dp1=
d= The decade the page is in. d=[[2000s]] for 2004.
dn1=
dn2= These 3 are the 3 decades following the one the page is in.
dn3=
[edit] Examples
These two boxes look exactly the same, but the first one has in?= in aviation so the first line lists the links to the appropriate "Year in Topic" pages.
| Centuries: | 20th Century · 21st century · 22nd century |
| Decades: | 1970s 1980s 1990s 2000s 2010s 2020s 2030s |
| Years: | 2002 2003 2004 2005 2006 2007 2008 |
| Years in film: | 2002 2003 2004 2005 2006 2007 2008 |
| Centuries: | 20th Century · 21st century · 22nd century |
| Decades: | 1970s 1980s 1990s 2000s 2010s 2020s 2030s |
| Years: | 2002 2003 2004 2005 2006 2007 2008 |
[edit] Alternate version of this template
I've made a version of this template that needs fewer parameters (although it can't currently use the in? parameter).
Instead of
| Centuries: | 20th Century · 21st century · 22nd century |
| Decades: | 1970s 1980s 1990s 2000s 2010s 2020s 2030s |
| Years: | 2003 2004 2005 2006 2007 2008 2009 |
{{yearbox|
| cp=20th Century
| c=21st century
| cf=22nd century
| yp1=2003
| yp2=2004
| yp3=2005
| year=2006
| ya1=2007
| ya2=2008
| ya3=2009
| dp3=1970s
| dp2=1980s
| dp1=1990s
| d=2000s
| dn1=2010s
| dn2=2020s
| dn3=2030s
}}
it can be called like this:
| Centuries: | 20th Century · 21st Century · 22nd Century |
| Decades: | 1970s 1980s 1990s 2000s 2010s 2020s 2030s |
| Years: | 2003 2004 2005 2006 2007 2008 2009 |
{{Simple Yearbox|
previousCenturies=19|th | 20|th |
century=21|st |
followingCentury=22|nd |
decadeOfCentury=0 |
yearOfDecade=6
}}
Abou 02:10, 28 May 2006 (UTC)
[edit] Enhancement proposal
I would like to add in2? and in3? parameters so that I can replace Template:TV years header with this template and be able to link to film, television, and home video. Any objections or comments? This shouldn't affect any current usage so I can't see there being much objection. Cburnett 16:46, 2 November 2006 (UTC)
- I know I didn't wait a long time for feedback but I went ahead and did it. See 2006 in film, 2006 in home video, and 2006 in television for usage. Cburnett 14:44, 3 November 2006 (UTC)
[edit] io:template:yari
Please add a link to [[io:template:yari]]. Thank you (João X.M.Santos, from io:Wikipedia).

