Template:Favilink: Difference between revisions

20 bytes added ,  19:54, 20 August 2019
m
no edit summary
(Add support for pluralization)
mNo edit summary
Line 9: Line 9:
{{favilink|stopsvalinn}}
{{favilink|stopsvalinn}}


You can also use a second argument to reword the link:
You can also use <code>plural</code> as the second argument to pluralize the item name:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{favilink|torch|A &Rreally&y spicy meatball}}
{{favilink | antimatter cell | plural}}
</syntaxhighlight>
</syntaxhighlight>


{{favilink|torch|A &Rreally&y spicy meatball}}
{{favilink | antimatter cell | plural}}


You can also use <code>plural</code> as the second argument to pluralize the item name:
Or, you can use any other value as a second argument to reword the link:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{favilink | antimatter cell | plural}}
{{favilink|torch|A &Rreally&y spicy meatball}}
</syntaxhighlight>
</syntaxhighlight>


{{favilink | antimatter cell | plural}}
{{favilink|torch|A &Rreally&y spicy meatball}}
 
 
</noinclude>
</noinclude>