Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Template:Name
(view source)
Revision as of 15:34, 22 January 2021
195 bytes added
,
15:34, 22 January 2021
add a description parameter which will be print below the name. This and the image will be vertically aligned. the description can be on multiple lines using <br/>
Line 1:
Line 1:
−
<includeonly><span id="nametemplate" {{#ifeq:{{{class|}}}|inline|style="display:inline; margin-right:0;"|}}>[[File:{{#if:{{{image|}}}|{{{image|}}}|{{{1|}}}.{{{ext|png}}}}}|{{#if:{{{size|}}}|{{{size|}}}|24}}px|link=]] {{#if:{{{link|}}}|[[{{{link|}}}]]|{{#switch:{{lc:{{{1|}}}}}
+
<includeonly><span id="nametemplate" {{#ifeq:{{{class|}}}|inline|style="display:inline; margin-right:0;"|}}>
{{#if:{{{description|}}}|<table style='display: inline-table; vertical-align: middle;'><td>|}}
[[File:{{#if:{{{image|}}}|{{{image|}}}|{{{1|}}}.{{{ext|png}}}}}|{{#if:{{{size|}}}|{{{size|}}}|24}}px|link=]]
{{#if:{{{description|}}}|</td><td>|}}
+
{{#if:{{{link|}}}|[[{{{link|}}}]]|{{#switch:{{lc:{{{1|}}}}}
|fishing treasure chest=[[Fishing#Treasure Chests|Fishing Treasure Chest]]
|fishing treasure chest=[[Fishing#Treasure Chests|Fishing Treasure Chest]]
|muscle remedy=[[Harvey's Clinic#Medical Supplies|Muscle Remedy]]
|muscle remedy=[[Harvey's Clinic#Medical Supplies|Muscle Remedy]]
Line 18:
Line 19:
|copper pan=[[Copper Pan|Panning]]
|copper pan=[[Copper Pan|Panning]]
|trimmed lucky purple shorts=[[Secrets#Lucky Purple Shorts|Trimmed Lucky Purple Shorts]]
|trimmed lucky purple shorts=[[Secrets#Lucky Purple Shorts|Trimmed Lucky Purple Shorts]]
−
|#default=[[{{{1|}}}]]}}}}{{#if: {{{2|}}}| ({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
+
|#default=[[{{{1|}}}]]}}}}{{#if: {{{2|}}}| ({{{2|}}})
|}}{{#if:{{{description|}}}|<br/>{{{description|}}}</td></table>
|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
ClemNad
208
edits