Jump to content

Help:TemplateData/テンプレートを探す

From mediawiki.org
This page is a translated version of the page Help:TemplateData/Template discovery and the translation is 56% complete.
Outdated translations are marked like this.
The template discovery interface in TemplateWizard. It looks the same in VisualEditor.

テンプレートを探すとき、登録利用者ならTemplateData テンプレート発見機能(template discovery features)を使うと複数の方法があり、また お気に入りに登録したり除去したりできるし、ウィキ管理者の皆さんなら注目のテンプレートの一覧を作成することも可能です。

これらの機能は(テンプレートウィザード経由で)ウィキ文編集機能 と、ビジュアル編集機能で利用できます。また拡張機能やガジェット開発者の皆さんは、再利用可能なテンプレート検索ウィジェット を使うと、これら機能をメディアウィキの他の部分に統合も可能です。

お気に入りテンプレート

お気に入りの保存先は利用者設定であり、形式は(ページ題名ではなく)ページ識別子 を使います。つまりテンプレートが移動されると(改名手順)、利用者のお気に入りというステータスも一緒に移されます。

テンプレートを探したり選択する方法は?

テンプレート検索ウィジェットを使うときには、選択肢が次のようにいくつかあります。

  • 検索欄にキーワードを入力して探す方法。
  • 検索ボックスの下に一覧があり、そこから利用者自身が保存したお気に入りテンプレートから、1つ選びます。かつて使って気に入ったテンプレートを探すには、名称の入力中に過去に登録したお気に入りとの一致が表示されるので、すぐに見つかります。

お気に入りのテンプレートを追加・除去する方法は?

検索すると、各検索結果の行末に「ブックマーク」アイコンが表われます。このアイコンをクリックして、いつでもテンプレートをお気に入りに追加したり除去したりできます。

他にも、テンプレートをお気に入りに追加したり解除したりできる場所はたくさんあり、どこでも同じアイコンを使用します。

  1. テンプレートのダイアログで固有のテンプレートを選択すると、アイコンがテンプレート引数フォームの右上に表示されます。
  2. 個別のテンプレートのページ(つまりTemplate:Lorem_ipsum)では、編集中でも閲覧中でも、お気にいりアイコンがウォッチリストのアイコンのそばに配置されます。

How to view and edit your list of favourite templates

Template categories

To assist editors in finding templates, Template Discovery has a "template category browser". This allows a user to browse a list of templates which have been organised into a given category tree.

Finding a template by category

The category browser initially displays templates and categories in the local project's カテゴリ:テンプレート .

You can change the initial category by entering a new value in the "top-level category" input and clicking "browse". To show templates in a sub-category, select the sub-category from the list and its members will be shown. For categories with a large number of templates and/or subcategories, a "…load more" link is shown at the bottom of the column.

When you click on a template, its details will be shown in the next panel along with a button to use it.

Customising the template category browser

Each project can select a different initial category by changing the templatedata-category-rootcat system message on their wiki.

When you browse to a new top-level category, your choice will be remembered by your current device and displayed next time you use the template category browser.

注目のテンプレート

Featured templates allow a project to list a collection of templates which are likely to be useful to its editors.

Usage

These will be displayed in a list similar to the list of favourites (and in fact each featured template can also be favourited from this list, if you wish to) under the "featured" tab of the template discovery interface.

Configuration

ウィキの管理者はSpecial:CommunityConfiguration/TemplateData-FeaturedTemplatesで注目のテンプレート類(Featured)をリストに組むことができます。これらテンプレートは、お気に入り一覧と同様にリスト表示になります(また必要に応じ同リストに載せたものから各お気に入りに登録も可能)。

Feedback

If you have any feedback on this feature, please feel free to leave a message at this focus area's talk page.

Bugs can be reported on Phabricator.

関連項目