Difference between revisions of "Template:SMWDefaultMarkup"
Jump to navigation
Jump to search
(Add "Image:" to display icon) |
(Switch to ObjectClass2) |
||
Line 8: | Line 8: | ||
* [[Property:Display date]] | * [[Property:Display date]] | ||
* [[Property:ON display date]] | * [[Property:ON display date]] | ||
− | |||
* [[Property:Display lifespan]] | * [[Property:Display lifespan]] | ||
</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]]<!--[[Has pageName::{{PAGENAME}}| ]]-->[[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]<!-- | </noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]]<!--[[Has pageName::{{PAGENAME}}| ]]-->[[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]<!-- | ||
− | SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}{{#if: {{#ask: [[Has | + | SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}{{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Torchlight_help_icon.png| ]]}}{{Display lifespan}}</includeonly> |
Revision as of 18:40, 19 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: