Difference between revisions of "Template:KnownParticipants"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>'''This template creates a section listing the known participants of <nowiki>{{PAGENAME}}</nowiki>, i.e. those with a page.''' It has no parameters. If the page na...")
 
(Fix?)
 
(10 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
|expression=[[-Has participant::{{PAGENAME}}]][[Constitutes::+]]
 
|expression=[[-Has participant::{{PAGENAME}}]][[Constitutes::+]]
|caption_singular= Participant
+
|caption_singular=Known Participant
|caption_plural=Participants
+
|caption_plural=Known Participants
|mainlabel = Participant
+
|text ={{#ifeq: {{#ask: [[-Has participant::{{PAGENAME}}]][[Constitutes::+]]|format=count}} | {{#ask: [[-Has participant::{{PAGENAME}}]]|format=count}} |
 +
All {{#ask: [[-Has participant::{{PAGENAME}}]]|format=count}} of the participants already have pages here:
 +
| {{#ask: [[-Has participant::{{PAGENAME}}]][[Constitutes::+]]|format=count}} of the
 +
{{#ask: [[-Has participant::{{PAGENAME}}]]|format=count}} of the participants already have pages here:}}
 +
|mainlabel=Participant
 
|properties=Description
 
|properties=Description
 
|headers=Description
 
|headers=Description
}}</includeonly>
+
}}
 +
</includeonly>

Latest revision as of 11:35, 9 April 2023

This template creates a section listing the known participants of {{PAGENAME}}, i.e. those with a page. It has no parameters.

If the page name has any participants, it makes a section:

Known Participant(s)

Plus a table of the known participant(s) underneath