Template:Crafts Hobbies: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Spiffly No edit summary |
imported>Aramachus added option to specify the craft or hobby to adapt the color scheme based on existing crafthobbies css classes |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
||
<onlyinclude><includeonly> |
|||
{| class="crafthobbies" |
{| class="crafthobbies{{#if:{{{1|}}}|-{{{1}}}|}}" style="width: 100%" |
||
|align=center bgcolor=#6699CC|<big>'''[[Crafts]]'''</big> |
|||
| ⚫ | |||
|- |
|- |
||
| |
| |
||
<div style="display: flex; flex-wrap: wrap; justify-content: center; min-width: 100%;"> |
|||
{|border="0" width="100%" bgcolor=#e9f2fb |
|||
| ⚫ | |||
|valign="top" align="center" width="10%"|[[:Category:Alchemy|Alchemy]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
|||
|valign="top" align="center" width="10%"|[[:Category:Bonecraft|Bonecraft]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
|||
|valign="top" align="center" width="10%"|[[:Category:Clothcraft|Clothcraft]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
||
| ⚫ | |||
|valign="top" align="center" width="10%"|[[:Category:Cooking|Cooking]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
||
| ⚫ | |||
|valign="top" align="center" width="10%"|[[:Category:Fishing|Fishing]] |
|||
| ⚫ | |||
|valign="top" align="center" width="10%"|[[:Category:Goldsmithing|Goldsmithing]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image=GoldsmithingIcon.png|link=:Category:Goldsmithing|title=Goldsmithing}}</center> |
|||
|valign="top" align="center" width="10%"|[[:Category:Leathercraft|Leathercraft]] |
|||
| ⚫ | |||
|valign="top" align="center" width="10%"|[[:Category:Smithing|Smithing]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image=BlacksmithingIcon.png|link=:Category:Smithing|title=Smithing}}</center> |
|||
|valign="top" align="center" width="10%"|[[:Category:Woodworking|Woodworking]] |
|||
| ⚫ | |||
<!--|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]] |
|||
|align=center bgcolor=#6699CC|<big>'''[[Hobbies]]'''</big> |
|||
|- |
|- |
||
| ⚫ | |||
| ⚫ | |||
<div style="display: flex; flex-wrap: wrap; justify-content: center; min-width: 100%;"> |
|||
{|border="0" width="100%" bgcolor=#e9f2fb |
|||
<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> |
|||
|valign="top" align="center" width="12%"|[[Chocobo Digging|Digging]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
|||
|valign="top" align="center" width="12%"|[[Clamming]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
||
| ⚫ | |||
|valign="top" align="center" width="12%"|[[Excavation]] |
|||
<center>{{Click-Inline|width=33px|height=33px|image= |
<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> |
||
| ⚫ | |||
|valign="top" align="center" width="12%"|[[:Category:Gardening|Gardening]] |
|||
</div> |
|||
<center>{{Click-Inline|width=33px|height=33px|image=GardeningIcon.png|link=:Category:Gardening|title=Gardening}}</center> |
|||
|}</includeonly></onlyinclude> |
|||
|valign="top" align="center" width="12%"|[[Harvesting]] |
|||
==Usage== |
|||
| ⚫ | |||
* Returns a default ToC footer for crafts and hobbies, which is responsive to fit desktop and mobile screens. |
|||
|valign="top" align="center" width="12%"|[[Logging]] |
|||
* Optional argument to specify the craft/hobby style to make the color scheme fit to the rest of the page. |
|||
<center>{{Click-Inline|width=33px|height=33px|image=LoggingIcon.png|link=Logging|title=Logging}}</center> |
|||
* If a scheme is not implemented (yet), the coloring will disappear. Please use the standard version (without argument) in that case. |
|||
|valign="top" align="center" width="12%"|[[Mining]] |
|||
===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 |