Template:Related: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) 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> | {{#|[[{{{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Related page | 1 | Related page no. 1. | String | suggested |
| Related page | 2 | Related page no. 2. | String | optional |
| Related page | 3 | Related page no. 3. | String | optional |