Difference between revisions of "Template:SMWDefaultMarkup"
Jump to navigation
Jump to search
(Don't set Property:Display icon, not needed at the moment) |
(Set parentFullPageName) |
||
Line 9: | Line 9: | ||
* [[Property:ON display date]] | * [[Property:ON display date]] | ||
* [[Property:Display lifespan]] | * [[Property:Display lifespan]] | ||
− | </noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]]<!--[[Has pageName::{{PAGENAME}}| ]] | + | </noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]<!-- |
− | SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}<!-- | + | |
− | + | Below two maybe handy, but currently unused: | |
+ | [[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]] | ||
+ | |||
+ | SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}{{Display lifespan}}<!-- | ||
+ | |||
+ | Below currently unused and the code doesn't work as expected. | ||
{{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Torchlight_help_icon.png| ]]}} | {{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Torchlight_help_icon.png| ]]}} | ||
− | --> | + | --></includeonly> |
Revision as of 13:45, 29 September 2014
This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently simple, and should probably remain that way, because it affects so many pages and has the potential to tie up the SMW jobs queue.
The following properties are set: