Template:Top icon: Difference between revisions
(Created page with "<includeonly><nowiki />{{#tag:indicator|<span title="{{{texte|exemple de texte}}}">Fichier:{{{image|Fairytale bookmark.png}}}|{{{taille|20}}}px|link={{fullurl:{{{lien|Modèl...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><nowiki />{{#tag:indicator|<span title="{{{texte|exemple de texte}}}">[[Fichier:{{{image|Fairytale bookmark.png}}}|{{{taille|20}}}px|link={{fullurl:{{{lien|Modèle:Icône de titre}}}|{{{paramètre|}}}}}|alt={{{texte|exemple de texte}}}]]</span>|name={{{id|{{#switch:{{NAMESPACENUMBER}}|2|3={{{image|Fairytale bookmark.png}}} }} }}} }}<!-- | <includeonly><nowiki />{{#tag:indicator|<span title="{{{texte|exemple de texte}}}">[[Fichier:{{{image|Fairytale bookmark.png}}}|{{{taille|20}}}px|link={{fullurl:{{{lien|Modèle:Icône de titre}}}|{{{paramètre|}}}}}|alt={{{texte|exemple de texte}}}]]</span>|name={{{id|{{#switch:{{NAMESPACENUMBER}}|2|3={{{image|Fairytale bookmark.png}}} }} }}} }}<!-- | ||
-->{{#if:{{{id|}}}||[[Catégorie: | -->{{#if:{{{id|}}}||[[Catégorie:Pages utilisant une icône de titre sans identifiant]]}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 11:56, 14 September 2016
This is a metatemplate used to help build top icons, the little (usually 20x20 pixels) icons in the top-right area of user pages or articles. The template uses the page status indicator system.
Usage
{{Top icon | imagename = Image file to use as icon. | wikilink = The page to link to. This is where you will be taken when clicking the icon. | description = The tooltip will display this text when the mouse pointer hovers over the icon. | id = A unique id is required when using different top icons on the same page. }}
Extra options:
| sortkey = Allows ordering the icons according to the sortkey given. | width = Uses a different width for the images. Default is 20. | height = Uses a different height for the images. Default is 20. | usercat = Adds a category to be added in userspace. | maincat = Adds a category to be added in article mainspace. | subpage = For categorization on subpages (default = no). | nocat = Disables the automatically added category (default = no).
Top icons are automatically sorted for consistency in articles. For that reason, |sortkey=
should only be used in user top icons.
|width=
and |height=
are restrictive, meaning when one parameter is not set explicitly, the default acts as a maximum, even if the other parameter is set higher. To increase the overall size, both must be specified.
The following parameters are obsolete and no longer functional: |number=
, |icon_nr=
, |offset=
, |extra-offset=
, |class=
and |style=
.
The above documentation is transcluded from Template:Top icon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |