Template:Favilink page: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(fix typo)
Line 1: Line 1:
<includeonly>{{#invoke:Favilink| pagenamefavilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:Favilink| pagenamefavilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|}}}}}</includeonly><noinclude>
[[Category:Shorthand Templates]]
[[Category:Shorthand Templates]]
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters. All possible items can be found here: [[Special:CargoTables/GeneralData]]. This is [[Template:Favilink]], but searches by ObjectID instead of page name.
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters. All possible items can be found here: [[Special:CargoTables/GeneralData]]. This is [[Template:Favilink]], but searches by page name instead of ObjectID.
==Usage==
==Usage==
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item. This is case sensitive, so the first letter must be capitalized.
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item. This is case sensitive, so the first letter must be capitalized.

Revision as of 19:43, 10 August 2022

!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters. All possible items can be found here: Special:CargoTables/GeneralData. This is Template:Favilink, but searches by page name instead of ObjectID.

Usage

Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item. This is case sensitive, so the first letter must be capitalized.

Optional Parameters

You can use the following values as the second argument:

plural pluralizes the item name while preserving the color formatting.
{{favilink page|Data:Peck (glowcrow)|plural}}

\pecks

possessive makes the item name possessive while preserving the color formatting.
{{favilink page| 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.
{{favilink page|Cybernetics credit wedge|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 page|Torch|A &Rreally&y spicy meatball}}

A really spicy meatball