Sjabloon:EventParticipant: verschil tussen versies
Uit Hackerspace Bitlair
kGeen bewerkingssamenvatting |
kGeen bewerkingssamenvatting |
||
| Regel 10: | Regel 10: | ||
De tabel zelf maak je zo: | De tabel zelf maak je zo: | ||
<pre> | |||
<code> | <code> | ||
<nowiki> | <nowiki> | ||
| Regel 22: | Regel 23: | ||
</nowiki> | </nowiki> | ||
</code> | </code> | ||
</pre> | |||
</noinclude> | </noinclude> | ||
<includeonly>|- id="Participant{{{Participant|}}}" | <includeonly>|- id="Participant{{{Participant|}}}" | ||
|{{{Naam|}}} || {{{Vlees|-}}} || {{{Vega|-}}} || {{{Opmerking|}}} {{#subobject:Participant{{{Participant|}}}|EventVlees={{{Vlees|0}}}|EventVega={{{Vega|0}}} }}</includeonly> | |{{{Naam|}}} || {{{Vlees|-}}} || {{{Vega|-}}} || {{{Opmerking|}}} {{#subobject:Participant{{{Participant|}}}|EventVlees={{{Vlees|0}}}|EventVega={{{Vega|0}}} }}</includeonly> | ||
Versie van 11 jan 2026 10:23
Template voor het inschrijven van eten bij events. Gebruik zo in een tabel:
{{EventParticipant|Naam=[[User:Jij]]|Vlees=1|Opmerking=}}
De tabel zelf maak je zo:
<code>
{| border="1" class="sortable"
! Naam/Nick !! Vlees !! Vega(n) !! Opmerkingen
<!-- EventParticipants komt hier -->
|-
! Subtotaal || {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?BBQVlees|limit=999|format=sum}} ||{{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?BBQVega|limit=999|format=sum}} ||
|-
! Totaal ||colspan="2"| {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?BBQVlees|?BBQVega|limit=50|format=sum}} || max: 50
|}
</code>