Extension:HeadScript/ja

The HeadScript extension allows scripts to easily be added just before  of the wiki.

The code for the head script is defined in "LocalSettings.php" and is controlled by variables. This implementation makes it easy for inexperienced users to implement head scripts just before  of the wiki. It also makes it possible to add head scripts that cannot be changed or removed, such as would be possible by wiki administrators if the head script were added to the site notice. This makes the extension particularly useful for placing Cookie Consent plugin or CSS style links, as such content cannot be removed by abusive or rogue administrators.

設定
1つまたは複数のヘッドスクリプトをWikiに追加することができます. ヘッダースクリプトは、任意のHTMLおよび/またはJavaScriptで構成することができます.

To configure the head script, add the following to "LocalSettings.php" after the installation line:

Leave untouched the first and last line with START_END_MARKER stuff, this is a special syntax of PHP (without it, it would be tricky to deal with apostrophes inside the script). Do not add whitespaces around the last line’s marker, it would break it (more details about this syntax). Do add new line after.

スクリプトを追加する場合は、<<<'START_END_MARKER'からSTART_END_MARKER;の間にコードを入れるだけです.

必要に応じて、スクリプトの名前も指定してください.

META and LINK elements can also be added, such as: