Template:COinS/doc
This is a documentation subpage for Template:COinS (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template is used on over 21,000 pages. Changes to this template may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
Usage
[edit]This template inserts data using the COinS microformat into a page. COinS data makes it easier to correctly cite Wikinews in an academic work. It takes three parameters, y (the year of publication, as a four-digit number, e.g. 2011), m (the month of publication, as a number, e.g. 01), and d (the day of publication, as a number, e.g. 31). If these are not included, it defaults to the date of the last revision.
Hence, it takes the format:
{{COinS|y=2024|m=12|d=22}}
.
Alternatively, it can accept a date, in any format (YYYY-MM-DD preferred), via the date parameter. Hence
{{COinS|date=2024-12-22}}
would (hopefully) give the same output as the example above, as would
{{COinS|date=December 22, 2024}}
It gives no visible output to most users (it has the span style display:none
). Some users (such as those using text-based browsers, e.g. Lynx) will be served a small non-breaking space with some ugly title text.
This page contains COinS data using the current date, as a test of the mechanism.