「テンプレート:Mediawiki」の版間の差分
提供: ひつじ小屋別館2代目
細 (1版) |
細 (trimmed for clarity) |
||
1行目: | 1行目: | ||
− | {{ #ifeq: | + | {{ #ifeq: {{SITENAME}} | MediaWiki | [[{{{1}}}|{{{2|{{{1}}}}}}]] |
− | + | | [[{{#if:{{{special|}}}|{{#ifexist:{{{1|}}}||mediawikiwiki:}}}}{{{1}}}|{{{2|{{{1}}}}}}]] | |
− | | MediaWiki | ||
− | | [[{{{1}}}|{{{2|{{{1}}}}}}]] | ||
− | | [[{{#if:{{{special|}}}|{{#ifexist:{{{1|}}}|| | ||
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> |
2014年12月27日 (土) 08:11時点における版
[[{{{1}}}|{{{1}}}]]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 | 省略可能 |
The above documentation is transcluded from テンプレート:Mediawiki/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |