Template:Infobox/image: Difference between revisions

From Valheim Wiki
No edit summary
No edit summary
Line 3: Line 3:
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|:|}}}}<!--
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|:|}}}}<!--
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|*|}}}}<!--
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|*|}}}}<!--
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|%|}}}}<!--
-->{{#vardefine:__image|{{#replace:{{#var:__image}}|%|}}}}
-->| colspan="2"|
{{#if:{{{pic2|}}}|{{#tag:tabber|
{{#if:{{{pic2|}}}|{{#tag:tabber|
  {{PAGENAME}}=
  {{PAGENAME}}=
Line 21: Line 20:
</div>
</div>
{{#if:{{{description2|}}}|<p class="text-center text-muted"><em>{{{description2}}}</em></p>|{{#if:{{{description|}}}|<p class="text-center text-muted"><em>{{{description}}}</em></p>}}}}
{{#if:{{{description2|}}}|<p class="text-center text-muted"><em>{{{description2}}}</em></p>|{{#if:{{{description|}}}|<p class="text-center text-muted"><em>{{{description}}}</em></p>}}}}
</div>
{{!}}-{{!}}
{{{pic3}}}=
<div style="float: center;">
<div class="infoboxhover" style="text-align: center;">
<center>[[File:{{#var:__image}} {{{pic3}}}.png{{#if:{{{height|}}}|{{!}}{{{height}}}px}}]]
</center>
</div>
{{#if:{{{description3|}}}|<p class="text-center text-muted"><em>{{{description3}}}</em></p>|{{#if:{{{description|}}}|<p class="text-center text-muted"><em>{{{description}}}</em></p>}}}}
</div>
</div>
}}|
}}|
Line 31: Line 39:
</includeonly><!--
</includeonly><!--
--><noinclude>
--><noinclude>
{{Item Infobox/image
{{Infobox/image
  | name = Picture 1
  | name = Picture 1
  | pic2 = Alternative
  | pic2 = Alternative
Line 39: Line 47:
}}
}}
<pre>
<pre>
{{Item Infobox/image
{{Infobox/image
  | name = Picture 1
  | name = Picture 1
  | pic2 = Alternative
  | pic2 = Alternative

Revision as of 23:41, 14 December 2022


Some cool text

More amazing text!

[[File:Picture 1 {{{pic3}}}.png|120px]]

Some cool text

{{Infobox/image
 | name = Picture 1
 | pic2 = Alternative
 | height = 120
 | description = Some cool text
 | description2 = More amazing text!
}}