Difference between revisions of "Template:Event"

From ICANNWiki
Jump to navigation Jump to search
(21 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
|End Date=
 
|End Date=
 
|Region=
 
|Region=
 +
|Location=
 
|Category=
 
|Category=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Event|Start=Date|End=Date|Region=List (,) of String|City=String|Country=String|URL=URL|Category=List (,) of String}}
+
{{#cargo_declare:_table=Event|Logo=File|Dates=String|Start=Date|End=Date|Region=List (,) of String|City=String|Country_or_Territory=String|URL=URL|Category=List (,) of String}}
</noinclude><includeonly>{{#cargo_store:_table=Event|Start={{{Start|}}}|End={{{End|}}}|Region={{{Region|}}}|City={{{City|}}}|Country={{{Country|}}}|Category={{{Category|}}} }}
+
</noinclude><includeonly>{{#cargo_store:_table=Event|Logo={{{Logo|}}}|Dates={{{Start|}}}-{{{End|}}}|Start={{{Start|}}}|End={{{End|}}}|Region={{{Region|}}}|City={{{City|}}}|Country_or_Territory={{{Country/Territory|}}}|Category={{{Category|}}} }}
 
{|style="width: 25em; font-size: 100%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
{|style="width: 25em; font-size: 100%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 +
{{#if:{{{Logo|}}}
 +
|{{!}}colspan="2" {{!}} [[File:{{{Logo}}}‎|250px|center]]}}
 +
|-
 +
! style="text-align: center; background-color:#202F7B;margin-top:.5em;" colspan="2" |<span style="font-size: larger;color:#ffffff;">General Information</span>
 +
|-
 
|'''Dates:'''  
 
|'''Dates:'''  
 
|{{#time: j F Y|{{{Start|}}}}} {{#ifeq:{{{Start|}}}|{{{End|}}}||- {{#time: j F Y|{{{End|}}} }} }}
 
|{{#time: j F Y|{{{Start|}}}}} {{#ifeq:{{{Start|}}}|{{{End|}}}||- {{#time: j F Y|{{{End|}}} }} }}
 
|-
 
|-
|'''Location:'''  
+
{{#if:{{{City|}}}
|{{{City|}}}, {{{Country|}}}
+
|{{!}}'''Location:'''
 +
{{!}}{{{City}}}, {{{Country/Territory}}}|{{!}}'''Location:'''
 +
{{!}}{{{Country/Territory}}} }}
 +
|-
 +
{{#if:{{{URL|}}}
 +
|{{!}}'''URL:'''
 +
{{!}}<span class="plainlinks">
 +
[[Image:LinkIcon.png|link={{{URL}}}]]&nbsp;&nbsp;&nbsp;[{{{URL}}} Event Page]</span>}}
 
|-
 
|-
 
|'''Category:'''  
 
|'''Category:'''  
 
|{{#arraymap:{{{Category|}}}|,|x|[[Category:x]]x<br />|}}
 
|{{#arraymap:{{{Category|}}}|,|x|[[Category:x]]x<br />|}}
 +
{{#default_form:Event}}
 
|}
 
|}
 
[[Category:Events]]
 
[[Category:Events]]
 
</includeonly>
 
</includeonly>

Revision as of 00:12, 6 March 2019

This is the "Event" template. It should be called in the following format:

{{Event
|Start Date=
|End Date=
|Region=
|Location=
|Category=
}}

Edit the page to see the template text. This template defines the table "Event". View table.