Template:Craft Recipe List Header: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus No edit summary |
imported>Aramachus m styling improvements |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude> |
<includeonly><onlyinclude><div style="margin-left: 1.6rem; margin-right: 1.6rem; margin-top: 0.5rem; margin-bottom: 0.5 rem;"> |
||
{| style="border: 1px solid #aaa; padding: 4px;" |
|||
:{| |
|||
| ⚫ | |||
|- |
|||
| style="background-color: transparent; padding-left: 8px;" | Guild Rank Test item |
|||
| ⚫ | |||
| : Guild Rank Test item |
|||
|- |
|- |
||
| class="{{{main craft css}}}" style="padding: 8px; width: 50px;" | Text |
| class="{{{main craft css}}}" style="padding: 8px; width: 50px; text-align: center" | Text |
||
| : |
| style="background-color: transparent; padding-left: 8px;" | Item with {{{name}}} as its main craft |
||
|- |
|- |
||
| class="{{{sub craft css}}}" style="padding: 8px; width: 50px;" | Text |
| class="{{{sub craft css}}}" style="padding: 8px; width: 50px; text-align: center" | Text |
||
| style="background-color: transparent" | |
| style="background-color: transparent; padding-left: 8px;" | Item with {{{name}}} as a subcraft |
||
|}</onlyinclude></includeonly> |
|}</div></onlyinclude></includeonly> |
||
==Usage== |
==Usage== |
||
| Line 21: | Line 20: | ||
<pre> |
<pre> |
||
{{Craft Recipe List Header |
{{Craft Recipe List Header |
||
|name=Woodworking |
| name = Woodworking |
||
|rank item css=text-bold |
| rank item css = text-bold |
||
|main craft css=woodworking-body |
| main craft css = woodworking-body |
||
|sub craft css=woodworking-body-alt |
| sub craft css = woodworking-body-alt |
||
}} |
}} |
||
</pre> |
</pre> |
||
{{Craft Recipe List Header |
{{Craft Recipe List Header |
||
|name=Woodworking |
| name = Woodworking |
||
|rank item css=text-bold |
| rank item css = text-bold |
||
|main craft css=woodworking-body |
| main craft css = woodworking-body |
||
|sub craft css=woodworking-body-alt |
| sub craft css = woodworking-body-alt |
||
}} |
}} |
||
Revision as of 19:45, 23 December 2023
Usage
A template that generates the header information for the list of crafting recipes. See, e.g., Category:Woodworking/Amateur.
Note: This shows only the legend, will NOT affect the table formatting.
Examples
{{Craft Recipe List Header
| name = Woodworking
| rank item css = text-bold
| main craft css = woodworking-body
| sub craft css = woodworking-body-alt
}}
| Text | Guild Rank Test item |
| Text | Item with Woodworking as its main craft |
| Text | Item with Woodworking as a subcraft |