模板:Tfm
本模板正考慮與[[Template:]]合併。 請在此討論以達成共識。
僅限維護使用: 1. 編輯日誌頁以創建討論串。 2. 請考慮在作者的討論頁中添加 {{subst:Tfmnotice|Tfm}} ~~~~通知他們。 |
本模板必須替換引用(使用{{subst:Tfm}} )。 |
This template is used to nominate other templates for merging.
Usage
To nominate a single template, copy and paste the following code at the top of the template:
{{subst:tfm|OtherTemplate}}
- Note: OtherTemplate should be replaced by the name of the other template to be merged, excluding the prefix
Template:
.
To nominate multiple templates for merging under the same header, type the following at the top of each individual template:
{{subst:tfm|OtherTemplate|heading=NameHeader}}
where NameHeader is the name of the header under which you will list the templates for merging.
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:Tfm|OtherTemplate|type=inline}}
The notification on articles looks like this: ‹本模板Tfm正考慮合併。›
Tiny
To use even smaller notifications, for inline template nominations, set |type=tiny
. Type the following
{{subst:Tfm|OtherTemplate|type=tiny}}
which will produce the following notification: ‹See Tfd›
Sidebar
To nominate templates that are used as sidebars, such as infoboxes, specify |type=sidebar
, i.e.
{{subst:Tfm|OtherTemplate|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:Tfm|OtherTemplate|type=disabled}}
which outputs nothing at all on article pages.