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

m
m
 
(3 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
:::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 <nowiki>"The&nbsp;Title"</nowiki>
+
: 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"