• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Tfm/sandbox

  • Language
  • Watch
  • View source
< Template:Tfm
This template is being considered for merging with [[]]. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus.
Maintenance use only:
1. Edit the TfD log to create the discussion entry.
2. Please consider notifying the author(s) by placing {{subst:Tfm notice|Tfm/sandbox}} ~~~~ on their talk page(s).
__EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Tfm (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template should always be substituted (i.e., use {{subst:Tfm}}).
__EXPECTUNUSEDTEMPLATE__
Logo of Twinkle; Police ManIf you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you!
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify XFDcloser's users and maintainers at Wikipedia talk:XFDcloser as a courtesy, as this template is used in the standard installation of XFDcloser. Thank you!

{{Wikipedia:Article alerts/Bot use warning}}

This template is used to nominate other templates for merging.

Contents

  • 1 Usage
  • 2 Display on articles
    • 2.1 Inline
    • 2.2 Tiny
    • 2.3 Sidebar
    • 2.4 Disabled
  • 3 See also

Usage

To nominate a single template, copy and paste the following code at the top of the template:

<syntaxhighlight lang="wikitext">{{subst:tfm|OtherTemplate}}</syntaxhighlight>

  • Note: OtherTemplate should be replaced by the name of the other template to be merged, excluding the prefix Template: (or Module:).


To nominate multiple templates for merging under the same header, type the following at the top of each individual template:

<syntaxhighlight lang="wikitext">{{subst:tfm|OtherTemplate|heading=NameOfHeading}}</syntaxhighlight>

where NameOfHeading is the name of the section heading under which you will list the templates for merging at TfD. You can also spell this |header=.

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:

‹ The template below (Tfm) is being considered for merging. See templates for discussion to help reach a consensus. ›

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: <syntaxhighlight lang="wikitext">{{subst:Tfm|OtherTemplate|type=inline}}</syntaxhighlight> The notification on articles looks like this: ‹The template Tfm is being considered for merging.› 

Tiny

To use even smaller notifications, for inline template nominations, set |type=tiny. Type the following <syntaxhighlight lang="wikitext">{{subst:Tfm|OtherTemplate|type=tiny}}</syntaxhighlight> which will produce the following notification: ‹See TfM›

Sidebar

To nominate templates that are used as sidebars, such as infoboxes, specify |type=sidebar, i.e. <syntaxhighlight lang="wikitext">{{subst:Tfm|OtherTemplate|type=sidebar}}</syntaxhighlight> which produces:

‹ The template Tfm is being considered for merging. ›

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. <syntaxhighlight lang="wikitext">{{subst:Tfm|OtherTemplate|type=disabled}}</syntaxhighlight> which outputs nothing at all on all transclusions of the template.

See also

  • {{subst:Tfd}} – the parallel template for deletion
  • {{subst:Tfr|NewProposedName}} – the parallel template for renaming, when WP:TFD is the right process for the rename
  • {{subst:Tfm|OtherTemplateName}} – basic TfM template (use at the template)
  • {{subst:Tfm2}} – second step in a TfM process (use at WP:TFD daily log page)
  • {{subst:Tfm notice|OtherTemplateName}} – to leave a notification at the template creator's talk page or other relevant pages
The above documentation is transcluded from Template:Tfm/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Tfm/sandbox&oldid=1693776"
Last edited on 5 March 2023, at 13:47

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 5 March 2023, at 13:47.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop