Difference between revisions of "Template:Victims"

From Wikispooks
Jump to navigation Jump to search
(Adjust section text)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
If the page name is referenced by any [[property:victim of]], it makes a section:
 
If the page name is referenced by any [[property:victim of]], it makes a section:
==''Victim(s) of <nowiki>{{PAGENAME}}</nowiki>'' on Wikispooks==
+
==''<nowiki>{{PAGENAME}}</nowiki>'' victim(s) of on Wikispooks==
 
Plus a table of the affected person(s) underneath
 
Plus a table of the affected person(s) underneath
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
|expression= [[Victim of::{{PAGENAME}}]] OR [[Has deathCause::{{PAGENAME}}]]
+
|expression= [[Victim of::{{PAGENAME}}]] OR [[Has deathCause::~*{{PAGENAME}}*]]
|caption_singular= A victim of {{PAGENAME}} on Wikispooks
+
|caption_singular=A {{SmartNonLink|{{PAGENAME}}}} victim on Wikispooks
|caption_plural= Victims of {{PAGENAME}} on Wikispooks
+
|caption_plural={{SmartNonLink|{{PAGENAME}}}} victims on Wikispooks
 
|mainlabel = Title
 
|mainlabel = Title
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Description}}
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Description}}
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Description}}}}</includeonly>
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Description}}}}</includeonly>

Latest revision as of 11:17, 13 July 2019

This template places a list of people who are victims of {{PAGENAME}}. It has no parameters.

If the page name is referenced by any property:victim of, it makes a section:

{{PAGENAME}} victim(s) of on Wikispooks

Plus a table of the affected person(s) underneath