Template:Potd filename helper

From wikishia
File:Example.jpg

⧼Com-potd-filename-helper-intro⧽

⧼com-potd-filename-helper-descriptions⧽


Documentationview · edit · history · purge ]

This is the helper template for Template:Potd filename. It contains most of the code used on the individual filename pages, to keep it from being loaded dozens of times in the places where it's in heavy use.

Usage

{{Potd filename helper |1= |2= |3= |4= }}

Template parameters

پارامترتوضیحاتپیش‌فرضوضعیت
1FileName of the file that is the picture of the day.emptyضروری
2YearThe year when it was the picture of the day.emptyضروری
3MonthThe month when it was the picture of the day (01 to 12).emptyضروری
4DayThe day when it was the picture of the day (01 to 31).emptyضروری
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

This is the helper template for "Potd filename" template. It contains most of the code used on the individual filename pages, to keep it from being loaded dozens of times in the places where it's in heavy use.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File1

Name of the file that is the picture of the day.

Page namerequired
Year2

The year when it was the picture of the day.

Numberrequired
Month3

The month when it was the picture of the day (01 to 12).

Numberrequired
Day4

The day when it was the picture of the day (01 to 31).

Numberrequired

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Localization

This template is localized by utilizing custom MediaWiki namespace messages.