Jump to content

Welcome to the Family Commonplace Wiki! 👋 — Create an account to start contributing, or see Help:Getting Started if you're new here.

Template:Infobox event: Difference between revisions

From Family Commonplace Wiki
Initial template setup
 
Simplified template - no extensions required
 
Line 8: Line 8:
| name      =  
| name      =  
| image      =  
| image      =  
| caption    =
| date      =  
| date      =  
| location  =  
| location  =  
| type      =
| attendees  =  
| attendees  =  
| type      =
}}
}}
</pre>
</pre>
All fields are optional.
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>{| class="infobox" style="float:right; clear:right; margin:0 0 1em 1.5em; padding:0.5em; border:1px solid #aaa; background:#f9f9f9; font-size:90%; line-height:1.5em; width:22em;"
</noinclude><includeonly><table class="infobox wikitable" style="float:right;clear:right;margin:0 0 1em 1.5em;font-size:90%;width:22em;">
|-
<tr style="background:#5a7a3a;color:white;"><th colspan="2" style="padding:0.5em;font-size:115%;text-align:center;">{{{name|{{PAGENAME}}}}}</th></tr>
! colspan="2" style="background:#5a7a3a; color:white; padding:0.4em; font-size:115%; text-align:center;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<tr><td style="font-weight:bold;">Type</td><td>{{{type|}}}</td></tr>
{{#if:{{{image|}}}|
<tr><td style="font-weight:bold;">Date</td><td>{{{date|}}}</td></tr>
|-
<tr><td style="font-weight:bold;">Location</td><td>{{{location|}}}</td></tr>
| colspan="2" style="text-align:center; padding:0.5em;" | [[File:{{{image}}}|250px|{{#if:{{{caption|}}}|{{{caption}}}|}}]]
<tr><td style="font-weight:bold;">Who was there</td><td>{{{attendees|}}}</td></tr>
{{#if:{{{caption|}}}|
</table></includeonly>
|-
| colspan="2" style="text-align:center; font-style:italic; font-size:90%;" | {{{caption}}}}}}}
{{#if:{{{type|}}}|
|-
| style="padding:0.2em 0.5em; font-weight:bold;" | Type
| style="padding:0.2em 0.5em;" | {{{type}}}}}
{{#if:{{{date|}}}|
|-
| style="padding:0.2em 0.5em; font-weight:bold;" | Date
| style="padding:0.2em 0.5em;" | {{{date}}}}}
{{#if:{{{location|}}}|
|-
| style="padding:0.2em 0.5em; font-weight:bold;" | Location
| style="padding:0.2em 0.5em;" | {{{location}}}}}
{{#if:{{{attendees|}}}|
|-
| style="padding:0.2em 0.5em; font-weight:bold;" | Who was there
| style="padding:0.2em 0.5em;" | {{{attendees}}}}}
|}</includeonly>

Latest revision as of 18:04, 23 May 2026

Event Infobox

Use this template at the top of any page about a family event or milestone.

Usage

{{Infobox event
| name       = 
| image      = 
| date       = 
| location   = 
| type       = 
| attendees  = 
}}