Template:Favilink id: Difference between revisions
Jump to navigation
Jump to search
(note about mutation IDs) |
|||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Favilink| idfavilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|}}}}}</includeonly><noinclude> | <includeonly>{{#invoke:Favilink| idfavilink |{{#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, Mutations. All possible items can be found here: [[Special:CargoTables/GeneralData]]. This is [[Template:Favilink]], but searches by ObjectID instead of page name. | |||
This template is most useful if there are multiple pages that have overlapping/similar names as it's easier to distinguish which page you want to favilink to. | |||
Note that when using this template for mutation pages, you must prefix the mutation's ID with <code>Mutation:</code>. That prefix is added to all mutation IDs to avoid ID collisions in the wiki's cargo database. | |||
==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== | ==Optional Parameters== | ||
You can use the following values as the second argument: | You can use the following values as the second argument: |