This template is rated as alpha. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This template uses TemplateStyles: |
Emits an icon, symbol, or text decoration for a given attribute of an article. This is geared towards WikiProject lists or tables which may want to economically and easily decorate article names with icons displaying some of its attributes. Lightweight tokens are available instead of icon images for pages with heavy usage.
{{aad|type|ArticleName}}
{{aad|type|ArticleName|raw=y|style=css string}}
There are two positional parameters, both required (both with a named alias) and one optional named parameters:
|1=
– a token that identifies an article attribute like aq
(for article quality), or redir
(for redirect); full list
below; (alias type
)|2=
– name of the article whose attribute specified in param 1 should be displayed; (alias article
)|style=
– if present, appends user-defined style to the end of the predefined stylesheet.Parameter values for type come in two flavors; the regular ones just following, which cause a small, inline image to be emitted, such as the
icon emitted for a page which is a redirect, when |1=redirect
is chosen. Lightweight (non-image, character-based) tokens are available at the bottom of this section.
redirect
–
displayed if the article name is a redirect (aliases: r
, red
)quality
– article assessment quality symbol
, ,
,
,
,
(stub) displayed for the article. (param aliases: aq
, rating
, assessment
)length
– article length bar, such as (alias: len
)poss
– applies to redirects designated as being a likely
notable topic and having
possibilities of expansion into a standalone article; (aliases: possibilities
, N
, notable
, notability
)contentious
– displays for articles whose Talk page contains one of the
Contentious topics templates (or the old Ds templates). (alias: cont
)protection
– protection level icon: , , , and for
unprotected,
semi-protected,
extended protected, and
full protection, respectively. (param aliases:p
, prot
, padlock
)Lightweight param values that display from one or two characters instead of an image are available, for pages containing heavy use of this template where the total size of all the icon images might be a problem; (the length field may be up to 7 characters, e.g. '123,456'):
redirectraw
– Ⓡ displayed if the article name is a redirect (aliases: rraw
, redraw
)qualityraw
– article assessment quality token (FA, GA, A, B, C, stub) is displayed for the article. (param aliases: aqraw
, ratingraw
)lengthraw
– actual article length in bytes displayed; (alias: lenraw
)possraw
– Ⓝ redirect with possibilities; (aliases: possraw
, Nraw
, notableraw
)contentiousraw
– displays ✸ for articles on
Contentious topics . (alias: contraw
)protraw
– protection level tokens ( 🔒, 🔒‼, 🔒‼!) displayed: for , semi-protected, extended protected, and fully protected , respectively. (param aliases:praw
, protraw
,protectionraw
, padlockraw
)If the article passed in param |2=
is a redirect, the icon displayed is that which corresponds to the attribute of the article targeted by the redirect. So for example, if you request the length of German people
, the icon returned will be for the length of the article "Germans", not the length of the redirect page "German people". The only exception is for |type=redirect
, which tests the page name you pass, not the page it redirects to.
If you want all possible types, use {{
Aad/all}}
.
If this page has been recently modified, it may not reflect the most recent changes. Please purge this page to view the most recent changes. |
Click [show] to view examples.
|
---|
|