Vorlage:Asbox/Doku: Unterschied zwischen den Versionen
update - icon parameter is fine under the new parser, just needs a slight syntax change (which has now been applied to the template)
K (→icon or image) |
imported>Anakin101 (update - icon parameter is fine under the new parser, just needs a slight syntax change (which has now been applied to the template)) |
||
Zeile 13: | Zeile 13: | ||
====<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 name of the template | 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. | ||
====<code>pix</code>==== | ====<code>pix</code>==== | ||
Zeile 66: | Zeile 66: | ||
====Using <code>icon</code> and category1==== | ====Using <code>icon</code> and category1==== | ||
Using <code>icon</code> allows more flexibility in some circumstances than <code>image</code> and <code>pix</code>, since it can be used with templates: | |||
<pre><nowiki> | <pre><nowiki> | ||
{{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} | |||
{{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}| icon = Soccer icon | | icon = {{Soccer icon|Wales|50}} | ||
| subject = [[biography|biographical]] | | subject = [[biography|biographical]] | ||
| qualifier = related to Welsh [[football (soccer)]] | | qualifier = related to Welsh [[football (soccer)]] | ||
Zeile 82: | Zeile 83: | ||
Appears as: | Appears as: | ||
{{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}| icon = Soccer icon | {{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} | ||
| icon = {{Soccer icon|Wales|50}} | |||
| subject = [[biography|biographical]] | | subject = [[biography|biographical]] | ||
| qualifier = related to Welsh [[football (soccer)]] | | qualifier = related to Welsh [[football (soccer)]] |