Meryam Sahin (talk | contribs) Wrapper template for metadata content droplet |
Meryam Sahin (talk | contribs) Show a hint instead of an error while parameters are empty |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{dateformat|}}}|{{#time:{{{dateformat}}}|@{{#neowiki_show:{{{page|{{FULLPAGENAME}}}}}|{{{property|}}}}}}}|{{#neowiki_show:{{{page|{{FULLPAGENAME}}}}}|{{{property|}}}}}}}</includeonly><noinclude> | <includeonly>{{#if:{{{property|}}}|{{#if:{{{dateformat|}}}|{{#time:{{{dateformat}}}|@{{#neowiki_show:{{{page|{{FULLPAGENAME}}}}}|{{{property|}}}}}}}|{{#neowiki_show:{{{page|{{FULLPAGENAME}}}}}|{{{property|}}}}}}}|<span class="metadata-droplet-hint" style="color:#72777d">''Metadata value: open the droplet and fill in the parameters.''</span>}}</includeonly><noinclude> | ||
Shows a single metadata value from a page. Used by the "Metadata value" content droplet. | Shows a single metadata value from a page. Used by the "Metadata value" content droplet. | ||
Latest revision as of 12:58, 4 November 2026
Shows a single metadata value from a page. Used by the "Metadata value" content droplet.
Shows a single metadata value from a page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page | page | Page that holds the metadata. Leave empty for the current page. | Page name | suggested |
| Property | property | Schema and property, separated by a dot. Example: Document Control.Valid until | String | required |
| Date format | dateformat | Only for date properties. PHP date format, for example Y-m-d or d.m.Y. Leave empty for other properties.
| String | optional |