Template:Image template notice/doc: Difference between revisions
More actions
No edit summary |
the English text speaks about one parameter, do the same in German; fix a default value and a parameter type |
||
| (21 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | |||
|1 = 1 | |||
|1d = Template name if different from the category name | |||
|1d-de = Name der Vorlage, falls dieser vom Namen der Kategorie abweicht | |||
|1label = template name | |||
|1label-de = Vorlagen-Name | |||
|1aliases = | |||
|1type = wiki-template-name | |||
|1def = <nowiki>{{PAGENAME}}</nowiki> | |||
|1stat = optional | |||
|seealso={{ | |2 = 2 | ||
|setscats= | |2d = Template parameter needed to categorize in this specific category | ||
| | |2d-de = Vorlagenparameter, wenn dieser zum Kategorisieren in diese Kategorie erforderlich ist | ||
|shorthand= | |2label = parameter | ||
|relieson= | |2label-de = Parameter | ||
}} | |2aliases = | ||
|2type = line | |||
|2def = | |||
|2stat = optional- | |||
|3 = condition | |||
|3d = Additional conditions for the parameter, displayed after the template invocation code; internationalize by hand if needed | |||
|3d-de = Zusätzliche Bedingungen für den Parameter, die nach dem Aufrufcode der Vorlage angezeigt werden. Eine Internationalisierung ist bei Bedarf manuell erforderlich. | |||
|3label = condition | |||
|3label-de = Bedingung | |||
|3aliases = | |||
|3type = string | |||
|3def = | |||
|3stat = optional- | |||
|4 = ns | |||
|4d = If non-empty, replaces “Files” with “Pages” (used by <nowiki>{{autocat}}</nowiki>) | |||
|4d-de = Wenn dieser Parameter nicht leer ist, wird „Dateien“ durch „Seiten“ ersetzt (dies findet Verwendung in <nowiki>{{autocat}}</nowiki>). | |||
|4label = non-file namespace | |||
|4label-de = Nicht-Datei-Namensraum | |||
|4aliases = | |||
|4type = line | |||
|4def = | |||
|4stat = optional- | |||
|5 = type | |||
|5d = For another Mbox type than “notice” | |||
|5d-de = Falls andere Arten von Mbox-Typen als „notice“ Verwendung finden sollen. | |||
|5label = mbox type | |||
|5label-de = mbox-Typ | |||
|5aliases = | |||
|5type = line | |||
|5def = notice | |||
|5stat = optional- | |||
|6 = imager | |||
|6d = If non-empty, add the second image to display on the right. E.g. <code style="white-space:nowrap;"><nowiki>[[File:No image template.svg|45x45px]]</nowiki></code> | |||
|6d-de = Auf der rechten Seite kann ein zweites Bild angezeigt werden, beispielsweise <code style="white-space:nowrap;"><nowiki>[[File:No image template.svg|45x45px]]</nowiki></code>. | |||
|6d-td = If non-empty, add the second image to display on the right. | |||
|6d-td-de = Auf der rechten Seite kann ein zweites Bild angezeigt werden. | |||
|6label = image right | |||
|6label-de = rechtes Bild | |||
|6aliases = | |||
|6type = content | |||
|6def = | |||
|6stat = optional- | |||
|useTemplateData = 1 | |||
|name = Image template notice | |||
|desc = Template for categories that are autofilled with templates. | |||
|desc-de = Vorlage für Kategorien, die automatisch mittels Vorlagen hinzugefügt werden. | |||
|namespace = Category | |||
|usergroup = all | |||
|placement = top | |||
|usage-notes = | |||
|type = header | |||
|example = Example | |||
|i18n-method = autotranslate | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|seealso = * {{Tl|Autocat}} | |||
|setscats = | |||
|print = one | |||
|shorthand = | |||
|relieson = * [[Template:Mbox]] | |||
}}<includeonly> | |||
[[Category:Internationalised category header templates]] | |||
</includeonly> | |||
Latest revision as of 17:31, 21 July 2024
Template for categories that are autofilled with templates.
Usage
{{Image template notice |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name | Template name if different from the category name | {{PAGENAME}} | optional |
2 | parameter | Template parameter needed to categorize in this specific category | empty | optional |
condition | condition | Additional conditions for the parameter, displayed after the template invocation code; internationalize by hand if needed | empty | optional |
ns | non-file namespace | If non-empty, replaces “Files” with “Pages” (used by {{autocat}}) | empty | optional |
type | mbox type | For another Mbox type than “notice” | notice | optional |
imager | image right | If non-empty, add the second image to display on the right. E.g. [[File:No image template.svg|45x45px]] | empty | optional |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Template for categories that are autofilled with templates.
| |||||||||||||||||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: the Category namespace
The template is intended to be used by the following user groups: all users
Placement: At the top of the page
Relies on:
Example
{{Image template notice|Example}}
renders as:
See also
Localization
العربية ∙ беларуская (тарашкевіца) ∙ català ∙ čeština ∙ dansk ∙ Deutsch ∙ Deutsch (Sie-Form) ∙ Ελληνικά ∙ English ∙ español ∙ eesti ∙ فارسی ∙ suomi ∙ français ∙ galego ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ italiano ∙ 日本語 ∙ 한국어 ∙ Lëtzebuergesch ∙ latviešu ∙ македонски ∙ മലയാളം ∙ norsk bokmål ∙ Plattdüütsch ∙ Nederlands ∙ norsk ∙ polski ∙ português ∙ română ∙ русский ∙ sicilianu ∙ slovenčina ∙ slovenščina ∙ српски / srpski ∙ svenska ∙ Türkçe ∙ українська ∙ Tiếng Việt ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體)
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Image template notice/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:Image template notice/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.