Vorlage:Asbox/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
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)]]

Version vom 24. Januar 2008, 18:03 Uhr

Vorlage:Template doc page viewed directly This is the asbox or article stub box meta template.

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

Usage

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 (UTC).

Parameters

Default parameters 1-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 full syntax of the template; that's the name of the template, plus any arguments (separated with | ), including the {{ and }} around it. If the image is called explicitly image is the name of the image :- pix will likely be required as well, the default value for pix is 40x30.

pix

The size of the image, only required if image is set and is a size not cromulent with 40x30. Defensive programming suggests setting the value of pix even if it is 40x30.

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. Note the template will only include articles in the stub category, unless the parameter tempsort is set in which case templates (in particular the stub template itself) will also be included - sorted with the value of " " (space) followed by tempsort.

tempsort

If exists the template will be put in it's own category sorted as " " (space) followed by tempsort.

category1

An optional second stub category the articles should go in. Note the template will only include articles in the stub category, unless the parameter tempsort1 is set in which case templates (in particular the stub template itself) will also be included - sorted with the value of " " (space) followed by tempsort1.

tempsort1

If exists the template will be put in it's own second category sorted as " " (space) followed by tempsort1.

note

If exists the value will be added, as a "small" note, to the stub template.

Examples

Using image

{{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}| image     = Ostfold_vapen.png
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

Appears as:

Based on {{Østfold-geo-stub}}

(category has been over-ridden to keep this page out of the stub category)

Using icon and category1

Using icon allows more flexibility in some circumstances than image and pix, since it can be used with templates:

{{Asbox |{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}
 | icon      = {{Soccer icon|Wales|50}}
 | subject   = [[biography|biographical]]
 | qualifier = related to Welsh [[football (soccer)]]
 | category  = Welsh football biography stubs
 | category1 = Welsh people stubs
 | tempsort  = 
 | note      = This stub template is deprecated.      
}}

Appears as:

Based on {{Wales-footy-bio-stub}}

(category has been over-ridden to keep this page out of the stub category)

Whatlinkshere

The page 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.

See also