Modèle:Image with text : Différence entre versions
[version non vérifiée] | [version non vérifiée] |
Ligne 1 : | Ligne 1 : | ||
− | <div style="{{{3}}} solid 1px; float:{{{4}}}; padding:5px 10px; margin-top:0.3em; margin-bottom:0.2em; margin-{{#ifeq: {{{4}}} | left | right | left}}:1em; text-align:center; {{Font/Remark}}" | + | <div style="{{{3}}} solid 1px; float:{{{4}}}; padding:5px 10px; margin-top:0.3em; margin-bottom:0.2em; margin-{{#ifeq: {{{4}}} | left | right | left}}:1em; text-align:center; {{Font/Remark}}" |
float {{{5}}}; | float {{{5}}}; | ||
− | {{{5}}} = pathinfo({{{1}}}); | + | {{{5}}} = pathinfo({{{1}}});> |
if({{{5}}}['extension'] == .png){ | if({{{5}}}['extension'] == .png){ | ||
[[Image:{{{1}}}.jpg]]} | [[Image:{{{1}}}.jpg]]} |
Version du 18 octobre 2016 à 12:11
if({{{5}}}['extension'] == .png){
[[Image:{{{1}}}.jpg]]}
else{
[[Image:{{{1}}}.jpg]]}
{{{2}}}
Sinn
This collecting main represents a picture and a small text within a framework, which can be flowed around on the right of or left of the text remaining. It is meant Example: for the use with Questdescription.
Application
{{
Image with text|Imagename|Description|Color code for the background and the framework color or collecting main name|left or right}}
The color codes in this form:
- background:#000000; border:#FF0000
Importantly: only 1 semicolon behind the background attribute