Manual:Footer/legacy/ja

The following relates to MediaWiki < 1.35.

フッターにリンクを追加する
1.17 以降、 を使用してフッター内のリンクのリストを変更し、フッターリンク配列を変更し、値に新しいテンプレート キーを設定できます.

For example, putting this in your  file will add a new "Terms of Use" link after the disclaimer link.

For example, putting this in your  file will add a new "Terms of Use" link after the disclaimer link.

From there you can put "Terms of Use" in the page on your wiki, for the link's text and in  define the title of the page that you want the Terms of Use link to point to. Note, if you do not create these pages on your wiki, then nothing will appear in the footer.

Another example, if you are writing an extension using MediaWiki 1.28 or later. (1) Add this to your extension.json:

(2) Add this to your MyExtension.hooks.php:

(3) Create three pages:
 * MediaWiki:FooLabel (contains text to display in footer, like 'Foo');
 * MediaWiki:FooPage (contains namespace:title of linked page, like 'Project:Foo');
 * Project:Foo (contains detailed page text).

Remember it may take a while to update due to MediaWiki caches. In case you are using, which inserts a "Mobile view" link in the footer after the disclaimer link, the new footer links will come after the "Mobile view" link. To solve this, insert the above new footer links code before the code lines used to load the MobileFrontend extension.