Jump to content

Template:GuestbookWidget

From LovedForever
Revision as of 00:24, 16 September 2026 by Editor-in-Chief (talk | contribs) (Restructure for "Stories" tab relocation: now placed directly on the PersonName/Stories page itself instead of the parent page, so no more ifexist/transclusion indirection is needed)

Drop {{GuestbookWidget}} at the top of a memorial's own "PersonName/Stories" subpage -- not the main memorial page. It renders a native submission form (built by MediaWiki:Common.js) that posts new entries directly onto *this* page via the Action API (action=edit,

appendtext); they then appear below as

A Visitor



entries, since the existing entries on the page are simply the rest of its wikitext -- there is no separate storage subpage any more.

A "Stories" tab pointing at this subpage is added automatically to the parent memorial page (see the SkinTemplateNavigation::Universal hook in LocalSettings.php) for any page whose "/Stories" subpage transcludes this template -- so this page needs to exist and contain {{GuestbookWidget}} before the tab will appear on its parent.

Posting is open to anyone, logged in or not -- anonymous visitors can post text, but the photo-upload button is disabled for them (MediaWiki's default permissions don't grant anonymous users the "upload" right).