Difference between revisions of "Template:P"
Jump to navigation
Jump to search
(Simplification. There is no need to use Template:Q for this) |
(Set a maintenance reason, if the requested Property doesn't exist) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#show: {{FULLPAGENAME}} | ?{{{1}}} | link = none }}</includeonly><noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}</noinclude> | + | <includeonly>{{#if: {{#vardefineecho:q | {{#show: {{FULLPAGENAME}} | ?{{{1}}} | link = none }} }} | {{#var:q}} | {{#set: Maintenance Reason | Property requested by Template:P doesn't exist: "{{{1}}}" }} }}</includeonly><noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}</noinclude> |
Revision as of 23:22, 7 April 2023
Description
This template shows the specified property of the page it is used on. It can be used within tables or anywhere.
Warning: This template is used on a lot of pages. Use caution when editing this template.
Syntax
{{P|<property>}}
Required parameters:
Property: Show the value of this property.
Optional parameters:
No optional parameters are accepted.
Examples
You can see this pages properties on: Special:Browse/:Template:P
Typing the following on this page:
{{P|Modification date}}
Gives:
7 April 2023 23:35:16
Typing the following on this page:
{{P|Category}}
Gives:
Category:SMW templates
See also
The above documentation is transcluded from Template:P/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |