Jump to content

Template:Infobox event: Difference between revisions

From Twig Wiki
FossilLord (talk | contribs)
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">..."
 
FossilLord (talk | contribs)
No edit summary
 
Line 1: Line 1:
<infobox>
{| class="infobox" style="font-size:89%; width:300px;"
  <title source="title1">
|-
    <default>{{PAGENAME}}</default>
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
  </title>
|- style="text-align:center;"
  <image source="image1">
| colspan="2" style="padding:0.5em;" | [[{{{image|File:Placeholder other.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
    <caption source="caption1"/>
|-
  </image>
! colspan="2" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
  <data source="row1">
|-
    <label>Label</label>
| style="width:30%;" | '''Participants'''
  </data>
| style="width:70%;" | {{{participants}}}
  <data source="row2">
|-
    <label>Label</label>
| '''Date'''
  </data>
| {{{date}}}
</infobox>
|-
<noinclude>
| '''Location'''
Example usage:<pre>
| {{{location}}}
{{Infobox event
|}<noinclude><br style="clear:both;" />
|title1=Example
{{documentation}}</noinclude>
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
</pre>
</noinclude>

Latest revision as of 07:07, March 17, 2018

Infobox event
File:Placeholder other.png
Vital statistics
Participants {{{participants}}}
Date {{{date}}}
Location {{{location}}}


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_event/doc to edit this documentation. (How does this work?)
Description
This template is used to create an event infobox.
Syntax
Type {{infobox event{{#ifeq: ...|---|||<...>}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}}} somewhere, with parameters as shown below.
Sample output
{{infobox event
| name         = Bob's Birthday Party [defaults to pagename]
| image        = File:Example.jpg
| imagewidth   = [defaults to 250]
| caption      = Bob the Flower
| participants = Bob's friends
| date         = Bob's birthday
| location     = Bob's house
}}

Results in...

Bob's Birthday Party
File:Example.jpg
Bob the Flower
Vital statistics
Participants Bob's friends
Date Bob's birthday
Location Bob's house