コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

利用者:新幹線/Template:Template for discussion

Template:Twinkle standard installation

This template is used to nominate a template for discussion.

Basic usage

[編集]

Substitute this template onto the template you wish to nominate, i.e. add the following code to the top of the template page and press save.

{{subst:Template for discussion}}

Nominating a group of templates

[編集]

To nominate multiple templates for deletion under the same heading, use the |heading= parameter to specify the heading under which the discussion is taking place. Type the following at the top of each individual template:

{{subst:Template for discussion|heading=HEADING}}

where HEADING is the name of the section heading under which you will list the templates for deletion.

Display on articles

[編集]

Unless you do something unusual such as enclosing in noinclude tags, articles that use the nominated template will provide a notification and link to the discussion. By default the article will show the following just above the display of the nominated template:

There are various other options, specified by the |type= parameter.

Inline

[編集]

To nominate inline templates, set |type=inline. This will help with formatting issues that occur when the large notification is displayed. Type the following:

{{subst:Template for discussion|type=inline}}

The notification on articles looks like this: ‹このテンプレート[[Template:{{{page}}}|{{{page}}}]])は[[{{{link}}}|削除が検討されています]]。› 

Tiny

[編集]

To use even smaller notifications, for inline template nominations, set |type=tiny. Type the following

{{subst:Template for discussion|type=tiny}}

which will produce the following notification: [[{{{link}}}|‹See TfD›]]

[編集]

To nominate templates that are used as sidebars, such as infoboxes, specify |type=sidebar, i.e.

{{subst:Template for discussion|type=sidebar}}

which produces:

You can alternatively use |type=infobox or |type=box to produce the same result.

Disabled

[編集]

Finally it is possible to disable the notification completely by typing |type=disabled. You can use this when everything else fails.

{{subst:Template for discussion|type=disabled}}

Which type should be used?

[編集]

For example, suppose that a template called {{Raisins}} outputs the link "dried grapes". Here's how it might appear in an article:

If the default type were to be inserted into the template, the following would result:

Note how this breaks up the paragraph containing the template. Using |type=inline instead generates the following result:

|type=tiny would look like this:

The decision of which type to use should be made on a case-by-case basis. In rare cases, where the insertion of any template is deemed too detrimental to a large number of articles, or if it breaks markup, it might be advisable to disable the notifications completely.

Categorisation

[編集]

Templates that transclude this template will be added to Category:Templates for deletion.

See also

[編集]
  • {{Tfm}} - the parallel template for merging
  • {{Tfd2}} - second step in a Tfd process
  • {{Tfdnotice}} - Tfd info on related pages
  • {{Catfd}} - Tfd with corresponding category
  • {{Catfd2}} - add corresponding category to second step in a Tfd process
  • {{Old TfD}} – document results of Tfd on talk pages