Template:RelatedItems: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(Red link cleanup)
 
(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 '''&amp;#44;'''.
 
<pre>{{relatedItems | Pink&amp;#44; Blue and Purple Flower Rectangle, Pink&amp;#44; Red and Purple Flower Rectangle, Red&amp;#44; Blue and Green Flower Rectangle, Red&amp;#44; White and Purple Flower Rectangle, Yellow and White Flower Rectangle }}</pre>
results in...
 
{{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 }}
 
</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 &#44;.

{{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 }}

results in...

Related Items