Template:F id

From Caves of Qud Wiki
Revision as of 05:26, 29 April 2023 by Illuminatiswag (talk | contribs) (this is a shorter version of favilink id)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is Template:F, but searches by ObjectID instead of page name. It's an exact copy of Template:Favilink id, but shorter to invoke. Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters, Mutations. All possible items can be found here: Special:CargoTables/GeneralData.

This template is most useful if there are multiple pages that have overlapping/similar names as it's easier to distinguish which page you want to favilink to.

Note that when using this template for mutation pages, you must prefix the mutation's ID with Mutation:. That prefix is added to all mutation IDs to avoid ID collisions in the wiki's cargo database.

Usage

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

Optional Parameters

You can use the following values as the second argument:

plural pluralizes the item name while preserving the color formatting.
{{f id|Antimatter Cell|plural}}

antimatter cells

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

Q 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.
{{f id|CyberneticsCreditWedge2|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.
{{f id|Torch|A &Rreally&y spicy meatball}}

A really spicy meatball