#author("2025-06-06T15:30:17+00:00","","")
* InterWiki [#teeaa78d]
InterWiki は、[[PukiWiki]] と 他のサーバーを接続する機能です。
InterWiki is a functionality for connecting [[PukiWiki]] to other servers.

[[InterWikiName]] のページでサーバー名を定義しています。
[[InterWikiName]] pages are used to define other servers' names.

#contents

** [[InterWiki]]へのアクセス(InterWikiNameの生成) [#nb5bafb9]
サーバリストにある サーバ名:WikiName を[[BracketName]]で作れば[[InterWikiName]]の完成。~
これをページに記述すれば、そのサーバの[[WikiName]]へのハイパーリンクが生成されます。
** Accessing [[InterWiki]] (InterWikiName creation) [#nb5bafb9]
In the server list, writing the server name "WikiName" as a [[BracketName]] creates an [[InterWikiName]].~
If written thus on a page, a hyperlink to that server's [[WikiName]] will be created.

 [[サーバ名:WikiName]]
 [[ServerName:WikiName]]
 [[pukiwiki:FrontPage]]

** サーバーリストへの追加 [#a71a4d66]
[[InterWikiName]] のページに以下のようにサーバの定義をすることで
サーバーリストに追加することができます。
** Adding to the server list [#a71a4d66]
Servers can be added to the server list by defining them in [[InterWikiName]] pages in the following format:

 [URL サーバ名] タイプ
 [URL ServerName] charset
 [https://pukiwiki.osdn.jp/index.php pukiwiki] utf8

** WikiNameの挿入位置 [#q7ad1d6d]
要求しようとするURLへの[[WikiName]]の挿入位置を $1 で指定することができます。省略するとお尻にくっつきます。
** WikiName insertion position [#q7ad1d6d]
You can specify an insertion position of "WikiName" to the requested URL by adding "$1". If omitted, it will be appended to the end.

 -[https://pukiwiki.osdn.jp/index.php?cmd=backup&page=$1&age=1 pukiwiki] utf8

** 文字コード変換タイプ [#k34801d3]
** Change character set [#k34801d3]

[[PukiWiki]]内のページ以外にも飛ばせます。日本語をURLに含む可能性もあるのでその場合のエンコーディングの指定をタイプとして指定できます。
[[PukiWiki]] internal pages can also be sent out externally. It is possible to include Japanese in the URL; in this case, the encoding type must be specified.

 -[https://pukiwiki.osdn.jp/index.php?cmd=read&page=$1 somewhere] utf8

:std 省略時|内部文字エンコーディング(標準はSJIS)のままURLエンコードします。
:raw asis|URLエンコードしないでそのまま使用。
:sjis|文字列をSJISに変換し、URLエンコードします。(mb_stringのSJISへのエイリアスです)
:euc|文字列を日本語EUCに変換し、URLエンコードします。(mb_stringのEUC-JPへのエイリアスです)
:utf8|文字列をUTF-8に変換し、URLエンコードします。(mb_stringのUTF-8へのエイリアスです)
:yw|YukiWiki系へのエンコーディング。
:moin|MoinMoin用に変換します。 
:std (default)|URL will be encoded according to internal character encoding (standard: SJIS).
:raw asis|URL will not be encoded (as-is).
:sjis|URL will be encoded as a character string converted to SJIS. (mb_string alias to SJIS)
:euc|URL will be encoded as a character string converted to Japanese EUC. (mb_string alias to EUC-JP)
:utf8|URL will be encoded as a character string converted to UTF-8. (mb_string alias to UTF-8)
:yw|Encode according to the YukiWiki system.
:moin|Use MoinMoin for conversion. 

その他、PHP4のmb_stringでサポートされている以下のエンコード文字が使用できます。
Otherwise, the following encoding characters supported by mb_string in PHP4 are available:

''UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UCS-2LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, ISO-2022-JP, JIS, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, byte2be, byte2le, byte4be, byte4le, BASE64, 7bit, 8bit, UTF7-IMAP''

** [[YukiWiki]]系へのエンコーディング [#zeb5d7f0]
** [[YukiWiki]] system encoding [#zeb5d7f0]

-[[WikiName]]のものへはそのままURLエンコード。
-[[BracketName]]のものは[[ ]]を付加してURLエンコード。
-[[WikiName]] items will be encoded to the URL as-is.
-[[BracketName]] items will include [[ ]] in the URL encoding.

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes