新石器Wiki

近年はシリコン(石)から進化した便利なもので溢れる時代。そんな気になった事や試した事など記す。

ユーザ用ツール

サイト用ツール


software:dokuwiki:interwiki-link


差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
software:dokuwiki:interwiki-link [2017/08/15 08:53] yokosoftware:dokuwiki:interwiki-link [2019/09/29 12:49] (現在) – [独自の InterWiki リンクの定義] yoko
行 1: 行 1:
-InterWikiリンク +【DokuWiki】InterWikiリンク 
-==============+==========================
 DokuWikiにおいて、簡単な記述(ショートカット)でリンクする機能。 DokuWikiにおいて、簡単な記述(ショートカット)でリンクする機能。
  
-`doku`というショートカットを使ったリンク例の例。+`doku`というショートカットを使ったリンク例。
  
 ``` ```
行 15: 行 15:
  
 [[https://github.com/splitbrain/dokuwiki/blob/master/conf/interwiki.conf|<dokuwiki_conf>/interwiki.conf]] ファイルに記述してある [[https://github.com/splitbrain/dokuwiki/blob/master/conf/interwiki.conf|<dokuwiki_conf>/interwiki.conf]] ファイルに記述してある
 +
 +<file text interwiki.conf>
 +# Each URL may contain one of these placeholders
 +# {URL}  is replaced by the URL encoded representation of the wikiname
 +#        this is the right thing to do in most cases
 +# {NAME} this is replaced by the wikiname as given in the document
 +#        only mandatory encoded is done, urlencoding if the link
 +#        is an external URL, or encoding as a wikiname if it is an
 +#        internal link (begins with a colon)
 +# {SCHEME}
 +# {HOST}
 +# {PORT}
 +# {PATH}
 +# {QUERY} these placeholders will be replaced with the appropriate part
 +#         of the link when parsed as a URL
 +# If no placeholder is defined the urlencoded name is appended to the URL
 +
 +# To prevent losing your added InterWiki shortcuts after an upgrade,
 +# you should add new ones to interwiki.local.conf
 +
 +wp        https://en.wikipedia.org/wiki/{NAME}
 +wpfr      https://fr.wikipedia.org/wiki/{NAME}
 +wpde      https://de.wikipedia.org/wiki/{NAME}
 +wpes      https://es.wikipedia.org/wiki/{NAME}
 +wppl      https://pl.wikipedia.org/wiki/{NAME}
 +wpjp      https://ja.wikipedia.org/wiki/{NAME}
 +wpmeta    https://meta.wikipedia.org/wiki/{NAME}
 +doku      https://www.dokuwiki.org/
 +rfc       https://tools.ietf.org/html/rfc
 +man       http://man.cx/
 +amazon    https://www.amazon.com/dp/{URL}?tag=splitbrain-20
 +amazon.de https://www.amazon.de/dp/{URL}?tag=splitbrain-21
 +amazon.uk https://www.amazon.co.uk/dp/{URL}
 +paypal    https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=
 +phpfn     https://secure.php.net/{NAME}
 +skype     skype:{NAME}
 +google.de https://www.google.de/search?q=
 +go        https://www.google.com/search?q={URL}&amp;btnI=lucky
 +user      :user:{NAME}
 +
 +# To support VoIP/SIP/TEL links
 +callto    callto://{NAME}
 +tel       tel:{NAME}
 +</file>
 +
 +
  
 ### 独自の InterWiki リンクの定義 ### 独自の InterWiki リンクの定義
  
 `<dokuwiki_conf>/interwiki.local.conf` ファイルに追加定義できる。   `<dokuwiki_conf>/interwiki.local.conf` ファイルに追加定義できる。  
-(このファイルはバージョンップ時にも上書きされない。)+(このファイルはバージョンップ時にも上書きされない。) 
 + 
 +<file text interwiki.local.conf> 
 +yokoweb    https://www.yokoweb.net/{NAME} 
 +myblog     https://www.yokoweb.net/{NAME} 
 +share      https://www.yokoweb.net/share/{NAME} 
 +</file> 
  
 参考 参考
行 25: 行 78:
  
 1. [[doku>ja:interwiki|InterWiki リンク]] 1. [[doku>ja:interwiki|InterWiki リンク]]
 +2. [[doku>ja:config|DokuWiki の設定]]
  
software/dokuwiki/interwiki-link.1502754826.txt.gz · 最終更新: 2017/08/15 08:53 by yoko