Jump to content

Template:Memory: Difference between revisions

From LovedForever
m 1 revision imported
Deploy Group A (Request 5): photo now renders above message text, wrapped for Read More collapse
Line 2: Line 2:
'''{{{name|A Visitor}}}'''{{#if:{{{date|}}}| <span class="memory-date">— {{{date}}}</span>}}
'''{{{name|A Visitor}}}'''{{#if:{{{date|}}}| <span class="memory-date">— {{{date}}}</span>}}


{{{message|}}}
{{#if:{{{photo|}}}|[[File:{{{photo}}}|thumb|{{{caption|}}}]]}}
{{#if:{{{photo|}}}|[[File:{{{photo}}}|thumb|{{{caption|}}}]]}}
<div class="memory-message">{{{message|}}}</div>
</div>
</div>
----
----
Line 9: Line 9:
This template renders one guestbook/memory entry. Used via the "Add a Memory"
This template renders one guestbook/memory entry. Used via the "Add a Memory"
link on a memorial page — visitors shouldn't normally need to type this by hand.
link on a memorial page — visitors shouldn't normally need to type this by hand.
The photo (when present) renders above the message text, not below it
(Devin's request) -- so the photo line comes first in this template, right
after the name/date header.
The message is wrapped in its own <code>.memory-message</code> div so
<code>MediaWiki:Common.js</code> can measure and collapse long entries behind
a "Read More" toggle (see <code>MediaWiki:Common.css</code> for the collapsed
styling) without also catching the name/date header or the photo.


<templatedata>
<templatedata>

Revision as of 02:29, 17 September 2026

A Visitor



This template renders one guestbook/memory entry. Used via the "Add a Memory" link on a memorial page — visitors shouldn't normally need to type this by hand.

The photo (when present) renders above the message text, not below it (Devin's request) -- so the photo line comes first in this template, right after the name/date header.

The message is wrapped in its own .memory-message div so MediaWiki:Common.js can measure and collapse long entries behind a "Read More" toggle (see MediaWiki:Common.css for the collapsed styling) without also catching the name/date header or the photo.

One guestbook/memory entry, used via the "Add a Memory" flow on a memorial page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Your namename

How you'd like to be identified with your memory.

Linerequired
Your memory or messagemessage

Share a story, memory, or message.

Stringrequired
Photo (optional)photo

An uploaded photo to include with your memory.

Fileoptional
Photo caption (optional)caption

no description

Lineoptional
Date (optional)date

E.g. "September 2026" — leave blank if unsure.

Lineoptional