Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ingredient: Difference between revisions

Template page
mNo edit summary
(nolink implementation)
Line 1: Line 1:
{{#if:{{{2|}}}|[[File:{{{2}}}]]|[[File:{{{1}}}.png]]}}[[#{{{1}}}|{{{1}}}]]<noinclude>
{{#ifeq:{{{2|}}}|nolink|{{#if:{{{3|}}}|[[File:{{{3}}}]]|[[File:{{{1}}}.png]]}}{{{1}}}|{{#if:{{{3|}}}|[[File:{{{3}}}|link=#{{{1}}}]]|[[File:{{{1}}}.png|link=#{{{1}}}]]}}[[#{{{1}}}|{{{1}}}]]}}<noinclude>
== How to use ==
== How to use ==
Meant to be used alongside the [[Template:CookingRecipe]] template. This is purely to quickly create a link to an anchor and have pretty picture.
Meant to be used alongside the [[Template:CookingRecipe]] template. This is purely to quickly create a link to an anchor and have pretty picture.


<pre>
<pre>
<nowiki>{{Ingredient|Dough|image.png}}</nowiki>
<nowiki>{{Ingredient|Dough|image.png|nolink}}</nowiki>
</pre>
</pre>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 17:42, 25 October 2023

[[File:{{{1}}}.png|link=#{{{1}}}]][[#{{{1}}}|{{{1}}}]]

How to use

Meant to be used alongside the Template:CookingRecipe template. This is purely to quickly create a link to an anchor and have pretty picture.

{{Ingredient|Dough|image.png|nolink}}