Difference between revisions of "Template:SMWDefaultMarkup"
Jump to navigation
Jump to search
(Set mscmeetingCount) |
(Has bfmeetingCount) |
||
Line 25: | Line 25: | ||
* [[Property:ON display date]] | * [[Property:ON display date]] | ||
* [[Property:Has bilderbergCount]] | * [[Property:Has bilderbergCount]] | ||
+ | * [[Property:Has bfmeetingCount]] | ||
* [[Property:Has cercleCount]] | * [[Property:Has cercleCount]] | ||
* [[Property:Has mscmeetingCount]] | * [[Property:Has mscmeetingCount]] | ||
Line 36: | Line 37: | ||
SET useful SMW PROPERTIES --> | SET useful SMW PROPERTIES --> | ||
− | {{#ifeq: {{#show: {{PAGENAME}} |?Has objectClass2}}|Person|[[Has bilderbergCount::{{#ask: [[Has fullPageName::~Bilderberg/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Bilderberg/*]][[Has participant::{{PAGENAME}}]]|format=count}}| ]][[Has cercleCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Le Cercle]]|format=count}}|{{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]][[Has mscmeetingCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Munich Security Conference/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Munich Security Conference/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Munich Security Conference]]|format=count}}|{{#ask: [[Has fullPageName::~Munich Security Conference/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Munich Security Conference/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]][[Has wefmeetingCount:: {{#ifeq: {{#ask: [[Has fullPageName::~WEF/Annual Meeting/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~WEF/Annual Meeting/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::WEF/Annual Meeting]]|format=count}}|{{#ask: [[Has fullPageName::~WEF/Annual Meeting/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~WEF/Annual Meeting/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]]}}<!-- | + | {{#ifeq: {{#show: {{PAGENAME}} |?Has objectClass2}}|Person|[[Has bilderbergCount::{{#ask: [[Has fullPageName::~Bilderberg/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Bilderberg/*]][[Has participant::{{PAGENAME}}]]|format=count}}| ]][[Has bfmeetingCount::{{#ask: [[Has fullPageName::~Brussels Forum/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Brussels Forum/*]][[Has participant::{{PAGENAME}}]]|format=count}}| ]][[Has cercleCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Le Cercle]]|format=count}}|{{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]][[Has mscmeetingCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Munich Security Conference/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Munich Security Conference/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Munich Security Conference]]|format=count}}|{{#ask: [[Has fullPageName::~Munich Security Conference/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Munich Security Conference/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]][[Has wefmeetingCount:: {{#ifeq: {{#ask: [[Has fullPageName::~WEF/Annual Meeting/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~WEF/Annual Meeting/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::WEF/Annual Meeting]]|format=count}}|{{#ask: [[Has fullPageName::~WEF/Annual Meeting/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~WEF/Annual Meeting/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]]}}<!-- |
SET DISPLAY PROPERTIES --><!-- | SET DISPLAY PROPERTIES --><!-- |
Latest revision as of 16:23, 22 April 2024
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 mscmeetingCount
- Property:Has wefmeetingCount
2016-04-18: Addition: It also adds "" if the page was modified within the last 36 hours.