Difference between revisions of "Recipe icon"

m (better image formatting)
m
Line 2: Line 2:
 
-->{{#if:{{{small|}}}<!-- if small (25px) icon
 
-->{{#if:{{{small|}}}<!-- if small (25px) icon
 
-->|{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- if base item has an icon -->
 
-->|{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- if base item has an icon -->
<span class="{{{quality|quality-common}}}">[[File:{{#show:{{#ask:[[Has learned from::Recipe: {{#var:item}}]]|link=none}}|?Has profession}} Recipe.png|25px|link={{{1|{{PAGENAME}}}}}]]</span><!-- size too small for diagonal trick
+
<span class="{{{quality|quality-common}}}">[[File:{{#show:{{#ask:[[Has learned from::{{{1|{{PAGENAME}}}}}]]|link=none}}|?Has profession}} Recipe.png|25px|link={{{1|{{PAGENAME}}}}}]]</span><!-- size too small for diagonal trick
 
-->|[[File:{{#show:{{#ask:[[Has learned from::{{{1|{{PAGENAME}}}}}]]|link=none}}|?Has profession}} Recipe.png|?]]}}<!-- else base item does not have an icon
 
-->|[[File:{{#show:{{#ask:[[Has learned from::{{{1|{{PAGENAME}}}}}]]|link=none}}|?Has profession}} Recipe.png|?]]}}<!-- else base item does not have an icon
 
-->|{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- else (85px) if base item has an icon -->
 
-->|{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- else (85px) if base item has an icon -->

Revision as of 16:17, 14 January 2024

Description

Creates a Recipe icon by combining the profession's recipe icon with the icon of the item to be made.

Usage

{{Recipe icon|<1=recipe name>|<quality=quality>|<small=yes>}}

Parameters

Arrow.png1: The name of the recipe.
Optional. Defaults to '{{PAGENAME}}'.
Arrow.pngquality: The quality CSS class of the item.
Optional. Defaults to 'quality-common'.
Arrow.pngsmall: Determines whether the icon should be small.
Optional.
Notes: Set this parameter any value to create a 25px icon. If not set, the 85px icon is used.