Vorlage:Smallimage: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
 
(35 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
{{#vardefine:img
 
{{#vardefine:img
|{{{1|Sanmen_daikoku.jpg}}}
+
|{{{1|ebisu.gif}}}
 
}}<!--
 
}}<!--
--><div class=smallimage><div class='imgBorder'>[[Bild:{{#var:img}}]]</div></div>
+
-->{{#vardefine: id | i_{{#regex: {{#regex: {{#var:img}} |/[^\.]+/}}|/ /|_}} }}<!-- 
 +
 
 +
Width
 +
 
 +
-->{{#vardefine:width
 +
| {{#if: {{{rw|}}} |{{!}}{{{rw|}}}px }} 
 +
}}<!-- 
 +
 
 +
Bildtext
 +
 
 +
-->{{#vardefine:text
 +
| {{#if: {{{2|}}}
 +
|<div class='bildtext''>{{#if: {{{ref|}}}|{{ref|bild={{{1|}}} }} }} {{{2|}}}</div>
 +
}}
 +
}}<!--
 +
 
 +
Link
 +
 
 +
-->{{#vardefine:link
 +
|{{#if:{{{nolink|}}}|{{!}}link{{=}} }}
 +
}}<!--
 +
 
 +
schreiben
 +
 
 +
--><div class=smallimage><div id={{#var:id}}>
 +
  <div class='imgBorder' style='{{{style|}}}>[[Bild:{{#var:img}}{{#var:link}}{{#var:width}}]]</div>
 +
  <div class='caption'>{{#var:text}}</div>
 +
</div></div><!--
 +
 
 +
CSS
 +
 
 +
-->{{#css:
 +
.smallimage div {
 +
    width: fit-content;
 +
    margin: auto;
 +
}
 +
{{#if: {{{nolink|}}}
 +
| #{{#var:id}} .imgBorder {
 +
border:0;
 +
box-shadow: 0 0 0 0;
 +
}
 +
}}
 +
{{#if: {{{float|}}}
 +
| #{{#var:id}} {
 +
float:{{{float|}}};
 +
{{#switch: {{{float|}}}
 +
| right =  margin-left: 1em;
 +
| left = margin-right:  1em;
 +
}}
 +
}
 +
}}
 +
}}
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {},
 +
"2": {},
 +
"rw": {},
 +
"ref": {},
 +
"nolink": {},
 +
"float": {},
 +
"style": {}
 +
}
 +
}
 +
</templatedata>
 +
</noinclude>

Aktuelle Version vom 7. Januar 2023, 17:52 Uhr

Ebisu.gif

Keine Beschreibung.

Vorlagenparameter

ParameterBeschreibungTypStatus
11

keine Beschreibung

Unbekanntoptional
22

keine Beschreibung

Unbekanntoptional
Rwrw

keine Beschreibung

Unbekanntoptional
Refref

keine Beschreibung

Unbekanntoptional
Nolinknolink

keine Beschreibung

Unbekanntoptional
Floatfloat

keine Beschreibung

Unbekanntoptional
Stylestyle

keine Beschreibung

Unbekanntoptional