Difference between revisions of "Recipe icon"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (small items) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:item|{{#explode:{{PAGENAME}}|:|1}}}}<!-- define base item (removes 'Recipe: ') | <includeonly>{{#vardefine:item|{{#explode:{{PAGENAME}}|:|1}}}}<!-- define base item (removes 'Recipe: ') | ||
− | -->{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- if base item has an icon --> | + | -->{{#if:{{#show:{{#var:item}}|?Has icon}}|<!-- if base item has an icon |
+ | -->{{#if:{{{small|}}}|<!-- if small (25px) icon --> | ||
+ | <span class="{{{1|quality-common}}}">[[File:{{#show:{{#ask:[[Has learned from::Recipe: {{#var:item}}]]|link=none}}|?Has profession}} Recipe.png|25px|link={{PAGENAME}}]]</span><!-- size too small for diagonal trick -->|<!-- else big (85px) icon --> | ||
<div class="recipe-img"> | <div class="recipe-img"> | ||
<span class="{{{1|quality-common}}}" style="position:absolute;">[[File:Recipe Background.png|85px]]</span> | <span class="{{{1|quality-common}}}" style="position:absolute;">[[File:Recipe Background.png|85px]]</span> |
Revision as of 17:52, 12 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
- 1: The name of the recipe.
- Optional. Defaults to '
{{PAGENAME}}
'. - quality: The quality CSS class of the item.
- Optional. Defaults to '
quality-common
'. - small: 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.