Jump to content

Template:Text Example: Difference between revisions

From Mensa Wiki
BethWeiss (talk | contribs)
m Formatting
BethWeiss (talk | contribs)
m Formatting
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div style="margin:0.1em 0.5em 0 0.5em; border:1px solid #c8ccd1; background:#f8f9fa; font-size:90%;">
<includeonly>
<div style="padding:3px 6px; background:#eaecf0; font-weight:bold;">Sample Text</div>
<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;font-size:150%">{{{title|Sample Text}}}</div>
<div style="padding:4px 6px 6px 6px; line-height:1.3;">{{{body|}}}</div>
<div style="padding:4px 6px 6px 6px; line-height:1.3;">{{{body|}}}</div>
</div></includeonly><noinclude>== Purpose ==
</div>
Displays a sample text in a consistent format.
</includeonly><noinclude>== Purpose ==
Displays a sample textin a consistent format.


Collapse code if we get it turned on
{{#ifeq:{{{collapse|no}}}|yes|{{Collapse top|{{{title|Sample Text}}}}}}}
{{#ifeq:{{{collapse|no}}}|yes|{{Collapse bottom}}}}
== Parameters ==
== Parameters ==
* '''body''' – Text body
* '''title''' – Label shown in the box header; defaults to “Sample Text”
* '''body''' – Email body
* '''collapse''' – Use '''yes''' to collapse the example; defaults to '''no'''


== Usage ==
== Usage ==
<pre>
<pre>
{{Text Example
{{Text Example
| title = General First Contact
| collapse = yes
| body =
| body =
Text goes here
Hi [Name] — this is [Your Name], a local Mensa member in [area]. I help connect members nearby and just wanted to say hello. If you’re ever interested in a meetup or connecting locally, feel free to reach out!
}}
}}
</pre>
</pre>
[[Category:Local Group templates]]
[[Category:Local Group templates]]
</noinclude>
</noinclude>

Latest revision as of 18:23, 1 June 2026

Purpose

Displays a sample textin 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 Text”
  • body – Email body
  • collapse – Use yes to collapse the example; defaults to no

Usage

[edit source | hide]
{{Text Example
| title = General First Contact
| collapse = yes
| body =
Hi [Name] — this is [Your Name], a local Mensa member in [area]. I help connect members nearby and just wanted to say hello. If you’re ever interested in a meetup or connecting locally, feel free to reach out!
}}