Template:Property get/Doc
From PCSAR
(Difference between revisions)
(New page: {{Template Doc|<nowiki>PropertyName|page</nowiki>}} returns a property of the given page. If page is not specified, the current page is used. Assuming Demo/Property set/Date sets the...) |
|||
Line 1: | Line 1: | ||
- | {{Template Doc|<nowiki>PropertyName|page</nowiki>}} | + | {{Template Doc|<nowiki>PropertyName|page|Default=default</nowiki>}} |
returns a property of the given page. | returns a property of the given page. | ||
- | If page is not specified, the current page is used. | + | ; PropertyName : the name of the property to get. |
+ | |||
+ | ; Page : (optional) the page to get the property from. If page is not specified, the current page is used. | ||
+ | |||
+ | ; Default : (optional) the value to use if the property is not set. Otherwise nothing is returned. | ||
Assuming [[Demo/Property set/Date]] sets the [[Property:Date]] to "2012-09-14": | Assuming [[Demo/Property set/Date]] sets the [[Property:Date]] to "2012-09-14": |
Current revision
The template {{Property get|PropertyName|page|Default=default}}
returns a property of the given page.
- PropertyName
- the name of the property to get.
- Page
- (optional) the page to get the property from. If page is not specified, the current page is used.
- Default
- (optional) the value to use if the property is not set. Otherwise nothing is returned.
Assuming Demo/Property set/Date sets the Property:Date to "2012-09-14":
You type... | You get... |
---|---|
{{property get|date|Demo/Property set/Date}} | 14 September 2012 |