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

m
m
 
(8 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
|summary3=
 
|summary3=
  
}}<nowiki>
+
}}</nowiki>
  
  
Line 23: Line 23:
 
* 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:
 
* 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|}}
+
::<nowiki>{{#if:{{{subject2|}}}|s|}}</nowiki>
  
::So, title=Article{{#if:{{{subject2|}}}|s|}}: will produce:
+
::So, title=Article<nowiki>{{#if:{{{subject2|}}}|s|}}</nowiki>: will produce:
  
 
:::Article: if there is only one set of link, subject '''''or'''''
 
:::Article: if there is only one set of link, subject '''''or'''''
 
:::Articles: if more than one.
 
:::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"
+
: 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'''&amp;nbsp;'''Title"

Latest revision as of 15:43, 1 June 2024

{{Related articles, |title= |link1= |subject1= |summary1= |link2= |subject2= |summary2= |link3= etc. |subject3= |summary3= }}


  • 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&nbsp;Title"