Difference between revisions of "Template:GetDatePropertyValuePart"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to return the given part of a date type property. The template assumes that the data is previously sotred with Template:SetDatePropertyValu...") |
|||
Line 9: | Line 9: | ||
* <code><nowiki>|part=</nowiki></code> - three values are acceptable: Year, Month, Day. | * <code><nowiki>|part=</nowiki></code> - three values are acceptable: Year, Month, Day. | ||
− | </noinclude> | + | </noinclude><includeonly><!-- |
− | <includeonly><!-- | ||
-->{{#if: {{{object|}}}{{{property|}}}{{{part|}}}<!-- | -->{{#if: {{{object|}}}{{{property|}}}{{{part|}}}<!-- | ||
--><!-- set individual values and build the overall date string | --><!-- set individual values and build the overall date string | ||
-->|{{#show: {{{object|}}}|?{{{property|}}} {{{part|}}}|link=none}}<!-- | -->|{{#show: {{{object|}}}|?{{{property|}}} {{{part|}}}|link=none}}<!-- | ||
− | |||
-->}}<!-- if property | -->}}<!-- if property | ||
--></includeonly> | --></includeonly> |
Revision as of 21:45, 23 August 2016
This template is used to return the given part of a date type property. The template assumes that the data is previously sotred with Template:SetDatePropertyValue. if the value part is unassigned, and empty string is returned.
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|object=
- the full page name of the object.|property=
- the name of the property.|part=
- three values are acceptable: Year, Month, Day.