User:Aramachus/Sandbox: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus mNo edit summary |
imported>Aramachus cleared test code |
||
| Line 1: | Line 1: | ||
===Subcraft pages lists=== |
|||
* would need an elaborate phantom template to get it right. |
|||
**first column has the name and adds the required crafts |
|||
**crystal |
|||
**all ingredients and their quantities |
|||
**HQs and their yields |
|||
**cap |
|||
*Not sure if even possible when some items have multiple recipes on their page and only some of those are related to the craft in question. See [[Frog Lure]], only one recipe has smithing as subcraft. Result should look like e.g.: [[:Category:Goldsmithing/Apprentice]] |
|||
*big problem is that the list cannot so far distinguish between synthesis and desynthesis recipes because they use the same template. Maybe if the phantom template outputs nothing if <nowiki>{{{result}}}</nowiki> is equal to <nowiki>%TITLE%</nowiki> or 'this'? Would probably need an extra css class that can collapse an empty row to 0 height. Can the phantom template assign a class to the row? |
|||
{{#dpl: |
|||
|category=Smithing/Subcraft |
|||
|category=Goldsmithing |
|||
|notcategory=Goldsmithing/Subcraft <!--exclude because the recipe will show up at its main craft again--> |
|||
|notcategory=High Quality |
|||
|include={Synthesis Recipe}:craft:crystal:ingredient:hq result:cap |
|||
|table=class="horizon-table smithing-table-alt table-sm",Name,Craft,Crystal,Ingredients,HQ,Cap |
|||
}} |
|||
===All NPCs (commented out)=== |
|||
<!--{{#dpl: |
|||
|category=NPCs |
|||
|include={NPC}:type:occupation:location |
|||
|table=class="horizon-table sortable",Name,Type,Occupation,Location |
|||
|notnamespace=Category |
|||
|notnamespace=Template |
|||
}}--> |
|||