Template:InlineIcon: Difference between revisions

Jump to navigation Jump to search
(added biomes, but commented them out of documentation, because standard on the wiki is to use the name template)
(add quest icon, but comment out of documentation, as the quest template is used for quests)
Line 133: Line 133:
   |crafting=[[File:Menu Icon Crafting.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |crafting=[[File:Menu Icon Crafting.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |story=[[File:Menu_Icon_Friendship.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |story=[[File:Menu_Icon_Friendship.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
  |quest
  |quests=[[File:Menu_Icon_Quests.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |catalog=[[File:Furniture_Catalog.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |catalog=[[File:Furniture_Catalog.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |goofy's stall=[[File:Goofy's Stall.png|{{#if:{{{size|}}}|{{{size|}}}|20x20}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
   |goofy's stall=[[File:Goofy's Stall.png|{{#if:{{{size|}}}|{{{size|}}}|20x20}}px|link={{#if:{{{link|}}}|{{{link|}}}|}}]]
Line 324: Line 326:
   |crafting={{#if:{{{link|}}}|[[{{{link|}}}|Crafting]]|Crafting}}
   |crafting={{#if:{{{link|}}}|[[{{{link|}}}|Crafting]]|Crafting}}
   |story={{#if:{{{link|}}}|[[{{{link|}}}|Story Quest]]|Story Quest}}
   |story={{#if:{{{link|}}}|[[{{{link|}}}|Story Quest]]|Story Quest}}
  |quest
  |quests={{#if:{{{link|}}}|[[{{{link|}}}|Quest]]|Quest}}
   |catalog={{#if:{{{link|}}}|[[{{{link|}}}|Scrooge's Catalog]]|Scrooge's Catalog}}
   |catalog={{#if:{{{link|}}}|[[{{{link|}}}|Scrooge's Catalog]]|Scrooge's Catalog}}
   |goofy's stall={{#if:{{{link|}}}|[[{{{link|}}}|Goofy's Stall]]|Goofy's Stall}}
   |goofy's stall={{#if:{{{link|}}}|[[{{{link|}}}|Goofy's Stall]]|Goofy's Stall}}
Line 414: Line 418:


<!-- https://dreamlightvalleywiki.com/Template:MainpageMenu -->
<!-- https://dreamlightvalleywiki.com/Template:MainpageMenu -->
==Description==
This template is used to insert an icon inline with text, with options to also include default text, and link both the icon and text to a user-provided link.
This template makes inserting common icons and imagery easier for wiki veterans and newcomers alike. It also helps standardize which icons are used and and unify how these icons are styled, which makes them easier to maintain.
==Usage==
In its most basic form, this template can be used by entering the following onto a relevant page:
<pre>{{inlineIcon|''keyword''}}</pre>
There are also optional parameters that can be used:
<pre>{{inlineIcon|''keyword''|iconOnly|size=''NUMBER''|link=''Wiki page name''}}</pre>
==Examples==
<pre>{{inlineIcon|Cinderella}}</pre>
{{inlineIcon|Cinderella|debug mode = yes}}
<pre>{{inlineIcon|Ratatouille (Universe)|size=30|link=Ratatouille (Universe)}}</pre>
{{inlineIcon|Ratatouille (Universe)|size=30|link=Ratatouille (Universe)|debug mode = yes}}
<pre>{{inlineIcon|Alice in Wonderland|iconOnly|size=60|link=Motifs#Alice in Wonderland}}</pre>
{{inlineIcon|Alice in Wonderland|iconOnly|size=60|link=Motifs#Alice in Wonderland}|debug mode = yes}}




Line 586: Line 616:
|-
|-
| General || Story || {{inlineIcon|Story}}
| General || Story || {{inlineIcon|Story}}
<!--
|-
| General || Quests,Quest || {{inlineIcon|Quest}}
-->
|-
|-
| General || Catalog || {{inlineIcon|Catalog}}
| General || Catalog || {{inlineIcon|Catalog}}
Line 688: Line 722:
|}
|}


==Description==
This template is used to insert an icon inline with text, with options to also include default text, and link both the icon and text to a user-provided link.
This template makes inserting common icons and imagery easier for wiki veterans and newcomers alike. It also helps standardize which icons are used and and unify how these icons are styled, which makes them easier to maintain.
==Usage==
In its most basic form, this template can be used by entering the following onto a relevant page:
<pre>{{inlineIcon|''keyword''}}</pre>
There are also optional parameters that can be used:
<pre>{{inlineIcon|''keyword''|iconOnly|size=''NUMBER''|link=''Wiki page name''}}</pre>
==Examples==
<pre>{{inlineIcon|Cinderella}}</pre>
{{inlineIcon|Cinderella|debug mode = yes}}
<pre>{{inlineIcon|Ratatouille (Universe)|size=30|link=Ratatouille (Universe)}}</pre>
{{inlineIcon|Ratatouille (Universe)|size=30|link=Ratatouille (Universe)|debug mode = yes}}
<pre>{{inlineIcon|Alice in Wonderland|iconOnly|size=60|link=Motifs#Alice in Wonderland}}</pre>
{{inlineIcon|Alice in Wonderland|iconOnly|size=60|link=Motifs#Alice in Wonderland}|debug mode = yes}}


</noinclude>
</noinclude>