Шаблон:Modeling/doc — различия между версиями

Материал из SRNS
Перейти к: навигация, поиск
(Использование)
(Информационные параметры)
Строка 108: Строка 108:
 
| <span id="changelog">changelog</span>|| Ссылка на CHANGELOG-файл
 
| <span id="changelog">changelog</span>|| Ссылка на CHANGELOG-файл
 
|-
 
|-
| <span id="category">tags</span> || Категории, к которым можно отнести модель. Например, <code>Коррелятор</code>.
+
| <span id="repository">'''repository'''</span>|| Ссылка на репозиторий
 +
|-
 +
| <span id="category">category</span> || Категории, к которым можно отнести модель. Например, <code>Коррелятор</code>.
 
|}
 
|}
  

Версия 21:05, 23 апреля 2011

Template:Modeling


Содержание

Назначение

Этот шаблон должен добавляться на каждую страницу, описывающую ту или иную компьютерную модель. Он добавляет полезный инфобокс с общим описанием модели и автоматически добавляет страницу в категории Моделирование и Список всех моделей. Дополнительные категории можно указать с помощью набора параметров category.

Использование

Скопировать и вставить на свою страницу:

{{Modeling|templatemode =
|name          = 
|status        = stable
|username      = 
|author        = 
|description   = 
|image         = 
|imagesize     = 250
|version       = 
|update        = 
|download      = 
|readme        = 
|changelog     = 
|repository    = 
|category1     = 
|category2     = 
|category3     = 
|category4     = 
|category5     = 
|category6     = 
|category7     = 
|category8     = 
|category9     = 
|category10    = 
|category11    = 
|category12    = 
}}

Описание каждого параметра приведено ниже.

Список всех моделей
Crystal Clear action run.png
{{{name}}}
[[Image:{{{image}}}|250px]]
Описание {{{description}}}
Автор(ы) {{{author}}} ([[User:{{{username}}}|{{{username}}}]][[User talk:{{{username}}}|обсуждение]])
Последняя версия {{{version}}} ({{{update}}})
Загрузить {{{download}}}
{{{readme}}}
{{{changelog}}}
Хранилище {{{repository}}}


Информационные параметры

В данном разделе описаны параметры, задающие содержимое инфобокса. Информация по параметру templatemode и другим управляющим параметрам приведена в разделе Управляющие параметры.

Информационные параметры
name Название модели
status Степень отладки программы: stable или unstable
Имя wiki-пользователя, то имя, которое Вы используете при авторизации
author Имя автора в произвольной форме
description Описание модели
image Логотип, скриншот или любое другое изображение. Указывается без namespace типа File: и без скобок [[]].
imagesize Размер изображения в инфобоксе (по умолчанию 220px)
version Последняя версия модели
update Дата последнего обновления модели
download Ссылка на скачивание архива с моделью, например Zip-архив
readme Аналогичная ссылка на README-файл
changelog Ссылка на CHANGELOG-файл
repository Ссылка на репозиторий
category Категории, к которым можно отнести модель. Например, Коррелятор.

Control parameters

Control parameters
templatemode Controls auto-categorization of host page.

Normally left blank. Alternate values are:

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


If this is left blank, this template will add the host page to Category:All extensions and to one or more additional categories, depending on the values assigned to the Content parameters.

Using the infobox

Existing extension pages

If you want to add the infobox to an existing page, copy and paste the code at the top of this page.

Create a new extension article

If you want to create a new extension page, enter the name below and click the button. A new page will be created with the infobox template already in place.




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:

Fixing documentation

If you would like to fix documentation, please be aware that documentation and code is split into two files:

  • Template:Modeling/doc - stores all documentation.
  • Template:Modeling - stores only the code for the template and a small amount of non-included material (category links, transcluded documentation link).


In addition, Template:Modeling/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 Template:Modeling/doc.

The Create Modeling button

To improve the create extension 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.


To change/correct/add to the implementation type parameters:


To change the behavior of the hook parameters:

Персональные инструменты
Пространства имён

Варианты
Действия
SRNS Wiki
Рабочие журналы
Приватный файлсервер
QNAP Сервер
Инструменты