Template:Favilink: Difference between revisions
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 | You can also use <code>plural</code> as the second argument to pluralize the item name: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
{{favilink| | {{favilink | antimatter cell | plural}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{favilink| | {{favilink | antimatter cell | plural}} | ||
Or, you can use any other value as a second argument to reword the link: | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
{{favilink | | {{favilink|torch|A &Rreally&y spicy meatball}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{favilink | | {{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}}
You can also use plural
as the second argument to pluralize the item name:
{{favilink | antimatter cell | plural}}
Or, you can use any other value as a second argument to reword the link:
{{favilink|torch|A &Rreally&y spicy meatball}}