Template:Favilink id: Difference between revisions

m
added note about f template
m (added note about f template)
 
(One intermediate revision by one other user not shown)
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. All possible items can be found here: [[Special:CargoTables/GeneralData]]. This is [[Template:Favilink]], but searches by ObjectID instead of page name.
NOTE: this can also be invoked with [[Template:F id]], which is fewer characters to type. 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: