Template:Infobox/image: Difference between revisions
From Valheim Wiki
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| 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}}|%|}}}} | ||
{{#if:{{{pic2|}}}|{{#tag:tabber| | {{#if:{{{pic2|}}}|{{#tag:tabber| | ||
{{PAGENAME}}= | {{#if:{{{pic_name|}}}|{{{pic_name}}}|{{PAGENAME}}}}= | ||
<div style="float: center;"> | <div style="float: center;"> | ||
<div class="infoboxhover" title="[t1] {{{t1|}}}" style="text-align: center;"> | <div class="infoboxhover" title="[t1] {{{t1|}}}" style="text-align: center;"> | ||
| Line 14: | Line 13: | ||
</div> | </div> | ||
{{!}}-{{!}} | {{!}}-{{!}} | ||
{{ | {{#if:{{{pic2_name|}}}|{{{pic2_name}}}|{{{pic2}}}}}= | ||
<div style="float: center;"> | <div style="float: center;"> | ||
<div class="infoboxhover" style="text-align: center;"> | <div class="infoboxhover" style="text-align: center;"> | ||
| 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> | |||
{{!}}-{{!}} | |||
{{#if:{{{pic3_name|}}}|{{{pic3_name}}}|{{{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> | ||
{{ | Three pictures, with descriptions: | ||
{{Infobox/image | |||
| name = Picture 1 | |||
| pic2 = Alternative | |||
| pic3 = Even alternativer | |||
| height = 120 | |||
| description = Some cool text | |||
| description2 = More amazing text! | |||
}} | |||
<pre> | |||
{{Infobox/image | |||
| name = Picture 1 | |||
| pic2 = Alternative | |||
| pic3 = Even alternativer | |||
| height = 120 | |||
| description = Some cool text | |||
| description2 = More amazing text! | |||
}} | |||
</pre> | |||
----- | |||
Three pictures, with custom tabbed names: | |||
{{Infobox/image | |||
| name = Picture 1 | | name = Picture 1 | ||
| pic_name = Templates {{Star}} work! | |||
| pic2 = Alternative | | pic2 = Alternative | ||
| pic2_name = Whoooo | |||
| pic3 = Even alternativer | |||
| pic3_name = Third custom name | |||
| height = 120 | | height = 120 | ||
| description = Some cool text | | description = Some cool text | ||
| description2 = More amazing text! | | description2 = More amazing text! | ||
| description3 = Description 3 babyyy | |||
}} | }} | ||
<pre> | <pre> | ||
{{ | {{Infobox/image | ||
| name = Picture 1 | | name = Picture 1 | ||
| pic_name = Templates {{Star}} work! | |||
| pic2 = Alternative | | pic2 = Alternative | ||
| pic2_name = Whoooo | |||
| pic3 = Even alternativer | |||
| pic3_name = Third custom name | |||
| height = 120 | | height = 120 | ||
| description = Some cool text | | description = Some cool text | ||
| description2 = More amazing text! | | description2 = More amazing text! | ||
| description3 = Description 3 babyyy | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:07, 23 February 2023
Three pictures, with descriptions:
{{Infobox/image
| name = Picture 1
| pic2 = Alternative
| pic3 = Even alternativer
| height = 120
| description = Some cool text
| description2 = More amazing text!
}}
Three pictures, with custom tabbed names:
{{Infobox/image
| name = Picture 1
| pic_name = Templates {{Star}} work!
| pic2 = Alternative
| pic2_name = Whoooo
| pic3 = Even alternativer
| pic3_name = Third custom name
| height = 120
| description = Some cool text
| description2 = More amazing text!
| description3 = Description 3 babyyy
}}
