Difference between revisions of "Template:SMWDefaultMarkup"
Jump to navigation
Jump to search
m (Text replacement - "Torchlight_help_icon.png" to "Help.png") |
(Add the Display image property) |
||
Line 11: | Line 11: | ||
* [[Property:Has rootFullPageName]] | * [[Property:Has rootFullPageName]] | ||
--> | --> | ||
− | |||
* [[Property:Display docType]] | * [[Property:Display docType]] | ||
* [[Property:Display date]] | * [[Property:Display date]] | ||
+ | * [[Property:Display image]] | ||
+ | * [[Property:Display lifespan]] | ||
* [[Property:ON display date]] | * [[Property:ON display date]] | ||
− | |||
</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has fullPageNamee::{{FULLPAGENAMEE}}| ]]{{#ifeq: {{ns:}}||[[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]}}[[Has revisionSize::{{REVISIONSIZE}}| ]][[Has revisionUser::{{REVISIONUSER}}| ]]<!-- | </noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has fullPageNamee::{{FULLPAGENAMEE}}| ]]{{#ifeq: {{ns:}}||[[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]}}[[Has revisionSize::{{REVISIONSIZE}}| ]][[Has revisionUser::{{REVISIONUSER}}| ]]<!-- | ||
Line 21: | Line 21: | ||
[[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]] | [[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]] | ||
− | SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}{{Display lifespan}}<!-- | + | SET DISPLAY PROPERTIES -->[[Display image::{{Display image|{{FULLPAGENAME}}}}| ]]{{Display docType}}{{Display date}}{{ON display date}}{{Display lifespan}}<!-- |
Below currently unused and the code doesn't work as expected. | 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:Help.png| ]]}} | {{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Help.png| ]]}} | ||
--></includeonly> | --></includeonly> |
Revision as of 15:19, 15 July 2015
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: