Template for template documentation pages to indicate dependencies of a template, such as the presence of CSS or JavaScript snippets. This helps maintainers who are unfamiliar with a template's working to learn how a template works when it needs fixing, deprecating, or extension.
Utilisation
{{Dépendances de modèle|css=[[MediaWiki:Common.css]]|js=[[MediaWiki:Common.css]]}}
Paramètres
css
The file name(s) where the associated CSS source code is written.
js
The file name(s) where the associated JS source code is written.
importjs
The name(s) of the ImportJS scripts that this template relies on.
Exemples
{{Dépendances de modèle|css=[[MediaWiki:Common.css]]|js=[[MediaWiki:Common.css]]|importjs=ArchiveTool et DiscussionsFeed}}
results in
![]() |
Ce modèle est basé sur du CSS
|
---|
![]() |
Ce modèle est basé sur du JavaScript
|
---|
![]() |
Ce modèle est basé sur des scripts ImportJS.
ArchiveTool, DiscussionsFeed
|
---|