532
edits
(updated doc based on original favilink) |
m (added note about f template) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:Favilink| idfavilink |{{#if:{{{Page|}}}| | <includeonly>{{#invoke:Favilink| idfavilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|}}}}}</includeonly><noinclude> | ||
[[Category:Shorthand Templates]] | [[Category:Shorthand Templates]] | ||
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: | ||
Line 45: | Line 51: | ||
<pre> | <pre> | ||
{{favilink id| | {{favilink id|Torch|A &Rreally&y spicy meatball}} | ||
</pre> | </pre> | ||
{{favilink id| | {{favilink id|Torch|A &Rreally&y spicy meatball}} | ||
|- | |- | ||
|} | |} | ||
</noinclude> | </noinclude> |