Шаблон:Cargo

Материал из Infernum Mod Wiki
Перейти к навигации Перейти к поиску
Этот шаблон интернационализирован (i18n) — это означает, что его легко переводить на другие языки.
Для более подробной информации см. шаблоны i18n и l10n (англ.)
Перевести этот шаблон можно на странице «Шаблон:Cargo/l10n».
Template-info.svg Documentation Документация, указанная ниже, находится на странице «Шаблон:Cargo/doc». (править | история)
См. также этот шаблон на английском языке: Template:Cargo. В нём может содержаться более полная или подробная информация.

This template displays a notice about the usage of the MediaWiki Cargo extension of a template. It is to be placed in the template's source code, in front of {{doc}}.

If the template uses the {{#cargo_declare:}} and/or {{#cargo_attach:}} calls, they are to be put in the template's unnamed parameters.

Usage

{{ cargo | <cargo parser function calls> | query<n> = <cargo table name> | nocat = y/yes/1 }}

First/second unnamed parameter

{{#cargo_declare:}} and/or {{#cargo_attach:}} calls, if necessary for the template.

query1/query2/etc.

Names of cargo tables queried by the template, can be continued infinitely.

nocat

Prevents the categorization of the template in Category:Templates using Cargo, which is enabled by default.

Examples

Code Result
{{cargo|query1=Imageinfo|query2=Foobar}}
Этот шаблон использует расширение Cargo.
Этот шаблон использует Расширение:Cargo — неотъемлемую часть серверной части вики.
  • Этот шаблон запрашивает таблицу «Imageinfo». Просмотр таблицы.
  • Этот шаблон запрашивает таблицу «Foobar» (таблица не существует).
{{cargo|{{#cargo_attach:_table=Imageinfo}}|query1=Foobar}}
Этот шаблон использует расширение Cargo.
Этот шаблон использует Расширение:Cargo — неотъемлемую часть серверной части вики.
  • This template adds rows to the table "Imageinfo", which is declared by the template Image. View table.
  • Этот шаблон запрашивает таблицу «Foobar» (таблица не существует).
{{cargo|{{#cargo_declare:_table=Foobar|...}}|{{#cargo_attach:_table=Imageinfo}}}}
Этот шаблон использует расширение Cargo.
Этот шаблон использует Расширение:Cargo — неотъемлемую часть серверной части вики.
  • This template defines the table "Foobar". View table.
  • This template adds rows to the table "Items", which is declared by the template Image. View table.