Sjabloon:EventParticipant: verschil tussen versies

Uit Hackerspace Bitlair

kGeen bewerkingssamenvatting
kGeen bewerkingssamenvatting
Regel 11: Regel 11:


<code>
<code>
<nowiki>
{| border="1" class="sortable"
{| border="1" class="sortable"
! Naam/Nick !! Vlees !! Vega(n) !! Opmerkingen
! Naam/Nick !! Vlees !! Vega(n) !! Opmerkingen
Regel 19: Regel 20:
! Totaal ||colspan="2"| {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?BBQVlees|?BBQVega|limit=50|format=sum}} || max: 50
! Totaal ||colspan="2"| {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?BBQVlees|?BBQVega|limit=50|format=sum}} || max: 50
|}
|}
ย 
</nowiki>
ย 
</code>
</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:

{| 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 |}