Template:Crafts Hobbies: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus custom flexbox html instead of a table to make it responsive |
imported>Aramachus added option to specify the craft or hobby to adapt the color scheme based on existing crafthobbies css classes |
||
| Line 1: | Line 1: | ||
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
||
<onlyinclude><includeonly> |
|||
{| class="crafthobbies" style="width: 100%" |
{| class="crafthobbies{{#if:{{{1|}}}|-{{{1}}}|}}" style="width: 100%" |
||
! style="font-size: larger" | [[Crafts]] |
! style="font-size: larger" | [[Crafts]] |
||
|- |
|- |
||
| Line 30: | Line 31: | ||
<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 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> |
</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 |