Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Seealso: Difference between revisions

Template page
Create reusable See also section template (supports embedded {{Forums}} etc.)
 
m Rebuild as an inline See-also hatnote with typed slots that group same-platform links under one shared suffix
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}|<div>
<includeonly><templatestyles src="Template:Seealso/styles.css" />{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}{{{mc4|}}}{{{mc5|}}}{{{mc6|}}}|<div class="loka-seealso">''See also: {{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}|{{#if:{{{d1|}}}|[[{{{d1|}}}]]}}{{#if:{{{d2|}}}|{{#if:{{{d1|}}}|{{#if:{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}|,&#32;|&#32;and&#32;}}}}[[{{{d2|}}}]]}}{{#if:{{{d3|}}}|{{#if:{{{d1|}}}{{{d2|}}}|{{#if:{{{d4|}}}{{{d5|}}}{{{d6|}}}|,&#32;|&#32;and&#32;}}}}[[{{{d3|}}}]]}}{{#if:{{{d4|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}|{{#if:{{{d5|}}}{{{d6|}}}|,&#32;|&#32;and&#32;}}}}[[{{{d4|}}}]]}}{{#if:{{{d5|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}|{{#if:{{{d6|}}}|,&#32;|&#32;and&#32;}}}}[[{{{d5|}}}]]}}{{#if:{{{d6|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}[[{{{d6|}}}]]}}}}}}{{#if:{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}|; }}{{#if:{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}|{{#if:{{{forum1|}}}|[https://forums.lokamc.com/threads/{{{forum1|}}} &quot;{{{forum1label|Thread}}}&quot;]}}{{#if:{{{forum2|}}}|{{#if:{{{forum1|}}}|{{#if:{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}|,&#32;|&#32;and&#32;}}}}[https://forums.lokamc.com/threads/{{{forum2|}}} &quot;{{{forum2label|Thread}}}&quot;]}}{{#if:{{{forum3|}}}|{{#if:{{{forum1|}}}{{{forum2|}}}|{{#if:{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}|,&#32;|&#32;and&#32;}}}}[https://forums.lokamc.com/threads/{{{forum3|}}} &quot;{{{forum3label|Thread}}}&quot;]}}{{#if:{{{forum4|}}}|{{#if:{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}|{{#if:{{{forum5|}}}{{{forum6|}}}|,&#32;|&#32;and&#32;}}}}[https://forums.lokamc.com/threads/{{{forum4|}}} &quot;{{{forum4label|Thread}}}&quot;]}}{{#if:{{{forum5|}}}|{{#if:{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}|{{#if:{{{forum6|}}}|,&#32;|&#32;and&#32;}}}}[https://forums.lokamc.com/threads/{{{forum5|}}} &quot;{{{forum5label|Thread}}}&quot;]}}{{#if:{{{forum6|}}}|{{#if:{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}[https://forums.lokamc.com/threads/{{{forum6|}}} &quot;{{{forum6label|Thread}}}&quot;]}}&#32;on the <span class="loka-seealso-forum-icon">[[File:Loka icon.png|14px|link=|alt=Loka]]</span>&#32;[[Loka Forums]]}}}}{{#if:{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}|; }}{{#if:{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}|{{#if:{{{wiki1|}}}|[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki1|}}}|WIKI}} {{{wiki1label|{{{wiki1|}}}}}}]}}{{#if:{{{wiki2|}}}|{{#if:{{{wiki1|}}}|{{#if:{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}|,&#32;|&#32;and&#32;}}}}[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki2|}}}|WIKI}} {{{wiki2label|{{{wiki2|}}}}}}]}}{{#if:{{{wiki3|}}}|{{#if:{{{wiki1|}}}{{{wiki2|}}}|{{#if:{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}|,&#32;|&#32;and&#32;}}}}[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki3|}}}|WIKI}} {{{wiki3label|{{{wiki3|}}}}}}]}}{{#if:{{{wiki4|}}}|{{#if:{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}|{{#if:{{{wiki5|}}}{{{wiki6|}}}|,&#32;|&#32;and&#32;}}}}[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki4|}}}|WIKI}} {{{wiki4label|{{{wiki4|}}}}}}]}}{{#if:{{{wiki5|}}}|{{#if:{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}|{{#if:{{{wiki6|}}}|,&#32;|&#32;and&#32;}}}}[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki5|}}}|WIKI}} {{{wiki5label|{{{wiki5|}}}}}}]}}{{#if:{{{wiki6|}}}|{{#if:{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}[https://en.wikipedia.org/wiki/{{urlencode:{{{wiki6|}}}|WIKI}} {{{wiki6label|{{{wiki6|}}}}}}]}}&#32;on the <span class="loka-seealso-wiki-icon">[[File:Wikipedia icon.svg|14px|link=|alt=Wikipedia]]</span>&#32;English Wikipedia}}}}{{#if:{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}{{{mc4|}}}{{{mc5|}}}{{{mc6|}}}|{{#if:{{{d1|}}}{{{d2|}}}{{{d3|}}}{{{d4|}}}{{{d5|}}}{{{d6|}}}{{{forum1|}}}{{{forum2|}}}{{{forum3|}}}{{{forum4|}}}{{{forum5|}}}{{{forum6|}}}{{{wiki1|}}}{{{wiki2|}}}{{{wiki3|}}}{{{wiki4|}}}{{{wiki5|}}}{{{wiki6|}}}|; }}{{#if:{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}{{{mc4|}}}{{{mc5|}}}{{{mc6|}}}|{{#if:{{{mc1|}}}|[https://minecraft.wiki/w/{{urlencode:{{{mc1|}}}|WIKI}} {{{mc1label|{{{mc1|}}}}}}]}}{{#if:{{{mc2|}}}|{{#if:{{{mc1|}}}|{{#if:{{{mc3|}}}{{{mc4|}}}{{{mc5|}}}{{{mc6|}}}|,&#32;|&#32;and&#32;}}}}[https://minecraft.wiki/w/{{urlencode:{{{mc2|}}}|WIKI}} {{{mc2label|{{{mc2|}}}}}}]}}{{#if:{{{mc3|}}}|{{#if:{{{mc1|}}}{{{mc2|}}}|{{#if:{{{mc4|}}}{{{mc5|}}}{{{mc6|}}}|,&#32;|&#32;and&#32;}}}}[https://minecraft.wiki/w/{{urlencode:{{{mc3|}}}|WIKI}} {{{mc3label|{{{mc3|}}}}}}]}}{{#if:{{{mc4|}}}|{{#if:{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}|{{#if:{{{mc5|}}}{{{mc6|}}}|,&#32;|&#32;and&#32;}}}}[https://minecraft.wiki/w/{{urlencode:{{{mc4|}}}|WIKI}} {{{mc4label|{{{mc4|}}}}}}]}}{{#if:{{{mc5|}}}|{{#if:{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}{{{mc4|}}}|{{#if:{{{mc6|}}}|,&#32;|&#32;and&#32;}}}}[https://minecraft.wiki/w/{{urlencode:{{{mc5|}}}|WIKI}} {{{mc5label|{{{mc5|}}}}}}]}}{{#if:{{{mc6|}}}|{{#if:{{{mc1|}}}{{{mc2|}}}{{{mc3|}}}{{{mc4|}}}{{{mc5|}}}|{{#if:|,&#32;|&#32;and&#32;}}}}[https://minecraft.wiki/w/{{urlencode:{{{mc6|}}}|WIKI}} {{{mc6label|{{{mc6|}}}}}}]}}&#32;on the <span class="loka-seealso-mc-icon">[[File:MCwiki icon.png|14px|link=|alt=Minecraft Wiki]]</span>&#32;Minecraft Wiki}}}}''</div>}}</includeonly><noinclude>
== See also ==
{{#if:{{{1|}}}|* {{{1|}}}
}}{{#if:{{{2|}}}|* {{{2|}}}
}}{{#if:{{{3|}}}|* {{{3|}}}
}}{{#if:{{{4|}}}|* {{{4|}}}
}}{{#if:{{{5|}}}|* {{{5|}}}
}}{{#if:{{{6|}}}|* {{{6|}}}
}}{{#if:{{{7|}}}|* {{{7|}}}
}}{{#if:{{{8|}}}|* {{{8|}}}
}}{{#if:{{{9|}}}|* {{{9|}}}
}}{{#if:{{{10|}}}|* {{{10|}}}
}}</div>}}</includeonly><noinclude>
== Usage ==
== Usage ==


Renders a "See also" section (heading plus a bullet list) from up to 10 numbered items. Each item is inserted as raw wikitext exactly as given -- a plain <code>[[wikilink]]</code>, or a call to another template such as [[Template:Forums]], [[Template:Wikipedia]], or [[Template:MCwiki]] for a forums thread or external-wiki link styled to match those templates.
An inline "See also: ..." hatnote (like Wikipedia's own [[wikipedia:Template:See also|Template:See also]]) for the top of an article or section -- not a bottom-of-page "== See also ==" heading. Each item is typed, not raw wikitext, so the template can group same-platform items under one shared "on the ..." instead of repeating it per item.


<pre>{{Seealso
<pre>{{Seealso|d1=Riverside I|forum1=292|forum2=310|wiki1=Minecraft}}</pre>
|1=[[Tournaments]]
|2={{Forums|292}}
|3={{Wikipedia|Minecraft}}
}}</pre>


If none of the numbered parameters are given, nothing renders at all -- not even the heading.
Renders as: ''See also: [[Riverside I]], &quot;Thread&quot; and &quot;Thread&quot; on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]]; [https://en.wikipedia.org/wiki/Minecraft Minecraft] on the [[File:Wikipedia icon.svg|14px|link=|alt=Wikipedia]] English Wikipedia''
 
== Parameters ==
 
{| class="wikitable"
! Parameter
! Description
|-
| <code>d1</code> .. <code>d6</code>
| Plain domestic wiki article titles, e.g. <code>d1=Riverside I</code>. No suffix -- just a normal wikilink.
|-
| <code>forum1</code> .. <code>forum6</code>
| Forums thread IDs, same as [[Template:Forums]]'s <code>id</code>. Optional matching <code>forumNlabel</code> (e.g. <code>forum1label</code>) sets that item's text, defaulting to "Thread".
|-
| <code>wiki1</code> .. <code>wiki6</code>
| English Wikipedia article titles, same as [[Template:Wikipedia]]'s <code>article</code>. Optional matching <code>wikiNlabel</code> sets that item's text, defaulting to the title itself.
|-
| <code>mc1</code> .. <code>mc6</code>
| minecraft.wiki article titles, same as [[Template:MCwiki]]'s <code>article</code>. Optional matching <code>mcNlabel</code> sets that item's text, defaulting to the title itself.
|}
 
Groups render in a fixed order (domestic, then Forums, then Wikipedia, then minecraft.wiki), each internally joined "A, B and C" (no Oxford comma), with different groups separated by "; ". Two or more items in the same group share one "on the ..." suffix instead of each repeating it. If nothing is given, nothing renders at all.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 22:18, 19 August 2026

Usage

An inline "See also: ..." hatnote (like Wikipedia's own Template:See also) for the top of an article or section -- not a bottom-of-page "== See also ==" heading. Each item is typed, not raw wikitext, so the template can group same-platform items under one shared "on the ..." instead of repeating it per item.

{{Seealso|d1=Riverside I|forum1=292|forum2=310|wiki1=Minecraft}}

Renders as: See also: Riverside I, "Thread" and "Thread" on the Loka Loka Forums; Minecraft on the Wikipedia English Wikipedia

Parameters

Parameter Description
d1 .. d6 Plain domestic wiki article titles, e.g. d1=Riverside I. No suffix -- just a normal wikilink.
forum1 .. forum6 Forums thread IDs, same as Template:Forums's id. Optional matching forumNlabel (e.g. forum1label) sets that item's text, defaulting to "Thread".
wiki1 .. wiki6 English Wikipedia article titles, same as Template:Wikipedia's article. Optional matching wikiNlabel sets that item's text, defaulting to the title itself.
mc1 .. mc6 minecraft.wiki article titles, same as Template:MCwiki's article. Optional matching mcNlabel sets that item's text, defaulting to the title itself.

Groups render in a fixed order (domestic, then Forums, then Wikipedia, then minecraft.wiki), each internally joined "A, B and C" (no Oxford comma), with different groups separated by "; ". Two or more items in the same group share one "on the ..." suffix instead of each repeating it. If nothing is given, nothing renders at all.