Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
10,683
edits
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | | <includeonly>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | | ||
{{#vardefine:is active|{{#ifeq:{{{active|}}}|true|true|{{#ifeq:{{{active|}}}|false|false|}}}} | {{ #if: {{{id|}}} | {{#masterdata:Event|{{{id|}}} }} }}{{#vardefine:is active|{{#ifeq:{{{active|}}}|true|true|{{#ifeq:{{{active|}}}|false|false|}}}} | ||
}}{{#vardefine:duration array|{{{duration|}}}}}{{#vardefine:duration loop|1 | }}{{#vardefine:duration array|{{{duration|{{#var:event duration|}}}}}{{#vardefine:duration|}} | ||
}}{{#if:{{{duration|{{#var:event duration|}}}}}| | |||
{{#vardefine:duration loop|1 | |||
}}{{#while:|{{#var:duration loop}}| | }}{{#while:|{{#var:duration loop}}| | ||
{{#vardefine:duration array piece| | {{#vardefine:duration array piece| | ||
Line 52: | Line 54: | ||
| Has news link = {{#ifeq:{{#var:is active|}}|true||https://web.archive.org/web/*/|}}{{{news link|}}} | | Has news link = {{#ifeq:{{#var:is active|}}|true||https://web.archive.org/web/*/|}}{{{news link|}}} | ||
| Has banner image = {{{banner image|}}} | | Has banner image = {{{banner image|}}} | ||
| Has duration date = {{#var:duration|{{{duration|}}}}} | | Has duration date = {{#var:duration|{{{duration|{{#var:event duration|}}}}}}} | ||
| Has event type = {{{type|Time-Limited}}} | | Has event type = {{{type|Time-Limited}}} | ||
| Earliest duration = {{#var:duration earliest start}} | | Earliest duration = {{#var:duration earliest start}} | ||
| Latest duration = {{#var:duration latest end}} | | Latest duration = {{#var:duration latest end}} | ||
| Is active = {{#var:is active}} | | Is active = {{#var:is active}} | ||
| Has ID = {{{id|}}} | |||
| Has filename = {{#var:event filename|}} | |||
}}{{#ifeq:{{#var:is active|false}}|true|[[Category:Active events]]|[[Category:Inactive events]]}} | }}{{#ifeq:{{#var:is active|false}}|true|[[Category:Active events]]|[[Category:Inactive events]]}} | ||
}}<!-- end subobject | }}<!-- end subobject | ||
Line 64: | Line 68: | ||
| floats = true | | floats = true | ||
| banners = 0 | | banners = 0 | ||
| show news link = yes | |||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | |||
| news link = | |||
}}</ | |||
< | |||
}} | |||
</noinclude> |