Difference between revisions of "Template:SMWDefaultMarkup"
Jump to navigation
Jump to search
(Better doc) |
(Display image2) |
||
Line 16: | Line 16: | ||
* [[Property:Display date]] | * [[Property:Display date]] | ||
* [[Property:Display image]] | * [[Property:Display image]] | ||
+ | * [[Property:Display image2]] | ||
* [[Property:Display lifespan]] | * [[Property:Display lifespan]] | ||
* [[Property:ON display date]] | * [[Property:ON display date]] | ||
Line 25: | Line 26: | ||
[[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]] | [[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]] | ||
− | SET DISPLAY PROPERTIES -->[[Display image::{{Display image|{{FULLPAGENAME}}}}| ]]{{Display docType}}{{Display date}}{{ON display date}}{{Display lifespan}}<!-- | + | SET DISPLAY PROPERTIES -->[[Display image::{{Display image|{{FULLPAGENAME}}}}| ]][[Display image2::{{Display image|{{FULLPAGENAME}}}}| ]]{{Display docType}}{{Display date}}{{ON display date}}{{Display lifespan}}<!-- |
SET RATING PROPERTIES -->{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#expr: {{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}} round 1}}| ]]}}[[Has noRatings::{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}| ]]<!-- | SET RATING PROPERTIES -->{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#expr: {{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}} round 1}}| ]]}}[[Has noRatings::{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}| ]]<!-- |
Revision as of 06:00, 25 August 2016
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:
- Property:Has fullPageName
- Property:Has fullPageNamee
- Property:Has parentFullPageName
- Property:Has revisionSize
- Property:Has revisionUser
- Property:Has averageRating
- Property:Has noRatings
- Property:Display docType
- Property:Display date
- Property:Display image
- Property:Display image2
- Property:Display lifespan
- Property:ON display date
2016-04-18: Addition: It also adds "__NOCACHE__" if the page was modified within the last 36 hours.