Template:Favilink: Difference between revisions

697 bytes added ,  17:21, 18 December 2023
m
Add link to the style guide page.
(add prefix support)
Tag: Reverted
m (Add link to the style guide page.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Favilink| favilink |{{#if:{{{Page|}}}|{{{Page}}}|{{{1|}}} }}|{{{2|{{{prefix|}}}}}}}}</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.
NOTE: this can also be invoked with [[Template:F]], which is fewer characters to type. !!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!
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!
Line 8: Line 8:
</pre>
</pre>
{{favilink|Stopsvalinn}}
{{favilink|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]].
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]]. See [[Style Guide#Colored Names]] for more information on when to use these different favilink types.


==Optional Parameters==
==Optional Parameters==
Line 46: Line 46:
<div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink | cybernetics credit wedge 1¢}}</div>
<div class="qud-inventory-item" style="font-family:'Open Sans';font-size:15.5px;">{{favilink | cybernetics credit wedge 1¢}}</div>
</div>
</div>
|-
! style="white-space:nowrap;" | <code>prefix:<prefix></code>
| Prepends a prefix to the name, which can include qud text color styles.
<pre>
{{favilink | mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}}
</pre>
{{favilink | mental aggregator | prefix:&ylant&Ye&Wr&Yn&yed}}
|-
! style="white-space:nowrap;" | <code>suffix:<suffix></code>
| Postpends a suffix to the name, which can include qud text color styles.
<pre>
{{favilink | plasma grenade | suffix:mk II}}
</pre>
{{favilink | plasma grenade | suffix:mk II}}
|-
|-
! ''<any other value>''  
! ''<any other value>''