Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Image template notice/doc: Difference between revisions

Template page
template autotranslated
the English text speaks about one parameter, do the same in German; fix a default value and a parameter type
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|name=Image template notice
|1                  = 1
|1=1
|1d                = Template name if different from the category name
|1d=Name of template
  |1d-de              = Name der Vorlage, falls dieser vom Namen der Kategorie abweicht
|1stat=required
|1label            = template name
  |1label-de          = Vorlagen-Name
|1aliases          =  
|1type              = wiki-template-name
|1def              = <nowiki>{{PAGENAME}}</nowiki>
|1stat             = optional


|2=2
|2                 = 2
|2d=Template parameter
|2d                 = Template parameter needed to categorize in this specific category
|2stat=optional
  |2d-de              = Vorlagenparameter, wenn dieser zum Kategorisieren in diese Kategorie erforderlich ist
|2label            = parameter
  |2label-de          = Parameter
|2aliases          =
|2type              = line
|2def              =
|2stat             = optional-


|desc-en=Template for categories, that are autofilled with templates.
|3                  = condition
|namespace=Category
|3d                = Additional conditions for the parameter, displayed after the template invocation code; internationalize by hand if needed
|usergroup=all
  |3d-de              = Zusätzliche Bedingungen für den Parameter, die nach dem Aufrufcode der Vorlage angezeigt werden. Eine Internationalisierung ist bei Bedarf manuell erforderlich.
|placement=top
|3label            = condition
|usage-notes=
  |3label-de          = Bedingung
|type=license
|3aliases          =
|example=
|3type              = string
|i18n-method=autotranslate
|3def              =
|i18n-desc=
|3stat              = optional-
|seealso={{tl|Autocat}}
 
|setscats=
|4                  = ns
|lines=
|4d                = If non-empty, replaces “Files” with “Pages” (used by <nowiki>{{autocat}}</nowiki>)
|shorthand=
  |4d-de              = Wenn dieser Parameter nicht leer ist, wird „Dateien“ durch „Seiten“ ersetzt (dies findet Verwendung in <nowiki>{{autocat}}</nowiki>).
|relieson=
|4label            = non-file namespace
|useTemplateData=1
  |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

ParameterDescriptionDefaultStatus
1template nameTemplate name if different from the category name{{PAGENAME}}optional
2parameterTemplate parameter needed to categorize in this specific categoryemptyoptional
conditionconditionAdditional conditions for the parameter, displayed after the template invocation code; internationalize by hand if neededemptyoptional
nsnon-file namespaceIf non-empty, replaces “Files” with “Pages” (used by {{autocat}})emptyoptional
typembox typeFor another Mbox type than “notice”noticeoptional
imagerimage rightIf non-empty, add the second image to display on the right. E.g. [[File:No image template.svg|45x45px]]emptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

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
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Template for categories that are autofilled with templates.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
template name1

Template name if different from the category name

Default
{{PAGENAME}}
Templateoptional
parameter2

Template parameter needed to categorize in this specific category

Lineoptional
conditioncondition

Additional conditions for the parameter, displayed after the template invocation code; internationalize by hand if needed

Stringoptional
image rightimager

If non-empty, add the second image to display on the right.

Contentoptional
non-file namespacens

If non-empty, replaces “Files” with “Pages” (used by {{autocat}})

Lineoptional
mbox typetype

For another Mbox type than “notice”

Default
notice
Lineoptional

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.