「テンプレート:Mediawiki/doc」を編集中

移動先: 案内検索

警告: ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。ログインまたはアカウントを作成すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。

この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 編集中の文章
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).
 +
<!-- Compatibility Note: The "mw" prefix is only in the default interwiki prefixes since MediaWiki 1.16 (see mw:Manual:Interwiki#References). If you plan to use this script with an older version, it might be possible or necessary to use the "mediawikiwiki" prefix. -->
  
 
{{ #ifeq:
 
{{ #ifeq:
8行目: 9行目:
 
| 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 'mediawikiwiki' (included in the default interwiki table for new installs)
+
* on external sites, it creates an interwiki link to 'mw' (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
  
14行目: 15行目:
  
 
==Examples==
 
==Examples==
*{{tlx|mediawiki|Project:About}} yields {{mediawiki|Project:About}}
+
*{{tlx|1=Mediawiki|2=Page_Title}}
*{{tlx|mediawiki|Project:About|About MediaWikiWiki}} yields yields {{mediawiki|Project:About|About MediaWikiWiki}}
+
*{{tlx|1=Mediawiki|2=Page_Title|3=text}}
*{{tlx|mediawiki|m:Project:About|About Meta}} yields {{mediawiki|m:Project:About|About Meta}}
+
*{{tlx|1=Mediawiki|2=Page_Title|3=special=yes}}
*{{tlx|mediawiki|Special:OAuthConsumerRegistration|Register on mw:|4=special=1}} yields {{mediawiki|Special:OAuthConsumerRegistration|Register on mw:|special=1}}
+
*{{tlx|1=Mediawiki|2=Page_Title|3=text|4=special=yes}}
----
+
 
<templatedata>
+
== Demo of interwiki link ==
{
+
 
"description": "MediaWikiWiki interwiki link for missing local page",
+
<nowiki>{{mediawiki|m:Help:Calculation|Help:Calculation}}</nowiki> gives either<br /> <nowiki>[[m:Help:Calculation|Help:Calculation]] or [[mw:m:Help:Calculation|Help:Calculation]]</nowiki>.
"params": {
+
 
"1": {
+
{{Languages|Template:Mediawiki/doc}}
"label": "page",
+
 
"description": "Wikilink working on MediaWikiWiki",
+
<includeonly>[[Category:Info templates|MediaWiki]]
"type": "wiki-page-name",
+
[[Category:Help]]</includeonly>
"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>
 

ひつじ小屋別館2代目への投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細はひつじ小屋別館2代目:著作権を参照)。 著作権保護されている作品は、許諾なしに投稿しないでください!

このページを編集するには、下記の確認用の質問に回答してください (詳細):

取り消し | 編集の仕方 (新しいウィンドウで開きます)
このテンプレートでページをプレビュー

このページで使用されているテンプレート: