|
|
| Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| {{#template_params:Section Name (display=hidden;default=<nowiki>{{subst:SUBPAGENAME}}</nowiki>)|Section Parent (display=hidden;default=<nowiki>{{subst:BASEPAGENAME}}</nowiki>)|Summary (label=Summary of this section of the event;display=nonempty)|Subsections (label=Subsections of this section;display=nonempty) |StartContent (label=content to display before subsections (if any);display=nonempty)|EndContent (label=content to display after subsections (if any);display=nonempty)|Level (label:Level of the subsection eg 1 for main section.)}} | | {{#template_params:Subsections|Content}} |
| {{#cargo_declare:_table=EventSections|Summary=Wikitext|Subsections=List (,) of Page|StartContent=Wikitext|EndContent=Wikitext|Level=Integer}} | | {{#cargo_declare:_table=EventSections|Subsections=List (,) of Page|Content=Wikitext}} |
| </noinclude><includeonly>{{#cargo_store:_table=EventSections}} | | </noinclude><includeonly>{{#cargo_store:_table=EventSections}} |
| {{Loop|{{{Level}}}|{{=}}}}=={{{Section Name}}}=={{Loop|{{{Level}}}|{{=}}}}
| | {{#template_display:_format=sections}} |
| {{{Summary}}}
| | [[Category:EventSection]] |
| {{#if:{{{StartContent|}}} {{{EndContent|}}} {{{Subsections|}}}|<div class=" mw-collapsible mw-collapsed" data-expandtext="Event text and subsections" style="display:inline-block"> | |
| {{#if:{{{StartContent|}}}| {{{StartContent}}}}}
| |
| | |
| {{#ifexist:{{{Section Parent}}}/{{{Section Name}}}/pg|does exist :{{{Section Parent}}}/{{{Section Name}}}/pg|not exist}}
| |
| | |
| Subsections: "{{{Subsections}}}"
| |
| | |
| {{#arraymap:{{{Subsections|}}}|,|xxx|{{#if:xxx|{{#ifexist:{{{Section Parent}}}/{{{Section Name}}}/xxx|{{#invoke:DisplaySubpages|{{{Section Parent}}}/{{{Section Name}}}/xxx}}|{{#formredlink:form=EventSection|target={{{Section Parent}}}/{{{Section Name}}}/xxx|query string=EventSection[Level]={{#expr:{{{Level}}}+1}}&EventSection[Section_Name]=xxx}}}}}}}}|\n\n\n}}
| |
| | |
| | |
| {{#if:{{{EndContent|}}}| {{{EndContent}}}}}
| |
| </div>
| |
| }}
| |
| </includeonly> | | </includeonly> |
| <noinclude>[[Category:EventSection]]</noinclude>
| |
Latest revision as of 06:20, 18 January 2026
This is the "EventSection" template.
It should be called in the following format:
{{EventSection
|Subsections=
|Content=
}}
Edit the page to see the template text.
This template defines the table "EventSections". View table.