Harvest festival 2024.png

Dare to try out the Harvest Festival 2024!?

Template:RecipeList: Difference between revisions

From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly> {{#dpl: |category={{{craft}}}/{{{rank}}} |notcategory={{{craft}}}/Subcraft |notcategory={{{craft}}}/Desynthesis |notcategory=High Quality |include={Synthesis Recipe¦RecipeList.dpl},##Horizon Changes {{changes}} |table=class="horizon-table {{#if:{{{colorclass|}}}|{{{colorclass}}}|{{lc:{{{craft}}}}}-table}} center-col-2 center-col-3 sortable",-,Item,Cap,Crystal,class="unsortable"{{!}}Ingredients,class="unsortable"{{!}}HQ,Horizon Changes {{Change...")
 
(removed the notcategory desynth, added some comments and minor improvements and added a bit of documentation)
Line 2: Line 2:
{{#dpl:
{{#dpl:
|category={{{craft}}}/{{{rank}}}
|category={{{craft}}}/{{{rank}}}
|notcategory={{{craft}}}/Subcraft
|notcategory={{{craft}}}/Subcraft <!-- Assumes that item pages, which are categorized as subcraft wrt a certain craft, NEVER contain recipes where that craft is the main craft -->
|notcategory={{{craft}}}/Desynthesis
<!--|notcategory={{{craft}}}/Desynthesis --> <!-- this does NOT work because if there is a desynth recipe on a page, the entire page is categorized as desynth and excluded here -->
|notcategory=High Quality
|notcategory=High Quality <!-- HQ pages are covered by their NQ pages -->
|include={Synthesis Recipe¦RecipeList.dpl},##Horizon Changes {{changes}}
|include={Synthesis Recipe¦RecipeList.dpl},##Horizon Changes.*
|table=class="horizon-table {{#if:{{{colorclass|}}}|{{{colorclass}}}|{{lc:{{{craft}}}}}-table}} center-col-2 center-col-3 sortable",-,Item,Cap,Crystal,class="unsortable"{{!}}Ingredients,class="unsortable"{{!}}HQ,Horizon Changes {{Changes}}
|table=class="horizon-table {{#if:{{{colorclass|}}}|{{{colorclass}}}|{{lc:{{{craft}}}}}-table}} center-col-2 center-col-3 sortable",-,Item,Cap,Crystal,class="unsortable"{{!}}Ingredients,class="unsortable"{{!}}HQ,Horizon Changes {{Changes}}
|tablesortcol=3<!-- need to use +1 here because the additional linebreak at the beginning of the phantom template that is used to apply classes and styles to the rows somehow counts as a column here -->
|tablesortcol=3<!-- need to use +1 here because the additional linebreak at the beginning of the phantom template that is used to apply classes and styles to the rows somehow counts as a column here -->
}}
}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>
==Usage==
Template that generates a dpl table for a given craft for a given rank.
Parameters
*''craft'': craft for which the table is to be generated
*''rank'': which rank is supposed to be displayed
*''colorclass'' (''optional''): by default, the table uses the coloring theme of the craft. If another coloring is desired, use this class.
===Example===
<pre>{{RecipeList|craft=Alchemy|rank=Apprentice}}
</pre>
{{RecipeList|craft=Alchemy|rank=Apprentice}}
{{RecipeList|craft=Alchemy|rank=Apprentice}}

Revision as of 11:16, 30 October 2024