Editing
Help:Citation Style 1
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Auto-formatting citation template dates==== {{Use dmy dates|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|cs1-dates=y}} [[Help:Citation Style 1|Citation Style 1]] and [[Help:Citation Style 2|2]] templates automatically render dates ({{para|date}}, {{para|access-date}}, {{para|archive-date}}, etc.) in the style specified by the article's {{tlx|use dmy dates}} or {{tlx|use mdy dates}} template. Editors may also choose how CS1/CS2 templates render dates by the use of {{para|cs1-dates|<{{var|keyword}}>}} in the article's {{tld|use xxx dates}} template.<section begin="auto_date_format_table" /> {| class="wikitable" |+Acceptable <code>{{pipe}}cs1-dates=</code> keywords !scope="col"| Keyword !scope="col"| Definition |- !scope="row"| <code>l</code> |rowspan="2"| long-form publication and access- / archive-dates;<br />this is the default case when {{para|cs1-dates|plain=yes}} is omitted or empty |- !scope="row"| <code>ll</code> |- !scope="row"| <code>ls</code> | long-form publication dates; abbreviated access- / archive-dates |- !scope="row"| <code>ly</code> | long-form publication dates; year-initial numeric access- / archive-dates (ymd) |- !scope="row"| <code>s</code> |rowspan="2"| abbreviated publication and access- / archive-dates |- !scope="row"| <code>ss</code> |- !scope="row"| <code>sy</code> | abbreviated publication dates; year-initial numeric access- / archive-dates (ymd) |- !scope="row"| <code>y</code> |rowspan="2"| year-initial numeric publication, access- and archive-dates (ymd);<br />cs1|2 cannot reformat Month YYYY, Season YYYY, date-ranges of any form, or [[Julian calendar]] dates into ymd format |- !scope="row"| <code>yy</code> |}<section end="auto_date_format_table" /> Example: to have the CS1/CS2 templates in an article render their publication dates in the long form (fully spelled-out month names) with access-/archive-dates rendered in short form (abbreviated month names), write: :{{tlx|use dmy dates|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}|cs1-dates{{=}}ls}} This documentation page has <code><nowiki>{</nowiki>{use dmy dates|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|cs1-dates=y}}</code> at the top of this section so this cs1 template will render with ymd dates: :<code><nowiki>{{</nowiki>cite web |title=Example Webpage |date=31 October 2017 |website=Example |url=https://example.com/ |access-date=Dec 5, 2017}}</code> ::{{cite web |title=Example Webpage |date=31 October 2017 |website=Example |url=https://example.com/ |access-date=Dec 5, 2017}} This global setting may be overridden in individual CS1/CS2 templates by use of {{para|df}}; abbreviated date forms are not supported by {{para|df}}. {{lang|la|Nota bene}}: CS1/CS2 auto-date formatting does not apply when previewing an article section that does not contain a {{tld|use xxx dates}} template.
Summary:
Please note that all contributions to Ikwipedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Ikwipedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Help page
Discussion
English
Views
Read
Edit source
View history
More
Move
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information