Template:Event: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 14: Line 14:
| application_deadline = {{{application_deadline|}}}
| application_deadline = {{{application_deadline|}}}
| poster              = {{{poster|}}}
| poster              = {{{poster|}}}
}}<!--
-->[[Category:Events]]
{{#if:{{{event_type|}}}|
  {{#arraymap:{{{event_type}}}|,|x|
    {{#if:x|
      <!-- General Place Type -->
      [[Category:{{#switch:{{lc:x}}
        | art book fair = Art Book Fairs
        | class = Classes
        | exhibition = Exhibitions
        | zine fest = Zine Fests
        | #default = {{ucfirst:x}}s
      }}]]
    }}
        <!-- Place Type + Country -->
      {{#if:{{{country|}}}|
        [[Category:{{#switch:{{lc:x}}
          | art book fair = Art Book Fairs
          | class = Classes
          | exhibition = Exhibitions
          | zine fest = Zine Fests
          | #default = {{ucfirst:x}}s
        }} in {{{country}}}]]
      }}
      <!-- Place Type + Region -->
      {{#if:{{{country|}}}|
        [[Category:{{#switch:{{lc:x}}
          | art book fair = Art Book Fairs
          | class = Classes
          | exhibition = Exhibitions
          | zine fest = Zine Fests
          | #default = {{ucfirst:x}}s
        }} in {{CountryRegionMapping|country={{{country}}}}}]]
      }}
|}} <!-- No delimiter -->
}}<!--
}}<!--
-->{{#set:
-->{{#set:

Revision as of 03:49, 8 December 2024

This is the "Event" template.

It should be called in the following format:

{{Event
|event_type=
|websites=
|start_date=
|end_date=
|venue=
|location=
|country=
|coordinates=
|application_link=
|application_deadline=
|poster=
}}

Edit the page to see the template text.