moderator
27,229
edits
(swap out Story Icon) |
(wrap includeonly, remove some leading line breaks) |
||
Line 1: | Line 1: | ||
<span id="nametemplate" style="" class="no-wrap">{{#switch:{{lc:{{{1|}}}}} | <includeonly><span id="nametemplate" style="" class="no-wrap">{{#switch:{{lc:{{{1|}}}}} | ||
|house={{#ifeq:{{{2|}}}|iconOnly|[[File:{{#ifeq:{{{light|}}}|yes|House Icon light|House Icon}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]|[[File:{{#ifeq:{{{light|}}}|yes|House Icon light|House Icon}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]] {{#if:{{{link|}}}|[[{{{link|}}}|House]]|House}}}} | |house={{#ifeq:{{{2|}}}|iconOnly|[[File:{{#ifeq:{{{light|}}}|yes|House Icon light|House Icon}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]|[[File:{{#ifeq:{{{light|}}}|yes|House Icon light|House Icon}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]] {{#if:{{{link|}}}|[[{{{link|}}}|House]]|House}}}} | ||
Line 396: | Line 396: | ||
|everywhere={{#ifeq:{{{2|}}}|iconOnly|[[File:{{#ifeq:{{{light|}}}|yes|Dreamlight Valley light|Dreamlight Valley}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]|[[File:{{#ifeq:{{{light|}}}|yes|Dreamlight Valley light|Dreamlight Valley}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]] {{#if:{{{link|}}}|[[{{{link|}}}|Everywhere]]|Everywhere}}}} | |everywhere={{#ifeq:{{{2|}}}|iconOnly|[[File:{{#ifeq:{{{light|}}}|yes|Dreamlight Valley light|Dreamlight Valley}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]|[[File:{{#ifeq:{{{light|}}}|yes|Dreamlight Valley light|Dreamlight Valley}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]] {{#if:{{{link|}}}|[[{{{link|}}}|Everywhere]]|Everywhere}}}} | ||
|#default=[[File:{{{1|}}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]}}</span><noinclude> | |#default=[[File:{{{1|}}}.png|{{#if:{{{size|}}}|{{{size|}}}|22}}px|link={{{link|}}}]]}}</span></includeonly><noinclude><!-- | ||
<!-- | |||
Linked to a category - verify both icon and text link work | Linked to a category - verify both icon and text link work | ||
'''{{inlineIcon|Essentials|size=50|link=:Category:Essentials}}''' | '''{{inlineIcon|Essentials|size=50|link=:Category:Essentials}}''' | ||
Line 408: | Line 406: | ||
{{inlineIcon|Essentials|size=50}} | {{inlineIcon|Essentials|size=50}} | ||
--> | --> | ||
<!-- TODO - refactor seemed to mess up usage in quest realm icon - investigate - 2023-03-20 | <!-- TODO - refactor seemed to mess up usage in quest realm icon - investigate - 2023-03-20 | ||
{{quest|You're My Favorite Deputy|realm=Toy Story}} | {{quest|You're My Favorite Deputy|realm=Toy Story}} | ||
{{inlineIcon|Moana Realm|iconOnly}} | {{inlineIcon|Moana Realm|iconOnly}} | ||
--> | --> | ||
<!--<span style="color: magenta;">{{#sub:Icecream|0|3}}{{#sub::Category:Decor|0|9}}</span>--> | <!--<span style="color: magenta;">{{#sub:Icecream|0|3}}{{#sub::Category:Decor|0|9}}</span>--> | ||
<!--a Menu Icon "Hairstyle" exists but it doesn't match what is used in the game--> | <!--a Menu Icon "Hairstyle" exists but it doesn't match what is used in the game--> | ||
<!-- Header icons are typically size=29, other icons are usually 20 or 22 --> | <!-- Header icons are typically size=29, other icons are usually 20 or 22 --> | ||
<!-- https://dreamlightvalleywiki.com/Template:MainpageMenu --> | <!-- https://dreamlightvalleywiki.com/Template:MainpageMenu --> | ||
==Description== | ==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 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. | ||
Line 1,016: | Line 1,011: | ||
<!--NOTE: Ratatouille light, Moana light, WALL-E light, Snow White light, Cinderella light, Hercules light files are named inconsistently, white icon name isn't default name plus " light"--> | <!--NOTE: Ratatouille light, Moana light, WALL-E light, Snow White light, Cinderella light, Hercules light files are named inconsistently, white icon name isn't default name plus " light"--> | ||
<!--note: landscaping Light file names also named inconsistently, have capital L. todo: Pathing_Icon_Light, Underbrush, Rocks, Trees, etc --> | <!--note: landscaping Light file names also named inconsistently, have capital L. todo: Pathing_Icon_Light, Underbrush, Rocks, Trees, etc --> | ||
[[Category:Formatting templates]] | |||
</noinclude> | </noinclude> |