Vorlage:Asbox/Doku: Unterschied zwischen den Versionen

add simple usage
imported>Pegship
K (sp, punc)
imported>Thumperward
(add simple usage)
Zeile 1: Zeile 1:
<includeonly>{{pp-template|small=yes}}</includeonly>
{{documentation subpage}}
{{documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This is the '''asbox''' or '''article stub box''' meta template.
 
This is the '''asbox''' or '''article stub box''' meta template. This is a standard template for creating standard stub templates.  It supports most, if not all, stub template styles in place prior to 26 September 2007.  


It is used to create (but preferably '''not''' without consulting [[WP:WSS]]) or standardise existing ''article stub box'' templates.
It is used to create (but preferably '''not''' without consulting [[WP:WSS]]) or standardise existing ''article stub box'' templates.


This is a standard template for creating standard stub templatesIt supports most, if not all, stub template styles in place prior to 26 September 2007.  
=== Basic usage ===
 
<pre><nowiki>
{{ asbox
| image    = just the name of the image, e.g. Image.png - will be sized at 40x30px
| subject  = given before "article", e.g. "this *biographical* article is a stub"
| qualifier = given after "article" e.g. "the article *about a musician* is a stub"
| category = just the name of the category to place tagged pages in, e.g. History stubs
}}
</nowiki></pre>
 
This simple usage should suffice for a great many stub templates. Additional parameters are described below for advanced use.


=== Usage ===
=== Full usage ===
<pre><nowiki>
<pre><nowiki>
{{ asbox
{{ asbox
Zeile 81: Zeile 92:
:''(<code>category</code> has been over-ridden to keep this page out of the stub category)''
:''(<code>category</code> has been over-ridden to keep this page out of the stub category)''


====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. As of January 24, 2007, the new parser requires the <code>{{</code> and <code>}}</code> around the used template, and a single <code>|</code> is used instead of <code><nowiki>{{!}}</nowiki></code> to separate the parameters. Old code relying on <code><nowiki>{{!}}</nowiki></code> will need to be updated:
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. As of January 24, 2007, the new parser requires the <code>{{</code> and <code>}}</code> around the used template, and a single <code>|</code> is used instead of <code><nowiki>{{!}}</nowiki></code> to separate the parameters. Old code relying on <code><nowiki>{{!}}</nowiki></code> will need to be updated:


Zeile 107: Zeile 119:
:''(<code>category</code> and <code>category1</code> have been over-ridden to keep this page out of the stub categories)''
:''(<code>category</code> and <code>category1</code> have been over-ridden to keep this page out of the stub categories)''


==Whatlinkshere==
=== Whatlinkshere ===
 
The page [http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Template:Asbox/whatlinkshere&limit=5000&from=0 here] should have a complete list of all templates using this template.  This list can be compared with existing list of stub templates to identify new stub templates created out of process. '''The last entries will also be the most recently created items.'''
The page [http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Template:Asbox/whatlinkshere&limit=5000&from=0 here] should have a complete list of all templates using this template.  This list can be compared with existing list of stub templates to identify new stub templates created out of process. '''The last entries will also be the most recently created items.'''


== See also ==
=== See also ===
* [[Template talk:Asbox]]
 
* [[Wikipedia talk:WikiProject Stub sorting/Archive11#Stub template standardisation]]
* [[Wikipedia talk:WikiProject Stub sorting/Archive11#Stub template standardisation]]
* {{tl|Ambox}}
* {{tl|Ambox}}
Zeile 117: Zeile 130:


<includeonly>
<includeonly>
{{pp-template|small=yes}}
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
Anonymer Benutzer