Template:Skin

Issue-Tracker: [[phab:tag/{{{phabricator}}}/|#{{{phabricator}}}]]
From mediawiki.org
This page is a translated version of the page Template:Skin and the translation is 50% complete.
Outdated translations are marked like this.
Vorlagendokumentation

Diese Vorlage sollte allen Skin-Seiten in diesem Wiki (aber nur der Hauptseite) hinzugefügt werden, um ein Informationsfeld anzuzeigen und die Skin zu kategorisieren.

Verwendung

Kopieren und Einfügen:

{{Skin|templatemode =
|name                 = 
|localised name       = 
|status               = 
|hook1                = 
|hook2                = 
|newhook1             = 
|newhook2             = 
|username             = 
|author               = 
|description          = 
|image                = 
|imagesize            = 
|version              = 
|update               = 
|version preview      = 
|update preview       = 
|compatibility policy =
|mediawiki            = 
|php                  = 
|composer             =
|license              = 
|download             = 
|readme               = 
|changelog            = 
|example              = 
|parameters           = 
|compatibility        = 
|bugzilla             = 
|phabricator          =
|vagrant-role         =
}}

Für Hilfe bei den Parameterwerten, siehe unten.

MediaWiki-Skins-Handbuch - Kategorie
{{{localised name}}}
Freigabestatus: unbekannt
Beschreibung {{{description}}}
Autor(en) SomeAuthor
Neuste Version {{{version}}} ({{{update}}})
Letzte Vorschauversion {{{version preview}}} ({{{update preview}}})
Compatibility policy ungültig
MediaWiki {{{mediawiki}}}
PHP {{{php}}}
Composer {{{composer}}}
Lizenz {{{license}}}
Herunterladen {{{download}}}
{{{readme}}}
{{{changelog}}}
Beispiel {{{example}}}
Parameter
{{{parameters}}}
{{{compatibility}}}
Übersetze den Skin skin wenn es auf translatewiki.net verfügbar ist
Vagrant-Rolle {{{vagrant-role}}}
Probleme : [[phab:tag/{{{phabricator}}}|Offene Aufgaben]] · Einen Fehler melden

Inhalts-Parameter

In diesem Abschnitt werden Parameter beschrieben, die den Infobox-Inhalt steuern. Hilfe zu templatemode und anderen Steuerparametern finden Sie unter Steuerparameter.

Content parameters
Parameter Description
namename of the skin
localised name source text for localising name of the skin

Specify the same value as name.

Es wird später für die Lokalisierung des Namens verwendet.
statuscurrent release status

One of:

  • unstable - currently broken - do not use this skin in the latest MediaWiki version.
  • experimental - early stages of development, may change drastically
  • beta - stable but not fully tested
  • stable - stable - the skin works in the latest MediaWiki version without any fatal errors.
  • unmaintained - unmaintained - only use if the linked repository is archived or the maintainer has not responded to an enquiry about the maintained status. If using this status, please link to a patch or issue/bug report as a reference using an HTML comment. If the skin is broken use unstable instead.
  • unknown - default

If the status is anything other than the above, it will be ignored and the default value of 'Unknown' will be displayed in the template instead.

hook1
hook2
hook3
hook4
...
hook90
Name jedes von der Erweiterung verwendeten Hakens

Die Eingabe von Werten in dieses Feld ist eine gute Möglichkeit, Ihre Erweiterung bekannt zu machen und anderen Entwicklern zu helfen. Jeder dokumentierte Hook fügt die Erweiterung automatisch einer Kategorie hinzu, in der Erweiterungen aufgelistet sind, die diesen Hook verwenden. Diese Kategorie wird automatisch mit jedem Hook-Artikel verknüpft, sodass Programmierer leicht Beispiele für Erweiterungen finden können, die einen bestimmten Hook verwenden.

Für built-in hooks:

  • Verwenden Sie nur den Hook-Namen. Die Werte finden Sie im $manual (lassen Sie jedoch das einleitende '/' weg)..
  • use the hook name alone.
Please see Manual:Hooks for values (but omit introductory '/').

Für benutzerdefinierte Hooks, die durch Erweiterungen definiert sind:

  • benutze $form. Eine unvollständige Liste der benutzerdefinierten Hooks finden Sie unter $exthooks.
  • use extensionName/hookName.
For a partial list of custom hooks, see Extension hook registry.

Weisen Sie bei mehreren Hooks den ersten Hook hook1, den zweiten Hook hook2 usw. zu.

newhook1
newhook2
newhook3
newhook4
...
newhook90

Name jedes Hakens, der von der Erweiterung bereitgestellt wird

Möglicherweise möchten Sie die Hooks auch zu Extension hook registry hinzufügen.

username The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. It should be provided without namespace and without [[]]s.
author The skin author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present).
description short description
image screenshot or logo of skin. It should be provided without namespace and without [[]]s.
imagesize facultative, size of the image (default size is 220px)
version last version
updatedate of the last update
compatibility policy compatibility policy (accepted values are master, rel and ltsrel). (backlog )
mediawikirequired version of MediaWiki
phprequired version of PHP
licenselicense(s) governing use of this skin, e.g. GPL
downloadlink to the download: Use {{WikimediaDownloadSkin}} or {{GithubDownload}}.
readmeexternal link to the readme file
changelogexternal link to the changelog file
parametersavailable parameters for LocalSettings.php
exampleexample, website or screenshot of working skin
compatibilitycompatibility chart
bugzillaBugzilla MediaWiki skin component name

Einschränkungsparameter

Control parameters
Parameter Description
templatemodeControls auto-categorisation of host page.

Normally left blank. Alternate values are:

  • nocats - suppresses categorisation. Use this value if you are adding this template to subpages of a skin or to how-to documentation of skins. For example, the usage image above sets templatemode=nocats because this isn't an actual skin page and we don't want to add this page to any categories on account of it.

Wenn dies leer gelassen wird, fügt diese Vorlage die Hostseite zu Kategorie:Alle Benutzeroberflächen und zu einer oder mehreren zusätzlichen Kategorien hinzu, abhängig von den Werten, die den Inhaltsparametern zugewiesen sind.

subpage; it is not in the Skin: namespace; or if suppressed by 'templatemode=nocats'

Categories added

This template will automatically add the pages it is used on to the Category:All skins category.

In addition, it will categorise the page based on the value of the status parameter:

Benutzung der Infobox

Vorhandene Skin-Seiten

Wenn Sie die Infobox zu einer vorhandenen Seite hinzufügen möchten, kopieren Sie den Code und fügen Sie ihn oben in oben auf dieser Seite ein.

Neuen Skinartikel erstellen

Wenn Sie eine neue Skin-Seite erstellen möchten, geben Sie den folgenden Namen ein und klicken Sie auf die Schaltfläche. Eine neue Seite wird mit der bereits vorhandenen Infobox-Vorlage erstellt.

Please replace "TheSkin" with your skin's name:


MediaWiki is an open-source project and users are encouraged to make any MediaWiki skins under an Open Source Initiative (OSI) approved GPLv2 compatible license (including MIT, BSD, PD). For skins that have a compatible license, you can request commit access to the MediaWiki source repository for skins.

A developer sharing their code in the code repository should expect:

Feedback / Criticism / Code reviews
Review and comments by other developers on things like framework use, security, efficiency and usability.
Developer tweaking
Other developers modifying your submission to improve or clean-up your code to meet new framework classes and methods, coding conventions and translations.
Future versions by other developers
New branches of your code being created by other developers as new versions of MediaWiki are released.
Credit
Credit for your work being preserved in future versions
Similarly, you should credit the developers of any skins whose code you borrow from.

Any developer who is uncomfortable with any of these actions occurring should not host their code in the code repository. You are still encouraged to create a summary page for your skin on the wiki to let people know about the skin, and where to download it.

Enhancing this template

If you would like to improve on this template, thanks!

This is a complicated template so here is some help along the way:

In addition, Template:Skin/Sample stores the boiler plate that is preloaded into newly created pages and contains some basic documentation on how to fill in the template parameters.

It needs to be kept in sync with the documentation.

The Create skin button

To improve the create skin button behavior:

Infobox parameters

In general:

  • To make this template easy to use, each label in the infobox is linked to documentation on the template parameter(s) it displays. If you add a parameter, please be sure to also add it to the content parameter documentation and link its label to that documentation.

Test cases

See if the following pages are still ok, after editing this template.