Template:Deploy

From Wikitech
  • See {{Deploy}} for usage.
    Template documentation

Usage

On Deployments, add this template to a deployment window under the what= parameter of {{Deployment calendar event card}}, headed with your {{ircnick}}.

Example

Wikitext

{{ircnick|TheresNoTime|Sammy}}
{{deploy|type=config|gerrit=951042|title=IS: Enable Phonos on all projects|status=}}

Output

Sammy (TheresNoTime)

Example 2

Wikitext

{{ircnick|TheresNoTime|Sammy}}
{{deploy|type=config|gerrit=951042|title=IS: Enable Phonos on all projects|status=d|by=TheresNoTime}}

Output

Sammy (TheresNoTime)

HTML

This template adds the following div/spans, which can be used to programatically parse the page;

  • <div class="deploy-item"></div> around each instance of the template.
  • <span class="deploy-type"></span> around the change |type=
  • <span class="deploy-title"></span> around the change |title=

Selecting parameters via CSS selectors

  • Change type: .deploy-item .deploy-type
  • Change title: .deploy-item .deploy-title
  • Gerrit change ID: .deploy-item .plainlinks a.external.text (first result) or get the data-gerrit-id (added) attribute from .deploy-item .plainlinks
  • Deployment status: Get the alt attribute from .deploy-item img
  • Change owner: Something like $('.deploy-item').prev('p').find('span.ircnick'); I guess?

TemplateData

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Change typetype

Change type for this deployment patchset

Suggested values
config wmf.23 wmf.24
Example
config
Stringrequired
Gerrit changeset IDgerrit

The Gerrit patchset ID

Numberrequired
Change titletitle

The title of the patchset

Stringrequired
Deployment statusstatus

Deployment status of this patchset. When not set, defaults to pending

Suggested values
d done deployed nd not done not deployed
Stringoptional
Deployed byby

Who the patchset was deployed (or not deployed) by

Example
TheresNoTime
Stringoptional