Template:See also

Revision as of 20:51, 14 July 2026 by SGPolitico (talk | contribs) (Created page with "<includeonly><div class="hatnote" style="margin-left: 1.6em; margin-top: 0.3em; margin-bottom: 0.3em; font-style: italic; color: #333;">See also: {{#if:{{{1|}}}|[[{{{1}}}|{{{l1|{{{1}}}}}}]]}}{{#if:{{{2|}}}|{{#if:{{{3|}}}{{{4|}}}|, |{{#if:{{{1|}}}| and }}}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, | and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}| and [[{{{4}}}|{{{l4|{{{4}}}}}}]]}}</div></includeonly><noinclude> == Usage == Lua-free reimplementation...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Lua-free reimplementation of Wikipedia's {{see also}} hatnote (upstream runs on Module:Hatnote/Module:See also — unavailable here, same reason as the other Lua-dependent templates on this wiki).

{{see also|Page one|Page two|Page three|Page four}}

Renders as an indented, italicised "See also: ..." line with each target linked. Supports 1–4 targets, joined with correct English list punctuation ("A", "A and B", "A, B and C", "A, B, C and D").

Use |l1=, |l2=, |l3=, |l4= to override the display text for the corresponding target — do this whenever a target includes a #Section anchor, since this template can't split on # without string-function support that isn't confirmed enabled on this wiki. Without an override, a link like Dear You (film)#Singapore release controversy displays its full raw target as the link text (page name and anchor together), which looks wrong. With an override:

{{see also|Dear You (film)#Singapore release controversy|l1=Dear You (film) § Singapore release controversy}}

Deviations from the Wikipedia original:

  • No automatic pluralisation/wording changes beyond the fixed "See also:" prefix.
  • No |category=no-style suppression of hatnote tracking categories (this version doesn't add any).
  • Styled with inline CSS rather than relying on a wiki-wide .hatnote class in MediaWiki:Common.css — will look right even if that class was never defined here, but won't automatically pick up any site-wide hatnote restyling either.
  • Only 4 targets supported; a 5th is silently dropped. Extend the #if chain if a page genuinely needs more.