Template talk:Daybar
From Wikipedia, the free encyclopedia
Contents |
---|
[edit] Documentation
{{Daybar}} should be placed at the top of pages with names that are full dates, e.g. "March 14, 1954". It creates a simple listing of related dates, also allowing for next/previous browsing.
[edit] Syntax
This is how to write the template in wikitext onto your article:
{{Daybar|Month DD, YYYY|YYYY|[[Month DD, YYYY]]|seealso=[[Month]]}}
{{Daybar|year=YYYY}}
{{Daybar|{{PAGENAME}}|YYYY}}
The following is a suggested usage:
{{Daybar|{{subst:PAGENAME}}|YYYY}}
The above avoids problems when pages are included.
[edit] Year information
{{daybar}} requires that information be included as to what year the article is from. This must be included either in the 2nd parameter or the parameter
year
. Failure to include year information will lead to an error, designated by a red exclamation mark.
[edit] Parameters
Positional parameters:
-
Parameter 1
(optional)- Specify a full date from which other dates will be listed.
Parameter 2
(required [unlessyear
, below])- Required for template to function.
Parameter 3
(optional)- Extra dates you might want to list.
Named parameters:
-
year
(required [unless2
, above])- Required for template to function.
seealso
(optional)- Adds another sentence, "see also", This and That.
[edit] Examples
Code | Result |
{{Daybar|year=2002}} (on a page called "March 30, 2002") |
|
{{Daybar|April 23, 1978|1978}} (on a page called "March 30, 2002") |
|
{{Daybar|{{PAGENAME}}|2008|[[November 9, 2008]]}} (on a page called "November 1, 2008") |
|
{{Daybar|December 31, 1999|1999|seealso=[[December 31, 2000]], [[Millennium]]}} (on a page called "November 1, 2008") |
[edit] See also
- {{yearbox}}
[edit] Discussion
Contents |
Click here to add a comment/start a discussion, don't forget to sign with --~~~~
.
[edit] Problem with month pages
I've blanked this template for the time being, as it is causing a problem with month pages. Pages such as February 1, 2005 are transcluded into their month page, i.e. February 2005. However, towards the bottom of the month page, the day pages stop transcluding, which seems to be because of the number of {{daybar}}s that need to be parsed, and the complexity of the daybar function. Having blanked the daybar code, the month pages now display properly. (Revert my blanking and force-reload the month page if you want to confirm this.) It may just be easier (and certainly make the pages load quicker) if the daybar were just manually coded on each page. — sjorford++ 17:29, 25 August 2006 (UTC)