Template:Synthesis Recipe.RecipeList: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus
mNo edit summary
imported>Aramachus
minor changes to attempt to catch desynth recipes and added a bit of documentation
Line 2: Line 2:
clever ways to not show desynth recipes and recipes where the item is the
clever ways to not show desynth recipes and recipes where the item is the
-->{{#ifeq:{{lc:{{{1}}}}}|none|style="display: none;"}}<!--
-->{{#ifeq:{{lc:{{{1}}}}}|none|style="display: none;"}}<!--
if the recipe has only one ingredient with quantity one, then it is by definition a desynthesis of that ingredient (there might be exceptions...)
if neither cap, crystal nor result (could add more) is given, then do not display the recipe because it isnt filled out
-->{{#if:{{{ingredient 2|}}}{{{ingredient quantity|}}}{{#ifeq:{{lc:{{{crystal}}}}}|lightning||not using lightning crystal so it is not a desynth recipe}}||style="display: none;"}}<!--
if neither cap, crystal nor result (could add more) is given, then do not display the recipe because it isn't filled out
-->{{#if:{{{cap|}}}{{{crystal|}}}{{{result|}}}||style="display:none;"}}<!--
-->{{#if:{{{cap|}}}{{{crystal|}}}{{{result|}}}||style="display:none;"}}<!--


Line 33: Line 35:
-->}}}}|''none''}}
-->}}}}|''none''}}
</onlyinclude></includeonly>
</onlyinclude></includeonly>
==Usage==
dpl phantom template to format the rows of [[Template:RecipeList]]

For usage, see [[Template:RecipeList]]

===Examples of [[Template:RecipeList]]===
<pre>{{RecipeList|craft=Alchemy|rank=Apprentice}}</pre>
{{RecipeList|craft=Alchemy|rank=Apprentice}}
{{RecipeList|craft=Alchemy|rank=Apprentice}}

Revision as of 11:23, 30 October 2024

Usage

dpl phantom template to format the rows of Template:RecipeList

For usage, see Template:RecipeList

{{RecipeList|craft=Alchemy|rank=Apprentice}}

Extension:DynamicPageList4 (DPL4), version 4.0.0: Error: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Synthesis_Recipe.RecipeList: The DynamicPageList4 extension (version 4.0.0) produced a SQL statement which led to a Database error.<br/>The reason may be an internal error of DynamicPageList4 or an error that you made; especially when using parameters like 'categoryregexp' or 'titleregexp'. Usage of non-greedy <code>*?</code> matching patterns are not supported.<br/>The error message was:<br/><code>Error 1054: Unknown column 'ecl1.cl_to' in 'WHERE' Function: MediaWiki\Extension\DynamicPageList4\Query::buildAndSelect - Template:Synthesis_Recipe.RecipeList Query: SET STATEMENT max_statement_time=10 FOR SELECT DISTINCT p.page_namespace AS `page_namespace`,p.page_id AS `page_id`,p.page_title AS `page_title` FROM `page` `p` JOIN `categorylinks` `cl1` ON (((p.page_id = cl1.cl_from) AND (cl1.cl_to = 'Alchemy/Apprentice'))) LEFT JOIN `categorylinks` `ecl1` ON (((p.page_id = ecl1.cl_from) AND (ecl1.cl_to = 'Alchemy/Subcraft'))) LEFT JOIN `categorylinks` `ecl2` ON (((p.page_id = ecl2.cl_from) AND (ecl2.cl_to = 'High_Quality'))) WHERE p.page_is_redirect = 0 AND ecl1.cl_to IS NULL AND ecl2.cl_to IS NULL LIMIT 500 </code>