Template:Favilink: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(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>

Revision as of 19:54, 20 August 2019

!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters, Locations. All possible items can be found here: Special:CargoTables/GeneralData. If an item is missing, please let User:Teamtoto know.

Usage

Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item.

{{favilink|stopsvalinn}}

Stopsvalinn.pngStopsvalinn

You can also use plural as the second argument to pluralize the item name:

{{favilink | antimatter cell | plural}}

Antimatter cell.pngantimatter cells

Or, you can use any other value as a second argument to reword the link:

{{favilink|torch|A &Rreally&y spicy meatball}}

Torch.pngA really spicy meatball