Zum Inhalt springen

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)
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 [''Deprecated, does not work with the new preprocessor: "plus any arguments (separated with {{tl|!}} ''qv'' not |)"'']. 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. 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====
:'''''Deprecated, does not work with the new preprocessor.'''''
 
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{{!}}Wales{{!}}50
| 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{{!}}Wales{{!}}50
{{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)]]
Anonymer Benutzer