Jump to content

Template:Email Example: Difference between revisions

From Mensa Wiki
BethWeiss (talk | contribs)
m formatting
BethWeiss (talk | contribs)
m added collapse
Line 1: Line 1:
<includeonly>{{#ifeq:{{{collapse|no}}}|yes|{{Collapse top|{{{title|Sample Email}}}}}}}<div style="margin:0.1em 0.5em 0 0.5em; border:1px solid #c8ccd1; background:#f8f9fa; font-size:90%;">
<includeonly>{{#ifeq:{{{collapse|no}}}|yes|{{Collapse top|{{{title|Sample Email}}}}}}}<div style="margin:0.1em 0.5em 0 0.5em; border:1px solid #c8ccd1; background:#f8f9fa; font-size:90%;">
<div style="padding:3px 6px; background:#eaecf0; font-weight:bold;">Sample Email</div>
<div style="padding:3px 6px; background:#eaecf0; font-weight:bold;">{{{title|Sample Email}}}</div>
<div style="padding:4px 6px;">'''Subject:''' {{{subject|No subject provided}}}</div>
<div style="padding:4px 6px;">'''Subject:''' {{{subject|No subject provided}}}</div>
<div style="padding:4px 6px 6px 6px; line-height:1.3;">Hi [name],<br><br>{{{body|}}}<br><br>Best, <br>[your name]</div>
<div style="padding:4px 6px 6px 6px; line-height:1.3;">{{{body|}}}</div>
</div>{{#ifeq:{{{collapse|no}}}|yes|{{Collapse bottom}}}}</includeonly><noinclude>== Purpose ==
</div>{{#ifeq:{{{collapse|no}}}|yes|{{Collapse bottom}}}}</includeonly><noinclude>== Purpose ==
Displays a sample email in a consistent format.
Displays a sample email in a consistent format.
Displays a sample email in a consistent format.


== Parameters ==
== Parameters ==
* '''title''' – Label shown in the box header; defaults to “Sample Email”
* '''subject''' – Email subject line
* '''subject''' – Email subject line
* '''body''' – Email body
* '''body''' – Email body
* '''collapse''' – Use '''yes''' to collapse the example; defaults to '''no'''


== Usage ==
== Usage ==
<pre>
<pre>
{{Email Example
{{Email Example
| collapse = Yes
| title = General First Contact
| collapse = yes
| subject = Hello from a fellow Mensan nearby
| subject = Hello from a fellow Mensan nearby
| body =
| body =
I'm [Your Name], a Mensa member in [area].
Hi [Name],<br><br>
 
I'm [Your Name], a Mensa member in [area].<br><br>
Just wanted to say hello.
Just wanted to say hello.<br><br>
Best,<br>
[Your Name]
}}
}}
</pre>
</pre>


== Example ==
[[Category:Local Group templates]]
{{Email Example
</noinclude>
| collapse = yes
| subject = Hello from a fellow Mensan nearby
| body =
I'm [Your Name], a Mensa member in [area].


Just wanted to say hello.
Use <br> in the body where you want line breaks; that gives you the most control over spacing.
}}
[[Category:Local Group templates]]
[[Category:Local Group templates]]
</noinclude>
</noinclude>

Revision as of 17:58, 1 June 2026

Purpose

Displays a sample email in a consistent format. Displays a sample email in a consistent format.

Parameters

  • title – Label shown in the box header; defaults to “Sample Email”
  • subject – Email subject line
  • body – Email body
  • collapse – Use yes to collapse the example; defaults to no

Usage

{{Email Example
| title = General First Contact
| collapse = yes
| subject = Hello from a fellow Mensan nearby
| body =
Hi [Name],<br><br>
I'm [Your Name], a Mensa member in [area].<br><br>
Just wanted to say hello.<br><br>
Best,<br>
[Your Name]
}}


Use
in the body where you want line breaks; that gives you the most control over spacing.