Template:SMWDefaultMarkup: Difference between revisions
Appearance
WikiSpooks>Robin Revert |
m Plain formatting, no semantic markup |
||
| Line 34: | Line 34: | ||
<hr/> | <hr/> | ||
2016-04-18: Addition: | 2016-04-18: Addition: | ||
It also adds "<nowiki></nowiki>" if the page was modified within the last 36 hours.</noinclude><includeonly> | It also adds "<nowiki></nowiki>" if the page was modified within the last 36 hours.</noinclude><includeonly>{{#ifeq: {{ns:}}||}}<!-- | ||
Below two maybe handy, but currently unused: | Below two maybe handy, but currently unused: | ||
SET useful SMW PROPERTIES --> | SET useful SMW PROPERTIES --> | ||
{{#ifeq: | {{#ifeq: |Person|<!-- | ||
--> | --><!-- | ||
--> | --><!-- | ||
--> | --><!-- | ||
--> | --><!-- | ||
--> | --><!-- | ||
--> | -->}}<!-- | ||
--> | --><!-- | ||
SET DISPLAY PROPERTIES: | SET DISPLAY PROPERTIES: | ||
| Line 53: | Line 53: | ||
* 2019-06-19 Below suspended after an upgrade caused the below to manifest text. | * 2019-06-19 Below suspended after an upgrade caused the below to manifest text. | ||
* 2019-06-29 Reinserted inside an invisible <span> | * 2019-06-29 Reinserted inside an invisible <span> | ||
--><span style="visibility:hidden">{{Display docType}} | --><span style="visibility:hidden">{{Display docType}}<!--{{Display date}}{{ON display date}}-->{{Display lifespan}}<!-- | ||
SET RATING PROPERTIES -->{{#ifeq: | SET RATING PROPERTIES -->{{#ifeq: |0||}}<!-- | ||
Set if the page was modified within the last 36 hours (129600 seconds) | Set if the page was modified within the last 36 hours (129600 seconds) | ||
-->{{#ifexpr: {{#expr: {{#time: U | now }} - {{#time: U | | -->{{#ifexpr: {{#expr: {{#time: U | now }} - {{#time: U | }} }} < 129600 |}}<!-- | ||
SET PROPERTIES IF NEEDED. | SET PROPERTIES IF NEEDED. | ||
Set Property:Is_not_stub unless Property:stub is set : | Set Property:Is_not_stub unless Property:stub is set : | ||
-->{{#ifeq: | -->{{#ifeq: |true||}}<!-- | ||
-->{{#ifeq: | -->{{#ifeq: |Person|{{#ifeq: ||}}}}</span></includeonly> | ||
Latest revision as of 22:35, 24 September 2026
This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently fairly simple, and should probably remain that way, because it affects so many pages and has the potential to tie up the SMW jobs queue. It is called at the top of Template:SMWDocs, so applies to any page which contains {{SMWDocs}}.
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:Is not stub (Iff Property:Is stub is not set)
- Property:Has nationality (Set to 'unknown' if Property:Has nationality is not set)
- Property:Display docType
- Property:Display born on
- Property:Display died on
- Property:Display date
- Property:Display image
- Property:Display image2
- Property:Display lifespan
- Property:ON display date
- Property:Has bilderbergCount
- Property:Has bfmeetingCount
- Property:Has cercleCount
- Property:Has hisfmeetingCount
- Property:Has jhmeetingCount
- Property:Has mscmeetingCount
- Property:Has wefmeetingCount
- Property:Has yesmeetingCount
2016-04-18: Addition: It also adds "" if the page was modified within the last 36 hours.