Template:Memory: Difference between revisions

53 bytes added ,  18:19, 3 June 2023
add type=hidden option
(add ability to link to pages)
(add type=hidden option)
Line 4: Line 4:
<div id="brokenmemory">[[File:{{#if:{{{missing|}}}|Broken Memory Pieces 11|Broken Memory Pieces {{{2}}}}}.png|300px|center|link={{#if:{{{missing|}}}||{{#if:{{{link|}}}|{{{link|}}}|File:{{{1}}}.png}}}}]]</div>
<div id="brokenmemory">[[File:{{#if:{{{missing|}}}|Broken Memory Pieces 11|Broken Memory Pieces {{{2}}}}}.png|300px|center|link={{#if:{{{missing|}}}||{{#if:{{{link|}}}|{{{link|}}}|File:{{{1}}}.png}}}}]]</div>
</div>
</div>
<div>
{{#ifeq:{{{type|}}}|hidden||<div>
<div style="float:left;{{#if:{{{desc|}}}|display:none;|}}"><div style="padding:4px; background-color: #6573cc; border-radius: 5px; margin-top: 4px; margin-right: 6px;">[[File:Memory Icon {{{type|}}}.png|32px|center|link=]]</div></div><div style="text-align:{{#if:{{{desc|}}}|center|left}}; line-height: 1.4; margin-top: 7px; font-size: 14px;">{{#if:{{{desc|}}}|{{{desc|}}}|Find exclusive Memory Pieces when {{#switch:{{{type|}}}
<div style="float:left;{{#if:{{{desc|}}}|display:none;|}}"><div style="padding:4px; background-color: #6573cc; border-radius: 5px; margin-top: 4px; margin-right: 6px;">[[File:Memory Icon {{{type|}}}.png|32px|center|link=]]</div></div><div style="text-align:{{#if:{{{desc|}}}|center|left}}; line-height: 1.4; margin-top: 7px; font-size: 14px;">{{#if:{{{desc|}}}|{{{desc|}}}|Find exclusive Memory Pieces when {{#switch:{{{type|}}}
           |critters=feeding [[critters]]
           |critters=feeding [[critters]]
Line 14: Line 14:
           |digging=[[digging]]
           |digging=[[digging]]
           |cooking=[[cooking]]
           |cooking=[[cooking]]
           |#default={{{type|}}}}}}}</div></div>
           |#default={{{type|}}}}}}}</div></div>}}
</div></includeonly>
</div></includeonly><noinclude></noinclude>
moderator
27,062

edits