Modèle:Image with text : Différence entre versions

[version non vérifiée][version vérifiée]
 
(10 révisions intermédiaires par 3 utilisateurs non affichées)
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}}};
+
[[Image:{{{1}}}.jpg|30px]]<br />{{{2}}}
{{{5}}} = pathinfo({{{1}}});>
 
if({{{5}}}['extension'] == .png){
 
[[Image:{{{1}}}.jpg]]}
 
else{
 
[[Image:{{{1}}}.jpg]]}<br />{{{2}}}
 
 
</div><noinclude>
 
</div><noinclude>
 
=== Sinn ===
 
=== Sinn ===
Ligne 19 : Ligne 14 :
  
 
<span style="{{Font/Remark}}">'''Importantly:''' only 1 semicolon behind the background attribute</span>
 
<span style="{{Font/Remark}}">'''Importantly:''' only 1 semicolon behind the background attribute</span>
 
[[Category:Formattemplates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Version actuelle datée du 25 novembre 2021 à 00:35

[[Image:{{{1}}}.jpg|30px]]
{{{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