Jump to content

Template:Email Example: Difference between revisions

From Mensa Wiki
BethWeiss (talk | contribs)
m Formatting
BethWeiss (talk | contribs)
m format
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="margin:0.25em 0 0.25em 0; border:1px solid #a2a9b1; background:#f8f9fa; font-size:85%; line-height:1;">
<div style="margin:0.1em 0.5em 0 0.5em; border:1px solid #c8ccd1; background:#f8f9fa; font-size:90%;">
<div style="font-weight:bold; text-align:left; background:#eaecf0; padding:1px;font-size:100%; ">Email Example</div>
<div style="padding:3px 6px; background:#eaecf0; font-weight:bold;font-size:130%">{{{title|Sample Email}}}</div>
<div style="border-bottom:1px solid #eaecf0;">
<div style="padding:4px 6px;">'''Subject:''' {{{subject|No subject provided}}}</div>
'''Subject:''' {{{subject|No subject provided}}}
<div style="padding:4px 6px 6px 6px; line-height:1.3;">{{{body|}}}</div>
</div>
</div>
<div style="padding:0px;">{{{body|}}}</div></div>
</includeonly><noinclude>== Purpose ==
</includeonly>
<noinclude>
== Purpose ==
Displays a sample email in a consistent format.
Displays a sample email in a consistent format.


Collapse code if we get it turned on
{{#ifeq:{{{collapse|no}}}|yes|{{Collapse top|{{{title|Sample Email}}}}}}}
{{#ifeq:{{{collapse|no}}}|yes|{{Collapse bottom}}}}
== 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
| title = General First Contact
| collapse = yes
| subject = Hello from a fellow Mensan nearby
| subject = Hello from a fellow Mensan nearby
| body =
| body =
Hi [Name],
Hi [Name],<br><br>
 
I'm [Your Name], a Mensa member in [area].<br><br>
I'm [Your Name], a Mensa member in [area].
Just wanted to say hello.<br>
 
<br>Best,<br>[Your Name]
Just wanted to say hello.
}}
}}
</pre>
</pre>

Latest revision as of 23:51, 1 June 2026

Purpose

Displays a sample email in a consistent format.

Collapse code if we get it turned on {{#ifeq:no|yes|Template:Collapse top}} {{#ifeq:no|yes|Template:Collapse bottom}}

Parameters

[edit source | hide | hide all]
  • 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

[edit source | hide]
{{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]
}}