Template:Favilink: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add possessive argument)
m (better example)
Line 26: Line 26:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{favilink | rimewyk | possessive}}
{{favilink | Q Girl | possessive}}
</syntaxhighlight>
</syntaxhighlight>


{{favilink | rimewyk | possessive}}
{{favilink | Q Girl | possessive}}


|-
|-

Revision as of 02:04, 1 September 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

Optional Parameters

You can use the following values as the second argument:

plural pluralizes the item name while preserving the color formatting.
{{favilink | antimatter cell | plural}}

Antimatter cell.pngantimatter cells

possessive makes the item name possessive while preserving the color formatting.
{{favilink | Q Girl | possessive}}

Q girl.pngQ Girl's

displayname-tooltip-override makes the hover tooltip equal to the display name for items whose display name doesn't match their page name, such as cybernetics credit wedge 1¢. This is probably only needed in special locations where part of the favilink can get truncated, such as in the Character infobox's Inventory list.
{{favilink | cybernetics credit wedge 1¢ | displayname-tooltip-override}}

Compare to tooltip when this parameter is not specified:

<any other value> completely overrides the name shown in the favilink to whatever argument specified.
{{favilink|torch|A &Rreally&y spicy meatball}}

Torch.pngA really spicy meatball