Template:RelatedItems: Difference between revisions
Marblemadmax (talk | contribs) (Red link cleanup) |
(→Usage) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>==Related Items== | <includeonly>==Related Items== | ||
{{LinkedGallery|items={{{1|}}}}}</includeonly><noinclude></noinclude> | {{LinkedGallery|items={{{1|}}}}}</includeonly><noinclude>{{TOC Right}} | ||
==Description== | |||
This template is used to insert a linked text and image gallery of items under a "Related Items" subheader. It simplifies the syntax for creating a '''''Gallery''''' for a common, but generalized, use case. | |||
It is intended to be used for items that are related, but do not share the same shape. For example, the [[Deluxe Pink Fridge]], [[Pink Flat-Top Stove]], [[Pink Fridge]], and [[Pink Gas Stove]] are all related items, as they are all pink Appliances. | |||
==Usage== | |||
This template can be used by entering the following onto a relevant page. It should be added after the description, notes, and the '''''alternateColors''''' template (if present), and before the history. | |||
<pre>{{relatedItems | <<comma separated list of Wiki Page Names>> }}</pre> | |||
It is currently not possible to provide bold/italic styling, alternate names, or references/captions using the '''''relatedItems''''' template. If necessary for those cases, use [[Template:Gallery/doc|Gallery]]. | |||
==Examples== | |||
<pre>{{relatedItems | Deluxe Pink Fridge, Pink Flat-Top Stove, Pink Gas Stove }}</pre> | |||
results in... | |||
{{relatedItems | Deluxe Pink Fridge, Pink Flat-Top Stove, Pink Gas Stove }} | |||
If the Page Name includes commas, substitute the comma for the value '''&#44;'''. | |||
<pre>{{relatedItems | Pink&#44; Blue and Purple Flower Rectangle, Pink&#44; Red and Purple Flower Rectangle, Red&#44; Blue and Green Flower Rectangle, Red&#44; White and Purple Flower Rectangle, Yellow and White Flower Rectangle }}</pre> | |||
results in... | |||
{{relatedItems | Pink, Blue and Purple Flower Rectangle, Pink, Red and Purple Flower Rectangle, Red, Blue and Green Flower Rectangle, Red, White and Purple Flower Rectangle, Yellow and White Flower Rectangle }} | |||
</noinclude> |
Latest revision as of 15:30, 5 May 2023
Description
This template is used to insert a linked text and image gallery of items under a "Related Items" subheader. It simplifies the syntax for creating a Gallery for a common, but generalized, use case.
It is intended to be used for items that are related, but do not share the same shape. For example, the Deluxe Pink Fridge, Pink Flat-Top Stove, Pink Fridge, and Pink Gas Stove are all related items, as they are all pink Appliances.
Usage
This template can be used by entering the following onto a relevant page. It should be added after the description, notes, and the alternateColors template (if present), and before the history.
{{relatedItems | <<comma separated list of Wiki Page Names>> }}
It is currently not possible to provide bold/italic styling, alternate names, or references/captions using the relatedItems template. If necessary for those cases, use Gallery.
Examples
{{relatedItems | Deluxe Pink Fridge, Pink Flat-Top Stove, Pink Gas Stove }}
results in...
Related Items
If the Page Name includes commas, substitute the comma for the value ,.
{{relatedItems | Pink, Blue and Purple Flower Rectangle, Pink, Red and Purple Flower Rectangle, Red, Blue and Green Flower Rectangle, Red, White and Purple Flower Rectangle, Yellow and White Flower Rectangle }}
results in...
Related Items