Template:Shroomname

From A KoL Wiki
{{#switch:{{{1|}}}|mushsprout=spore|dirt1=dirt|dirt2=dirt|dirt3=dirt|dirt4=dirt|dirt5=dirt|dirt6=dirt|bmushroom=Knoll mushroom|mushroom=Knob mushroom|spooshroom=spooky mushroom|flatshroom=warm mushroom|plaidroom=cool mushroom|tallshroom=pointy mushroom|fireshroom=flaming mushroom|iceshroom=frozen mushroom|stinkshroo=stinky mushroom|blackshroo=gloomy black mushroom|sleazeroom=oily golden mushroom}}

Usage

{{shroomname|imagename}}

Usage Notes

  • Converts an image name (without the .gif) of a mushroom to the corresponding item name.
  • The image name must be given in lower case.
  • Example: {{shroomname|spooshroom}} → spooky mushroom
  • Special cases (not item names):
    • {{shroomname|mushsprout}} → spore
    • {{shroomname|dirt1}} → dirt
    • {{shroomname|dirt2}} → dirt
    • {{shroomname|dirt3}} → dirt
    • {{shroomname|dirt4}} → dirt
    • {{shroomname|dirt5}} → dirt
    • {{shroomname|dirt6}} → dirt
  • For unknown image names, the result is empty.