Manual:Small padlock icon/ja

If you want to use the small padlock icons which are used on protected pages on wikipedia, here is how to make them. You first must download the icons and upload them to your wiki.

テスト
まず試してみましょう.

いずれかのページに以下のコードを追加してください.

変更する
ページ内でのアイコンの表示位置を変更します.

画像を変更します.

画像のサイズを変更します. ウィキペディアと同じサイズの 25px にすることをお勧めします.

This makes a message appear when the mouse is over the icon.

Automatically Appearing When A Template Is On The Page
To make the small icon appear when a template is placed on the page, put the code for the small icon at the top of the template, and it will be added to a page when the template is placed on the page.

Only Showing The Icon When A Template Is On A Page
To do this, make a template, for example, lets call it. When making this template, only add the code to the template and save. Now, when you add it will only make a small icon appear.

注記
By adding a small icon or a protected template to a page does not mean its protected. Only users with the protect permission can protect pages.

デモ
デモのコード: 