Template:Favilink id: Difference between revisions
Jump to navigation
Jump to search
(replaced with module) |
(updated doc based on original favilink) |
||
Line 4: | Line 4: | ||
==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. | ||
==Optional Parameters== | |||
{ | You can use the following values as the second argument: | ||
</ | {| class="wikitable" | ||
! <code>plural</code> | |||
| pluralizes the item name while preserving the color formatting. | |||
<pre> | |||
{{favilink id|Antimatter Cell|plural}} | |||
</pre> | |||
< | {{favilink id|Antimatter Cell|plural}} | ||
{{favilink id| | |||
</ | |- | ||
! <code>possessive</code> | |||
| makes the item name possessive while preserving the color formatting. | |||
<pre> | |||
{{favilink id| Q Girl | possessive}} | |||
</pre> | |||
{{favilink id| Q Girl | possessive}} | |||
|- | |||
! style="white-space:nowrap;" | <code>displayname-tooltip-override</code> | |||
| 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 id|CyberneticsCreditWedge2|displayname-tooltip-override}} | |||
</pre> | |||
<div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink id|CyberneticsCreditWedge2|displayname-tooltip-override}}</div> | |||
<div style="margin:1.5em 0 0.5em 2em;color:grey;"> | |||
''Compare to tooltip when this parameter is not specified:'' | |||
<div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink id| CyberneticsCreditWedge2}}</div> | |||
</div> | |||
|- | |||
! ''<any other value>'' | |||
| completely overrides the name shown in the favilink to whatever argument specified. | |||
<pre> | |||
{{favilink id|torch|A &Rreally&y spicy meatball}} | |||
</pre> | |||
{{favilink id|torch|A &Rreally&y spicy meatball}} | |||
|- | |||
|} | |||
</noinclude> | </noinclude> |
Revision as of 20:40, 12 September 2019
!!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.
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.
{{favilink id|Antimatter Cell|plural}} |
---|---|
possessive
|
makes the item name possessive while preserving the color formatting.
{{favilink id| 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 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.
{{favilink id|torch|A &Rreally&y spicy meatball}} torch(favilink error!) |