Vorlage:Asbox/Doku: Unterschied zwischen den Versionen
(→pix) |
(→Usage) |
||
Zeile 6: | Zeile 6: | ||
==Usage== | ==Usage== | ||
This is a standard template for creating standard stub templates. It supports most stub template styles in place prior to 15:26, 26 September 2007 (UTC). | This is a standard template for creating standard stub templates. It supports most, if not all, stub template styles in place prior to 15:26, 26 September 2007 (UTC). | ||
===Parameters=== | ===Parameters=== | ||
Zeile 15: | Zeile 15: | ||
The standard implementation passes four default parameters through to this template to allow for future expansion. | The standard implementation passes four default parameters through to this template to allow for future expansion. | ||
====icon or image==== | ====<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 plus any arguments. | If the image is called with an icon template <code>icon</code> is set to the name of the template plus any arguments. 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 40. | ||
====pix==== | ====<code>pix</code>==== | ||
The size of the image, only ''required'' if <code>image</code> is set and is a size other than 40. [[Defensive programming]] suggests setting the value of <code>pix</code> even if it is 40. | The size of the image, only ''required'' if <code>image</code> is set and is a size other than 40. [[Defensive programming]] suggests setting the value of <code>pix</code> even if it is 40. | ||
====subject and qualifier==== | ====<code>subject</code> and <code>qualifier</code>==== | ||
This <subject> article <qualifier> is a stub... | This <code>subject</code> article <code>qualifier</code> is a stub... | ||
Examples: | Examples: | ||
Zeile 30: | Zeile 30: | ||
*This article '''about Rudolph the Red-nosed reindeer''' is a stub... | *This article '''about Rudolph the Red-nosed reindeer''' is a stub... | ||
====category==== | ====<code>category</code>==== | ||
The stub category the articles should go in. Note the template will only include articles in the stub category, unless the parameter <code>[[#tempsort]]</code> is set in which case templates (in particular the stub template itself) will also be included - sorted with the value of <code>tempsort</code>. | The stub category the articles should go in. Note the template will only include articles in the stub category, unless the parameter <code>[[#tempsort|tempsort]]</code> is set in which case templates (in particular the stub template itself) will also be included - sorted with the value of <code>tempsort</code>. | ||
====tempsort==== | ====<code>tempsort</code>==== | ||
The sort order for the template itself. If not specified the template will not be put in the stub category. | The sort order for the template itself. If not specified the template will not be put in the stub category. | ||