「テンプレート:Mediawiki/doc」の版間の差分
提供: ひつじ小屋別館2代目
細 (1版) |
細 (1版 をインポートしました) |
||
(他の1人の利用者による、間の1版が非表示) | |||
3行目: | 3行目: | ||
# (optional) Link description | # (optional) Link description | ||
# (optional) Special. Set this to "yes" for special pages, and the template will link to the local Special page if it exists (otherwise, it will point to mediawiki.org). | # (optional) Special. Set this to "yes" for special pages, and the template will link to the local Special page if it exists (otherwise, it will point to mediawiki.org). | ||
− | |||
{{ #ifeq: | {{ #ifeq: | ||
9行目: | 8行目: | ||
| MediaWiki | | MediaWiki | ||
| This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Mediawiki: | | This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Mediawiki: | ||
− | * on external sites, it creates an interwiki link to ' | + | * on external sites, it creates an interwiki link to 'mediawikiwiki' (included in the default interwiki table for new installs) |
* on Mediawiki, it creates an internal or interwiki link | * on Mediawiki, it creates an internal or interwiki link | ||
15行目: | 14行目: | ||
==Examples== | ==Examples== | ||
− | *{{tlx| | + | *{{tlx|mediawiki|Project:About}} yields {{mediawiki|Project:About}} |
− | *{{tlx| | + | *{{tlx|mediawiki|Project:About|About MediaWikiWiki}} yields yields {{mediawiki|Project:About|About MediaWikiWiki}} |
− | + | *{{tlx|mediawiki|m:Project:About|About Meta}} yields {{mediawiki|m:Project:About|About Meta}} | |
− | + | *{{tlx|mediawiki|Special:OAuthConsumerRegistration|Register on mw:|4=special=1}} yields {{mediawiki|Special:OAuthConsumerRegistration|Register on mw:|special=1}} | |
− | + | ---- | |
− | + | <templatedata> | |
− | + | { | |
− | {{ | + | "description": "MediaWikiWiki interwiki link for missing local page", |
− | + | "params": { | |
− | <includeonly>[[Category: | + | "1": { |
− | + | "label": "page", | |
+ | "description": "Wikilink working on MediaWikiWiki", | ||
+ | "type": "wiki-page-name", | ||
+ | "required": true | ||
+ | }, | ||
+ | "2": { | ||
+ | "label": "text", | ||
+ | "description": "Link text (default page name)", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "special": { | ||
+ | "description": "Any non-empty value to try local before MediaWikiWiki special page", | ||
+ | "type": "string" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </templatedata><includeonly>[[Category:Link templates|MediaWiki]]</includeonly> |
2015年1月2日 (金) 18:52時点における最新版
This template links to a page on mediawiki.org from the Help pages. The template has three parameters:
- Pagename, optionally preceded by an interwiki link prefix valid on mediawiki.org
- (optional) Link description
- (optional) Special. Set this to "yes" for special pages, and the template will link to the local Special page if it exists (otherwise, it will point to mediawiki.org).
Examples[編集]
- {{mediawiki|Project:About}} yields Project:About
- {{mediawiki|Project:About|About MediaWikiWiki}} yields yields About MediaWikiWiki
- {{mediawiki|m:Project:About|About Meta}} yields About Meta
- {{mediawiki|Special:OAuthConsumerRegistration|Register on mw:|special=1}} yields Register on mw:
MediaWikiWiki interwiki link for missing local page
引数 | 説明 | 型 | 状態 | |
---|---|---|---|---|
page | 1 | Wikilink working on MediaWikiWiki
| wiki-page-name | 必須 |
text | 2 | Link text (default page name)
| string | 省略可能 |
Special | special | Any non-empty value to try local before MediaWikiWiki special page
| string | 省略可能 |