Changes between Version 3 and Version 4 of InterWiki


Ignore:
Timestamp:
Dec 30, 2016, 2:54:46 AM (7 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InterWiki

    v3 v4  
    1 = InterWiki リンク = #SupportforInterWikilinks
     1= Support for InterWiki links
    22
    3 ''([trac:milestone:0.10 milestone:0.10] 以降)''
     3== Definition
    44
    5 == 定義 == #Definition
     5An InterWiki link can be used for referring to a Wiki page located in another Wiki system, and by extension, to any object located in any other Web application, provided a simple URL mapping can be done.
    66
    7 InterWiki リンクは Trac 以外の Wiki システムにある Wiki ページを参照するために
    8 使用します。応用的な使用法になりますが、 Trac 以外の Web アプリケーションが
    9 提供するリソースのうち、シンプルな URL マッピングが行えるものであれば
    10 参照することができます。
     7InterWiki prefixes can even be used to simply introduce links to new protocols, such as `tsvn:` used by [trac:TortoiseSvn TortoiseSvn].
    118
    12 極端な例では、 InterWiki プレフィックスは新しいプロトコル
    13 ([trac:TortoiseSvn TortoiseSvn] で使用される `tsvn:`など) へのリンクを簡単に導入するために使うこともできます。
    14 
    15 == リンクのシンタックス == #LinkSyntax
     9== Link Syntax
    1610
    1711{{{
    18 <対象の Wiki>(:<識別子>)+
     12<target_wiki>(:<identifier>)+
    1913}}}
    2014
    21 リンクは対象の Wiki (もしくはシステム) 名に
    22 コロンをつけたもの (例 `MeatBall:`)
    23 に続いて、詳細を指定します。
    24 InterTrac のプレフィックスと同様に、 '''InterWiki のプレフィックスも大文字 / 小文字を区別しない''' ことを気をつけてください。
     15The link is composed by the targeted Wiki (or system) name, followed by a colon, eg `MeatBall:`, followed by a page specification in the target.
     16Note that, as for InterTrac prefixes, '''InterWiki prefixes are case insensitive'''.
    2517
    26 対象の Wiki の URL は TracIni の`[interwiki]` セクションや Wiki ページ InterMapTxt に記載されています。このページは MeatBall:InterMapTxt を参考にしています。`[interwiki]` セクションと InterMapTxt に同じプレフィックスが定義されている場合は、 `[interwiki]` セクションに定義されているものが有効になります。
     18The target Wiki URL is looked up in the `[interwiki]` section of TracIni or in the InterMapTxt wiki page, modeled after MeatBall:InterMapTxt. If a prefix is defined in both the `[interwiki]` section and InterMapTxt, the `[interwiki]` section takes precedence.
    2719
    28 さらに、従来の (訳注: MeatBall:InterMapTxt の) InterWiki リンクでは、
    29 識別子が単に URL に ''追加'' されるだけでしたが、
    30 Trac ではパラメータつきの InterWiki URL が使用できます:
    31 (訳注: InterMapTxt に定義した) URL に含まれる `$1`, `$2` などは、
    32 対応する引数に置き換えられます。
    33 引数はリンクの識別子に ":" で区切ったリスト形式で
    34 指定します。
     20In addition to traditional InterWiki links, where the target is simply ''appended'' to the URL, Trac supports parametric InterWiki URLs:
     21identifiers `$1`, `$2`, ... in the URL will be replaced by corresponding arguments.
     22The argument list is formed by splitting the page identifier using the ":" separator.
    3523
    36 === [interwiki] === #[interwiki]
    37 TracIni の `[interwiki]` セクションのオプションはそれぞれ InterWiki のプレフィックスを定義しています。オプション名がプレフィックスとなります。オプションの値には URL を定義しています。 URL の後に余白を入れ、説明文を任意で記述することが出来ます。パラメータの URL も同様にサポートします。
     24=== [interwiki]
    3825
    39 '''例:'''
    40 {{{
     26Every option in the `[interwiki]` section in TracIni defines one InterWiki prefix. The option name defines the prefix. The option value defines the URL, optionally followed by a description separated from the URL by whitespace. Parametric URLs are supported as well.
     27
     28'''Example:'''
     29{{{#!ini
    4130[interwiki]
    4231MeatBall = http://www.usemod.com/cgi-bin/mb.pl?
     
    4534}}}
    4635
    47 == 例 == #Examples
     36== Examples
    4837
    49 以下に抜粋した InterMapTxt ページの場合:
     38If the following is an excerpt of the InterMapTxt page:
    5039
    5140{{{
    5241= InterMapTxt =
    53 == InterWiki のプレフィックスを定義するページです ==
     42== This is the place for defining InterWiki prefixes ==
    5443
    55 現在利用できるプレフィックスのリスト: [[InterWiki]]
     44Currently active prefixes: [[InterWiki]]
    5645
    57 このページは MeatBall:InterMapTxt ページをモデルとしています。
    58 Trac ではマッピング文字列の後ろに任意のコメントをつけることができます。
     46This page is modelled after the MeatBall:InterMapTxt page.
     47In addition, an optional comment is allowed after the mapping.
    5948----
    6049{{{
    61 PEP      http://www.python.org/peps/pep-$1.html           # Python Enhancement Proposal $1
     50PEP      http://www.python.org/peps/pep-$1.html           # Python Enhancement Proposal $1 
    6251Trac-ML  http://thread.gmane.org/gmane.comp.version-control.subversion.trac.general/$1  # Message $1 in Trac Mailing List
    6352
     
    7261}}}
    7362
    74 以下のように使用します
    75  * `MoinMoin:InterWikiMap` は MoinMoin:InterWikiMap と表示されます
    76    リンクの ''タイトル'' は "!InterWikiMap in !MoinMoin" と表示されます
    77  * `Trac-ML:4346` は Trac-ML:4346 と表示されます
    78    リンクの ''タイトル'' は "Message 4346 in Trac Mailing List" と表示されます
     63Then,
     64 * `MoinMoin:InterWikiMap` should be rendered as MoinMoin:InterWikiMap and the ''title'' for that link would be "!InterWikiMap in !MoinMoin".
     65 * `Trac-ML:4346` should be rendered as Trac-ML:4346 and the ''title'' for that link would be "Message 4346 in Trac Mailing List".
    7966
    8067----