Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Set __NOCACHE__ if the page was modified within the last 36 hours)
(Document about NOCACHE)
Line 18: Line 18:
 
* [[Property:Display lifespan]]
 
* [[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}}| ]]<!--
+
<hr/>
 +
2016-04-18 Addition:
 +
It also adds "__NOCACHE__" if the page was modified within the last 36 hours.</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has fullPageNamee::{{FULLPAGENAMEE}}| ]]{{#ifeq: {{ns:}}||[[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]}}[[Has revisionSize::{{REVISIONSIZE}}| ]][[Has revisionUser::{{REVISIONUSER}}| ]]<!--
  
 
Below two maybe handy, but currently unused:
 
Below two maybe handy, but currently unused:

Revision as of 14:19, 18 April 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:


2016-04-18 Addition: It also adds "" if the page was modified within the last 36 hours.