Template:Related: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{mbox|max_width=100%|text=<span style="font-size: .875rem;">Related: {{#if:{{{2|}}}|<ul><li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li>{{#if:{{{3|}}}|[[{{{3}}}]]|}}{{#if:{{{4|}}}|[[{{{4}}}]]|}}{{#if:{{{5|}}}|[[{{{5}}}]]|}}{{#if:{{{6|}}}|[[{{{6}}}]]|}}{{#if:{{{7|}}}|[[{{{7}}}]]|}}{{#if:{{{8|}}}|[[{{{8}}}]]|}}{{#if:{{{9|}}}|[[{{{9}}}]]|}}{{#if:{{{10|}}}|[[{{{10}}}]]|}}
<includeonly>{{mbox|max_width=100%|text=<span style="font-size: .875rem;">Related: {{#if:{{{2|}}}|<ul><li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li>{{#if:{{{3|}}}|[[{{{3}}}]]|}}{{#if:{{{4|}}}|[[{{{4}}}]]|}}{{#if:{{{5|}}}|[[{{{5}}}]]|}}{{#if:{{{6|}}}|[[{{{6}}}]]|}}{{#if:{{{7|}}}|[[{{{7}}}]]|}}{{#if:{{{8|}}}|[[{{{8}}}]]|}}{{#if:{{{9|}}}|[[{{{9}}}]]|}}{{#if:{{{10|}}}|[[{{{10}}}]]|}}
</ul>
</ul>
{{#|[[{{{1}}}]]}}</span>}}</includeonly><noinclude>{{DISPLAYTITLE:Template:related}}This displays 1–10 links in a full width [[Template:mbox]] with a "Related" label—it's meant to be used at the very end of an article (including after [[Template:References]] to link to related articles.</noinclude>
{{#|[[{{{1}}}]]}}</span>}}</includeonly><noinclude>This displays 1–10 links in a full width [[Template:mbox]] with a "Related" label—it's meant to be used at the very end of an article (including after [[Template:References]] to link to related articles.
 
== Usage ==
This template takes up to 10 unnamed parameters of internal page names which will be linked in the related box.
<pre>
{{Related|Drum color codes|Ink tube transfer}}
</pre>
{{Related|Drum color codes|Ink tube transfer}}
 
== TemplateData ==
<templatedata>
{
"params": {
"1": {
"label": "Related page",
"description": "Related page no. 1.",
"type": "string",
"suggested": true
},
"2": {
"label": "Related page",
"description": "Related page no. 2.",
"type": "string"
},
"3": {
"label": "Related page",
"description": "Related page no. 3.",
"type": "string"
}
},
"description": "An end-of-page modal for linking related pages."
}
</templatedata>
</noinclude>

Revision as of 12:50, 5 November 2025

This displays 1–10 links in a full width Template:mbox with a "Related" label—it's meant to be used at the very end of an article (including after Template:References to link to related articles.

Usage

This template takes up to 10 unnamed parameters of internal page names which will be linked in the related box.

{{Related|Drum color codes|Ink tube transfer}}

{{mbox|max_width=100%|text=

Related:

{{#|Drum color codes}}

TemplateData

An end-of-page modal for linking related pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Related page1

Related page no. 1.

Stringsuggested
Related page2

Related page no. 2.

Stringoptional
Related page3

Related page no. 3.

Stringoptional