Difference between revisions of "Template:Asbox/doc"
(→Usage) |
|||
| Line 7: | Line 7: | ||
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 stub template styles in place prior to 15:26, 26 September 2007 (UTC). | ||
| − | The standard implementation | + | |
| + | ===Parameters=== | ||
| + | ====Default parameter 1==== | ||
| + | Default parameter 1 overrides the sort order in the stub category. It is unlikely to be used much, as stub categories should be small and will often be sorted correctly by PAGENAME or DEFAULTSORT. | ||
| + | |||
| + | ====Default parameter 2-4==== | ||
| + | The standard implementation passes four default parameters through to this template to allow for future expansion. | ||
| + | |||
| + | ====icon or image==== | ||
| + | If the image is called with an icon template icon is set to the name of the template plus any arguments. | ||
| + | |||
| + | ====pix==== | ||
| + | The size of the image. | ||
| + | |||
| + | ====subject and qualifier==== | ||
| + | This <subject> article <qualifier> is a stub... | ||
| + | |||
| + | Examples: | ||
| + | |||
| + | *This '''geography''' article '''about a place in Rohan''' is a stub... | ||
| + | *This '''elementary physics''' article is a stub... | ||
| + | *This article '''about Rudolph the Red-nosed reindeer''' is a stub... | ||
| + | |||
| + | ====category==== | ||
| + | The stub category the articles should go in. | ||
| + | |||
| + | ====tempsort===== | ||
| + | The sort order for the template itself. If not specified the template will not be put in the stub category. | ||
| + | |||
| + | |||
| + | ===Example=== | ||
<pre><nowiki> | <pre><nowiki> | ||
| Line 34: | Line 64: | ||
| category = Østfold geography stubs | | category = Østfold geography stubs | ||
}} | }} | ||
| − | |||
==See also== | ==See also== | ||
Revision as of 11:47, 26 September 2007
Contents
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).
Parameters
Default parameter 1
Default parameter 1 overrides the sort order in the stub category. It is unlikely to be used much, as stub categories should be small and will often be sorted correctly by PAGENAME or DEFAULTSORT.
Default parameter 2-4
The standard implementation passes four default parameters through to this template to allow for future expansion.
icon or image
If the image is called with an icon template icon is set to the name of the template plus any arguments.
pix
The size of the image.
subject and qualifier
This <subject> article <qualifier> is a stub...
Examples:
- This geography article about a place in Rohan is a stub...
- This elementary physics article is a stub...
- This article about Rudolph the Red-nosed reindeer is a stub...
category
The stub category the articles should go in.
tempsort=
The sort order for the template itself. If not specified the template will not be put in the stub category.
Example
{{Asbox
{{#if:{{{1|}}}|{{!}}{{{1}}}|}}
{{#if:{{{2|}}}|{{!}}{{{2}}}|}}
{{#if:{{{3|}}}|{{!}}{{{3}}}|}}
{{#if:{{{4|}}}|{{!}}{{{4}}}|}}
| image = Ostfold_vapen.png
| pix = 30
| subject = [[Østfold]] location
| qualifier =
| category = Østfold geography stubs
}}
| 30px | This Østfold location article is a stub. You can help BDWiki by expanding it. |
See also
- {{Ambox}}