Template:Crafts Hobbies: Difference between revisions
From HorizonXI Wiki
No edit summary |
(added option to specify the craft or hobby to adapt the color scheme based on existing crafthobbies css classes) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> | <noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> | ||
{| | <onlyinclude><includeonly> | ||
{| class="crafthobbies{{#if:{{{1|}}}|-{{{1}}}|}}" style="width: 100%" | |||
! style="font-size: larger" | [[Crafts]] | |||
|- | |- | ||
|style=" | | | ||
<div style="display: flex; flex-wrap: wrap; justify-content: center; min-width: 100%;"> | |||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;">[[:Category:Alchemy|Alchemy]]<br><center>{{Click-Inline|width=33px|height=33px|image=AlchemyIcon.png|link=:Category:Alchemy|title=Alchemy}}</center></div> | |||
<center>{{Click-Inline|width=33px|height=33px|image=AlchemyIcon.png|link=:Category:Alchemy|title=Alchemy}}</center> | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Bonecraft|Bonecraft]]<br>{{Click-Inline|width=33px|height=33px|image=BonecraftIcon.png|link=:Category:Bonecraft|title=Bonecraft}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Clothcraft|Clothcraft]]<br>{{Click-Inline|width=33px|height=33px|image=ClothcraftIcon.png|link=:Category:Clothcraft|title=Clothcraft}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Cooking|Cooking]]<br>{{Click-Inline|width=33px|height=33px|image=CookingIcon.png|link=:Category:Cooking|title=Cooking}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Fishing|Fishing]]<br>{{Click-Inline|width=33px|height=33px|image=FishingIcon.png|link=:Category:Fishing|title=Fishing}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Goldsmithing|Goldsmithing]]<br>{{Click-Inline|width=33px|height=33px|image=GoldsmithingIcon.png|link=:Category:Goldsmithing|title=Goldsmithing}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Leathercraft|Leathercraft]]<br>{{Click-Inline|width=33px|height=33px|image=LeathercraftIcon.png|link=:Category:Leathercraft|title=Leathercraft}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Smithing|Smithing]]<br>{{Click-Inline|width=33px|height=33px|image=BlacksmithingIcon.png|link=:Category:Smithing|title=Smithing}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Woodworking|Woodworking]]<br>{{Click-Inline|width=33px|height=33px|image=WoodworkingIcon.png|link=:Category:Woodworking|title=Woodworking}}</center></div> | |||
< | |||
< | |||
< | |||
< | |||
< | |||
<!--|valign="top" align="center" width="10%"|[[:Category:Synergy|Synergy]] | <!--|valign="top" align="center" width="10%"|[[:Category:Synergy|Synergy]] | ||
<center>{{Click-Inline|width=33px|height=33px|image=SynergyIcon.png|link=:Category:Synergy|title=Synergy}}</center>--> | <center>{{Click-Inline|width=33px|height=33px|image=SynergyIcon.png|link=:Category:Synergy|title=Synergy}}</center>--> | ||
</div> | |||
|- | |- | ||
! style="font-size: larger" | [[Hobbies]] | |||
|- | |- | ||
|style=" | | | ||
<div style="display: flex; flex-wrap: wrap; justify-content: center; min-width: 100%;"> | |||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Chocobo Digging|Digging]]<br>{{Click-Inline|width=33px|height=33px|image=ChocoboDiggingIcon.png|link=Chocobo Digging|title=Chocobo Digging}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Clamming]]<br>{{Click-Inline|width=33px|height=33px|image=ClammingIcon.png|link=Clamming|title=Clamming}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Excavation]]<br>{{Click-Inline|width=33px|height=33px|image=ExcavationIcon.png|link=Excavation|title=Excavation}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[:Category:Gardening|Gardening]]<br>{{Click-Inline|width=33px|height=33px|image=GardeningIcon.png|link=:Category:Gardening|title=Gardening}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Harvesting]]<br>{{Click-Inline|width=33px|height=33px|image=HarvestingIcon.png|link=Harvesting|title=Harvesting}}</center></div> | |||
< | <div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Logging]]<br>{{Click-Inline|width=33px|height=33px|image=LoggingIcon.png|link=Logging|title=Logging}}</center></div> | ||
<div style="text-align: center; padding: 4px; flex: 1; margin: 4px;"><center>[[Mining]]<br>{{Click-Inline|width=33px|height=33px|image=MiningIcon.png|link=Mining|title=Mining}}</center></div> | |||
< | </div> | ||
|}</includeonly></onlyinclude> | |||
< | ==Usage== | ||
* Returns a default ToC footer for crafts and hobbies, which is responsive to fit desktop and mobile screens. | |||
< | * Optional argument to specify the craft/hobby style to make the color scheme fit to the rest of the page. | ||
* If a scheme is not implemented (yet), the coloring will disappear. Please use the standard version (without argument) in that case. | |||
< | ===Examples=== | ||
|} | <pre>{{Crafts Hobbies}}</pre> | ||
|} | {{Crafts Hobbies}} | ||
<pre>{{Crafts Hobbies|excavation}}</pre> | |||
{{Crafts Hobbies|excavation}} | |||
<pre>{{Crafts Hobbies|digging}}</pre> | |||
{{Crafts Hobbies|digging}} |
Latest revision as of 19:36, 6 March 2024
Usage
- Returns a default ToC footer for crafts and hobbies, which is responsive to fit desktop and mobile screens.
- Optional argument to specify the craft/hobby style to make the color scheme fit to the rest of the page.
- If a scheme is not implemented (yet), the coloring will disappear. Please use the standard version (without argument) in that case.
Examples
{{Crafts Hobbies}}
Crafts |
---|
Hobbies |
{{Crafts Hobbies|excavation}}
Crafts |
---|
Hobbies |
{{Crafts Hobbies|digging}}
Crafts |
---|
Hobbies |