Difference between revisions of "Reference templates/Documentation/Related articles template"

(Created page with "{{Related articles, |title= |link1= |subject1= |summary1= |link2= |subject2= |summary2= |link3= etc. |subject3= |summary3= }} |link1 --> the name of the wiki page |subjec...")
 
m
Line 1: Line 1:
{{Related articles,
+
<nowiki>{{Related articles,
 
|title=
 
|title=
  
Line 13: Line 13:
 
|subject3=
 
|subject3=
 
|summary3=
 
|summary3=
}}
 
  
 +
}}<nowiki>
  
|link1 --> the name of the wiki page
 
|subject1 --> the text that will appear to the user for above link
 
|summary1= --> Short summary text. If empty, nothing is shown
 
  
title --> If blank, uses "Related articles". If main, detail, seealso, uses those as title. Otherwise, includes what's in title. If you want an "s" to appear automatically for plural, include this in the title:
+
* link1 --> the name of the wiki page
 +
* subject1 --> the text that will appear to the user for above link
 +
* summary1= --> Short summary text. If empty, nothing is shown
  
{{#if:{{{subject2|}}}|s|}}
+
* title --> If blank, uses "Related articles". If main, detail, seealso, uses those as title. Otherwise, includes what's in title. If you want an "s" to appear automatically for plural, include this in the title:
  
So, title=Article{{#if:{{{subject2|}}}|s|}}: will produce:
+
::{{#if:{{{subject2|}}}|s|}}
  
Article: if there is only one set of link, subject or
+
::So, title=Article{{#if:{{{subject2|}}}|s|}}: will produce:
Articles: if more than one.
 
  
If there are spaces in the title, it looks better if you use a "non breaking space" because then the title will stay on one line and not be wrapped. Instead of "The Title" put "The&nbsp;Title"-->
+
:::Article: if there is only one set of link, subject '''''or'''''
 +
:::Articles: if more than one.
 +
 
 +
: If there are spaces in the title, it looks better if you use a "non breaking space" because then the title will stay on one line and not be wrapped. Instead of "The Title" put "The'''<nonwiki>&nbsp;</nowiki>'''Title"

Revision as of 14:39, 1 June 2024

{{Related articles, |title= |link1= |subject1= |summary1= |link2= |subject2= |summary2= |link3= etc. |subject3= |summary3= }}<nowiki> * link1 --> the name of the wiki page * subject1 --> the text that will appear to the user for above link * summary1= --> Short summary text. If empty, nothing is shown * title --> If blank, uses "Related articles". If main, detail, seealso, uses those as title. Otherwise, includes what's in title. If you want an "s" to appear automatically for plural, include this in the title: ::{{#if:{{{subject2|}}}|s|}} ::So, title=Article{{#if:{{{subject2|}}}|s|}}: will produce: :::Article: if there is only one set of link, subject '''''or''''' :::Articles: if more than one. : If there are spaces in the title, it looks better if you use a "non breaking space" because then the title will stay on one line and not be wrapped. Instead of "The Title" put "The'''<nonwiki> Title"