Template:Quest: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(realm icons not working for some reason after refactoring inlineIcon, attempting to troubleshoot)
(added specified switches for different realm names. Could've sworn it once worked before, but maybe I was mistaken.)
Line 1: Line 1:
<span id=""nametemplate"" {{#ifeq:{{{class|}}}|inline|style=""display:inline; margin-right:0;""|}}>[[File:Menu_Icon_Quests.png|{{#if:{{{size|}}}|{{{size|}}}|20}}px|link=]] [[{{{1|}}}]]{{#switch:{{{realm|}}}
<span id=""nametemplate"" {{#ifeq:{{{class|}}}|inline|style=""display:inline; margin-right:0;""|}}>[[File:Menu_Icon_Quests.png|{{#if:{{{size|}}}|{{{size|}}}|20}}px|link=]] [[{{{1|}}}]]{{#switch:{{{realm|}}}
  |Story=&nbsp;{{inlineIcon|Story|iconOnly}}
  |Ratatouille
  |Moana
  |WALL-E
  |Frozen
  |Toy Story=&nbsp;{{inlineIcon|{{{realm|}}} Realm|iconOnly}}
   |Story=&nbsp;{{inlineIcon|Story|iconOnly}}
   |Story=&nbsp;{{inlineIcon|Story|iconOnly}}
   |#default=&nbsp;{{inlineIcon|{{{realm|}}} Realm|iconOnly}}|}}{{#if:{{{friendship|}}}|&nbsp;{{#if:{{{level|}}}|{{inlineIcon|Friendship_{{{level|}}}|iconOnly}}|}}{{inlineIcon|{{{friendship|}}}|iconOnly}}|}}</span><noinclude>[[Category:Formatting templates]]
   |#default=&nbsp;{{inlineIcon|{{{realm|}}} Realm|iconOnly}}|}}{{#if:{{{friendship|}}}|&nbsp;{{#if:{{{level|}}}|{{inlineIcon|Friendship_{{{level|}}}|iconOnly}}|}}{{inlineIcon|{{{friendship|}}}|iconOnly}}|}}</span><noinclude>[[Category:Formatting templates]]
Line 5: Line 11:
{{quest|The Shy Little Robot|friendship=WALL-E}}
{{quest|The Shy Little Robot|friendship=WALL-E}}
{{quest|The Shy Little Robot|realm=Toy Story}}
{{quest|The Shy Little Robot|realm=Toy Story}}
{{quest|The Shy Little Robot|realm=Moana}}
{{quest|The Shy Little Robot|realm=Moana|friendship=Maui}}
{{quest|The Shy Little Robot|realm=Frozen}}
{{quest|The Shy Little Robot|realm=Frozen}}
{{quest|The Shy Little Robot|realm=Ratatouille}}
{{quest|The Shy Little Robot|realm=Ratatouille}}

Revision as of 17:26, 21 March 2023

Menu Icon Quests.png [[]]