Module:Favilink/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(suffix: documentation) |
||
Line 55: | Line 55: | ||
{{favilink | mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}} | {{favilink | mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}} | ||
|- | |||
! style="white-space:nowrap;" | <code>suffix:<suffix></code> | |||
| Postpends a suffix to the name, which can include qud text color styles. | |||
<pre> | |||
{{favilink | plasma grenade | suffix:mk II}} | |||
</pre> | |||
{{favilink | plasma grenade | suffix:mk II}} | |||
|- | |- | ||
! ''<any other value>'' | ! ''<any other value>'' |
Latest revision as of 19:45, 16 December 2021
Documentation
[purge]
!!Currently only for use for objects in the tables: ItemsTable, Food, Corpses, Characters, Locations. All possible items can be found here: Special:CargoTables/GeneralData.
Usage
Used similar to regular wikipage linking syntax. First argument takes name of the object and will pull the image from that item. This must be called using Template:Favilink.
{{favilink|Stopsvalinn}}
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}} |
---|---|
possessive
|
makes the item name possessive while preserving the color formatting.
{{favilink | Q Girl | possessive}} |
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: |
prefix:<prefix>
|
Prepends a prefix to the name, which can include qud text color styles.
{{favilink | mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}} |
suffix:<suffix>
|
Postpends a suffix to the name, which can include qud text color styles.
{{favilink | plasma grenade | suffix:mk II}} |
<any other value> | completely overrides the name shown in the favilink to whatever argument specified.
{{favilink|torch|A &Rreally&y spicy meatball}} |