Zum Inhalt springen

Vorlage:Asbox/Doku: Unterschied zwischen den Versionen

→‎icon or image: adding imagealt param
K (sortkey)
(→‎icon or image: adding imagealt param)
Zeile 31: Zeile 31:
===Parameters===
===Parameters===
====<code>icon<code> or <code>image</code>====
====<code>icon<code> or <code>image</code>====
If the image is called with an icon template, <code>icon</code> is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with '''|''' ), including the <code>{{</code> and <code>}}</code> around it. If the image is called explicitly <code>image</code> is the name of the image :- <code>pix</code> will likely be required as well, the default value for <code>pix</code> is 40x30.
If the image is called with an icon template, <code>icon</code> is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with '''|''' ), including the <code>{{</code> and <code>}}</code> around it. Icon can also be used to provide the full image markup (include the opening and closing square brackets), if special image settings such as "border" are to be used. If the image is called explicitly <code>image</code> is the name of the image :- <code>pix</code> will likely be required as well, the default value for <code>pix</code> is 40x30.
 
<code>imagealt</code> may be used to override the default [[WP:Alternate text for images|alt text]] which is set to "Stub icon".


====<code>pix</code>====
====<code>pix</code>====
Anonymer Benutzer