Template:F: Difference between revisions
Jump to navigation
Jump to search
m (clarified what this is) |
m (moved clarification to beginning) |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Favilink| favilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|}}}}}</includeonly><noinclude> | <includeonly>{{#invoke:Favilink| favilink |{{#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, Locations. All possible items can be found here: [[Special:CargoTables/GeneralData]]. If an item is missing, please let [[User:Teamtoto]] know. | This is an exact copy of [[Template:Favilink]], but shorter to invoke. !!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. This is not case sensitive! | |||
<pre> | <pre> | ||
{{f|Stopsvalinn}} | {{f|Stopsvalinn}} |
Latest revision as of 05:24, 29 April 2023
This is an exact copy of Template:Favilink, but shorter to invoke. !!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. This is not case sensitive!
{{f|Stopsvalinn}}
Stopsvalinn If you want to use the wiki's page name instead, see Template:Favilink page. For the ObjectBlueprint id (which IS case sensitive), use Template:Favilink id.
Optional Parameters
You can use the following values as the second argument:
plural
|
pluralizes the item name while preserving the color formatting.
{{f|antimatter cell|plural}} |
---|---|
possessive
|
makes the item name possessive while preserving the color formatting.
{{f| 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.
{{f| 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.
{{f| mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}} |
suffix:<suffix>
|
Postpends a suffix to the name, which can include qud text color styles.
{{f| plasma grenade | suffix:mk II}} |
<any other value> | completely overrides the name shown in the favilink to whatever argument specified.
{{f|torch|A &Rreally&y spicy meatball}} |