Template:Favilink: Difference between revisions
Jump to navigation
Jump to search
m (better example) |
(replaced logic with Module:Favilink) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Favilink| favilink |{{{1|}}}|{{{2|}}}}}</includeonly><noinclude> | ||
[[Category:Shorthand Templates]] | [[Category:Shorthand Templates]] | ||
!!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. | !!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== | ==Usage== | ||
Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item. | Used similar to regular wikipage linking syntax. First argument takes name of the page and will pull the image from that item. | ||
< | <pre> | ||
{{favilink|stopsvalinn}} | {{favilink|stopsvalinn}} | ||
</ | </pre> | ||
{{favilink|stopsvalinn}} | {{favilink|stopsvalinn}} | ||
Line 15: | Line 15: | ||
| pluralizes the item name while preserving the color formatting. | | pluralizes the item name while preserving the color formatting. | ||
< | <pre> | ||
{{favilink | antimatter cell | plural}} | {{favilink |antimatter cell|plural}} | ||
</ | </pre> | ||
{{favilink | antimatter cell | plural}} | {{favilink |antimatter cell|plural}} | ||
|- | |- | ||
Line 25: | Line 25: | ||
| makes the item name possessive while preserving the color formatting. | | makes the item name possessive while preserving the color formatting. | ||
< | <pre> | ||
{{favilink | Q Girl | possessive}} | {{favilink | Q Girl | possessive}} | ||
</ | </pre> | ||
{{favilink | Q Girl | possessive}} | {{favilink | Q Girl | possessive}} | ||
Line 35: | Line 35: | ||
| makes the hover tooltip equal to the display name for items whose display name doesn't match their page name, such as <code>cybernetics credit wedge 1¢</code>. 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. | | makes the hover tooltip equal to the display name for items whose display name doesn't match their page name, such as <code>cybernetics credit wedge 1¢</code>. 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. | ||
< | <pre> | ||
{{favilink | cybernetics credit wedge 1¢ | displayname-tooltip-override}} | {{favilink | cybernetics credit wedge 1¢ | displayname-tooltip-override}} | ||
</ | </pre> | ||
<div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink | cybernetics credit wedge 1¢ | displayname-tooltip-override}}</div> | <div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink | cybernetics credit wedge 1¢ | displayname-tooltip-override}}</div> | ||
Line 49: | Line 49: | ||
| completely overrides the name shown in the favilink to whatever argument specified. | | completely overrides the name shown in the favilink to whatever argument specified. | ||
< | <pre> | ||
{{favilink|torch|A &Rreally&y spicy meatball}} | {{favilink|torch|A &Rreally&y spicy meatball}} | ||
</ | </pre> | ||
{{favilink|torch|A &Rreally&y spicy meatball}} | {{favilink|torch|A &Rreally&y spicy meatball}} |
Revision as of 17:41, 8 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}}
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: |
<any other value> | completely overrides the name shown in the favilink to whatever argument specified.
{{favilink|torch|A &Rreally&y spicy meatball}} |