「テンプレート:WikimediaDownload/ja/doc」の版間の差分

提供: ひつじ小屋別館2代目
移動先: 案内検索
(translate)
 
(1版)
 
(相違点なし)

2013年7月15日 (月) 20:04時点における最新版


使用法[編集]

Transclude the template inside an Extension article to create useful links to a repository hosted by Wikimedia. It is specifically designed for usage in the download parameter of Template:Extension/ja and categorizes into Category:Extensions in Wikimedia version control/ja.

  • 注: Spaces must be padded with '_' underscores.

In the case of Subversion, a custom path (instead of trunk) can be defined by using the second parameter (e.g. if you want to point them to a branched version):

To hide the link to Special:ExtensionDistributor, add set nosnapshot=1. This is useful when an extension only exists in a branch, since currently the ExtensionDistributor would say that the extension doesn't exist due to not being in trunk.

By default links for both links for where extension would be on svn.wikimedia.org and gerrit.wikimedia.org would be are shown. To only show a particular one, use the server= parameter.

コード プレビュー
{{WikimediaDownload/ja|SyntaxHighlight_GeSHi}}
{{WikimediaDownload/ja|SyntaxHighlight_GeSHi|branches/REL1_16|server=svn}}
{{WikimediaDownload/ja|SyntaxHighlight_GeSHi|nosnapshot=1}}
{{WikimediaDownload/ja|SyntaxHighlight_GeSHi|server=gerrit}}
{{WikimediaDownload/ja|SyntaxHighlight_GeSHi|server=gerritonly}}

関連項目[編集]