|
|
Line 1: |
Line 1: |
| {{Documentation subpage}} | | {{imbox |
| <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
| | | type = featured |
| == Usage == | | | image = [[File:Wikipedia-logo-v2.svg|24px|Wikipedia logo]] |
| Displays the English Wikipedia's current [[Wikipedia:Picture of the day|picture of the day]] (POTD) in a box of no more than 600 pixels wide, without the [[blurb]] (explanatory text), for use on user pages. To always display the current day's POTD, use <code><nowiki>{{POTD}}</nowiki></code>; to permanently feature a particular day's POTD, use <code><nowiki>{{POTD|date=[date]}}</nowiki></code>, where the <code>[date]</code> parameter can be given in any valid format.
| | | text = This image was selected as '''[[Wikipedia:Picture of the day|picture of the day]]''' on the [[English Wikipedia]] for {{POTDlink|{{{1<noinclude>|</noinclude>}}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |, and}} {{POTDlink|{{{2}}}}} |
| | | }}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and}} {{POTDlink|{{{3}}}}} |
| It is also possible to create your own custom POTD layouts, in case the already-existing versions will not look good within your user page design. Mix and match the following components to make your own. '''This system will only work for POTDs selected beginning January 1, 2007.''' Be sure to replace <code>[date]</code> with an appropriate date value. For a dynamically updating version, use <code><nowiki>{{#time:Y-m-d}}</nowiki></code> (example: <code><nowiki>{{POTD/{{#time:Y-m-d}}|image}}</nowiki></code>).
| | }}{{#if:{{{4|}}}|, and {{POTDlink|{{{4}}}}} |
| | | }}. |
| {| class="wikitable" | | }}<includeonly>{{File other|[[Category:Wikipedia Picture of the day files]]}}</includeonly><noinclude> |
| !Template!!width=15%|Description!!Renders as
| | {{Documentation}} |
| |-
| | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
| |<code><nowiki>{{POTD/[date]|image}}</nowiki></code>||The name of the image, without the <code>File:</code> prefix||{{POTD/{{#time:Y-m-d}}|image}}
| | </noinclude> |
| |-
| |
| |<code><nowiki>{{POTD/[date]|size}}</nowiki></code>||The size of the image, without the trailing <code>px</code>||{{POTD/{{#time:Y-m-d}}|size}}
| |
| |-
| |
| |<code><nowiki>{{POTD/[date]|caption}}</nowiki></code>||The image caption ([[blurb]])||{{POTD/{{#time:Y-m-d}}|caption}}
| |
| |-
| |
| |<code><nowiki>{{POTD/[date]|title}}</nowiki></code>||A link to the article the image represents||{{POTD/{{#time:Y-m-d}}|title}}
| |
| |-
| |
| |<code><nowiki>{{POTD/[date]|texttitle}}</nowiki></code>||A linkless short caption, also useful as an [[alt attribute]]||{{POTD/{{#time:Y-m-d}}|texttitle}}
| |
| |-
| |
| |<code><nowiki>{{POTD/[date]|credit}}</nowiki></code>||The credit line of the image, including the genre (e.g. photograph, painting)||{{POTD/{{#time:Y-m-d}}|credit}}
| |
| |}
| |
| | |
| There are two additional predefined layouts:
| |
| * <code><nowiki>{{POTD/{{#time:Y-m-d}}|column}}</nowiki></code>: This has the image and caption above each other with no borders. Used on some of the [[Wikipedia:Main Page alternatives|Main Page alternatives]] and also suitable for user pages.
| |
| * <code><nowiki>{{POTD/{{#time:Y-m-d}}|row}}</nowiki></code>: This has the image and caption encapsulated in (usually) a single table row. This is the version used on the current [[Main Page]].
| |
| | |
| It is also possible to permanently feature a POTD for a selected day. Just add a specific value for the date you want. For example, today's POTD is <code>{{tlp|POTD/{{#time:Y-m-d}}|image}}</code>. Likewise, you can use date parameters with the other templates as well. If you like the pre-made formats, you can use date parameters there as well, like this: <code><nowiki>{{</nowiki>[[Template:Pic of the day|Pic of the day]]|date={{#time:Y-m-d}}}}</code> or <code><nowiki>{{</nowiki>[[Template:POTD|POTD]]|date={{#time:Y-m-d}}}}</code>. Again, '''this system will only work for POTDs selected beginning January 1, 2007.'''
| |
| | |
| ==Search==
| |
| {{POTD subpage search box}} | |
| | |
| <includeonly>{{sandbox other||
| |
| <!-- Categories below this line, please; interwikis at Wikidata --> | |
| [[Category:POTD templates| ]]
| |
| }}</includeonly>
| |