Template:Potd custom/doc
Jump to navigation
Jump to search
Usage
[edit]For current day
[edit]- Use the following template for the picture of the day for current day on your user page, it will output the above picture
{{Potd custom}}
For any day
[edit]- If you want to use picture of the day of any day, use the following statement:
{{Potd custom|year= |month= |day= }}
- Note: Missing any of
|year=
.|month=
or|day=
will use the current year, month or day respectively
Parameters
[edit]Parameter | Function | Input type | Default value |
---|---|---|---|
|year= |
Outputs the picture of year you want | Number | 2024 (Current) |
|month= |
Outputs the picture of month you want | Number | 12 (Current) |
|day= |
Outputs the picture of day you want | Number | 12 (Current) |
|lang= |
Changes language of the caption | Language | en |
|float= |
Aligns the picture left or right | left/right | right |
|width= |
Width of the picture | px or % | 200px |
|titlecolor= |
Changes text color of the title Picture of the Day | Color | black |
|titlebackground= |
Changes background color of the title Picture of the Day | Color | Monthly default color (See below) |
|captioncolor= |
Changes text color of caption of the picture | Color | black |
|captionbackground= |
Changes background color of the caption | Color | Monthly default color (See below) |
|captionfontstyle= |
Changes font style of the caption | Font face | Normal |
|captionbold= |
Bolds the caption | yes/no | no |
|captionitalic= |
Italics the caption | yes/no | no |
|captionunderline= |
Underlines the caption | yes/no | no |
|customcaption= |
Enables your own caption | Text | Picture's caption |
|datecolor= |
Changes color of the date | Color | black |
|datebackground= |
Changes background color of the date | Color | Monthly default color (See below) |
|datefontstyle= |
Changes font style of the date | Font face | Normal |
|bordercolor= |
Changes border color | Color | Monthly default color (See below) |
|showtitle= |
Shows/hides the title Picture of the Day | yes/no | yes |
|showcaption= |
Shows/hides the caption | yes/no | yes |
|showdate= |
Shows/hides the date | yes/no | yes |
Monthly Default Colors
[edit]- Background colors of picture's title, caption, date and border has following monthly default values:
Month | Title | Caption, date and border |
---|---|---|
January |
| |
February |
| |
March |
| |
April |
| |
May |
| |
June |
| |
July |
| |
August |
| |
September |
| |
October |
| |
November |
| |
December |
|
Examples
[edit]For any day
[edit]Picture of the day |
---|
The Château Laurens (neoclassical house built between 1898 and 1900), in the background the bridge of the railroad, and in the foreground the Hérault River. Agde, Hérault, France. |
8 November 2013
|
- For example, you want picture of the day for 8 November 2013. You need following code:
{{Potd custom|year=2013|month=11|day=08}}
Or:
{{Potd custom |year = 2013 |month = 11 |day = 08 }}
Floating, Width and Language
[edit]- You can float picture left or right by
|float=
, change width in px or % by|width=
or change the language of caption by|lang=
. An example is here:
Picture of the day |
---|
Historische Hütten im Fischerdorf Altja in der Gemeinde Vihula im Nationalpark Lahemaa, Estland |
29 October 2014
|
{{Potd custom|year=2014|month=10|day=29|float=left|width=300px|lang=de}}
Or:
{{Potd custom |year = 2014 |month = 10 |day = 29 |float = left |width = 300px |lang = de }}
Title
[edit]- You can change title Picture of the day's text color by
|titlecolor=
background color by|titlebackground=
parameters.
Picture of the day |
---|
Icelandic horses in Búlandshöfði, Vesturland, Iceland. |
21 September 2015
|
{{Potd custom |year = 2015 |month = 09 |day = 21 |titlecolor = yellow |titlebackground = red }}
- You can also use hex code for color
Caption
[edit]- Caption text color can be change by
|captioncolor=
, background color by|captionbackground=
and font style by|captionfontstyle=
parameters
Picture of the day |
---|
The Atacama Dry lake, in Chile. At the horizon, the Licancabur volcano. |
13 July 2012
|
{{Potd custom |year = 2012 |month = 07 |day = 13 |captioncolor = green |captionbackground = lightyellow |captionfontstyle = serif }}
Caption text type
[edit]Bold Caption:|captionbold=
|
Italic Caption:|captionitalic=
|
Underline Caption:|captionunderline=
|
Custom Caption:|customcaption=
| ||||||||||||||||
|
|
|
| ||||||||||||||||
{{Potd custom |year = 2011 |month = 06 |day = 16 |captionbold=yes }} |
{{Potd custom |year = 2011 |month = 06 |day = 16 |captionitalic=yes }} |
{{Potd custom |year = 2011 |month = 06 |day = 16 |captionunderline=yes }} |
{{Potd custom |year = 2011 |month = 06 |day = 16 |customcaption=This is my custom caption for this picture. }} |
Date
[edit]- Date text color can be change by
|datecolor=
, background color by|datebackground=
and font style by|datefontstyle=
parameters.
Picture of the day |
---|
BMW Welt, Munich, Germany |
24 February 2010
|
{{Potd custom |year = 2010 |month = 02 |day = 24 |datecolor = yellow |datebackground = #db7093 |datefontstyle = courier new }}
Border
[edit]- Border color can be change by
|bordercolor=
parameter.
Picture of the day |
---|
Thor's Hammer formation in Bryce Canyon National Park. Southwestern Utah, USA. |
17 January 2009
|
{{Potd custom |year = 2009 |month = 01 |day = 17 |bordercolor = red }}
Showing/Hiding
[edit]Hiding Title|showtitle=no
|
Hiding Caption|showcaption=no
|
Hiding Date|showdate=no
| |||||||||
|
|
| |||||||||
{{Potd custom |year = 2009 |month=04 |day=04 |showtitle=no }} |
{{Potd custom |year = 2009 |month=04 |day=04 |showcaption=no }} |
{{Potd custom |year = 2009 |month=04 |day=04 |showdate=no }} |
Upcoming
[edit]
|
|
|
|
Previous
[edit]
|
|
|
|
Previous Years
[edit]
|
|
|
|