「ヘルプ:Links/ja」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
+ | {{TNT|PD Help Page}} | ||
<languages/> | <languages/> | ||
− | |||
MediaWiki には5種類のリンクがあります: | MediaWiki には5種類のリンクがあります: | ||
12行目: | 12行目: | ||
== 内部リンク == | == 内部リンク == | ||
− | + | To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already it is displayed in blue, if it does not, in red. | |
− | + | Selflinks to the current page are not transformed in URLs but displayed in bold. | |
− | ( | + | (If you really want to link to the current page, use an anchor (see below), or <nowiki>[[#top|current page]]</nowiki> which always links to the top.) |
The first letter of the target page is automatically capitalized, unless otherwise set by the admins, and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text). | The first letter of the target page is automatically capitalized, unless otherwise set by the admins, and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text). | ||
25行目: | 25行目: | ||
|- | |- | ||
|内部リンク | |内部リンク | ||
− | |<pre> | + | |<pre>[[Main Page]]</pre> |
− | [[Main Page]] | ||
− | |||
− | |||
− | |||
− | |||
− | </pre> | ||
|[[Main Page]] | |[[Main Page]] | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|パイプのリンク | |パイプのリンク | ||
− | |<pre>[[Main Page|different text | + | |<pre>[[Main Page|different text]]</pre> |
− | |||
− | |||
[[meta:Special:MyLanguage/Help:Piped link|meta:Help:Piped link]] も参照してください | [[meta:Special:MyLanguage/Help:Piped link|meta:Help:Piped link]] も参照してください | ||
|[[Main Page|different text]] | |[[Main Page|different text]] | ||
− | |||
− | |||
|- | |- | ||
|[[w:Help:Pipe_trick|Pipe trick]] | |[[w:Help:Pipe_trick|Pipe trick]] | ||
103行目: | 89行目: | ||
|アンカーへの内部リンク | |アンカーへの内部リンク | ||
|<pre>[[#See also]]</pre> | |<pre>[[#See also]]</pre> | ||
− | [[Special:MyLanguage/Help:Formatting|Section headings]] and the [[#top|top]] of the page are automatically anchored. | + | [[<tvar|formatting>Special:MyLanguage/Help:Formatting</>|Section headings]] and the [[#top|top]] of the page are automatically anchored. |
|[[#See also]] | |[[#See also]] | ||
|- | |- | ||
126行目: | 112行目: | ||
|サブページへの内部リンク | |サブページへの内部リンク | ||
|<pre>[[/example]]</pre> | |<pre>[[/example]]</pre> | ||
− | Shortcut for <code><nowiki>[[Help:Links/example|/example]]</nowiki></code>. See also [[Special:MyLanguage/Help:Subpages|Help:Subpages]]. | + | Shortcut for <code><nowiki>[[Help:Links/example|/example]]</nowiki></code>. See also [[<tvar|Special:MyLanguage/Help:Subpages</>|Help:Subpages]]. |
|[[Help:Links/example|/example]] | |[[Help:Links/example|/example]] | ||
|- | |- | ||
158行目: | 144行目: | ||
{{Anchor|External|External links}} | {{Anchor|External|External links}} | ||
+ | |||
== 外部リンク == | == 外部リンク == | ||
184行目: | 171行目: | ||
[http://en.wikipedia.org/wiki/.pdf document] | [http://en.wikipedia.org/wiki/.pdf document] | ||
</nowiki></tt> | </nowiki></tt> | ||
− | <small> | + | <small>See [[#External link icons]] for currently supported icons and extensions.</small> |
| | | | ||
[http://en.wikipedia.org/wiki/.avi video]<br/> | [http://en.wikipedia.org/wiki/.avi video]<br/> | ||
190行目: | 177行目: | ||
[http://en.wikipedia.org/wiki/.pdf document]<br/> | [http://en.wikipedia.org/wiki/.pdf document]<br/> | ||
|- | |- | ||
− | |Protocol | + | |Protocol relative external link (Will be http if the current site is http, https if the current site is https) |
|<tt><nowiki> | |<tt><nowiki> | ||
[//en.wikipedia.org wikipedia]</nowiki><br/><nowiki> | [//en.wikipedia.org wikipedia]</nowiki><br/><nowiki> | ||
[//en.wikipedia.org //en.wikipedia.org] | [//en.wikipedia.org //en.wikipedia.org] | ||
</nowiki></tt> | </nowiki></tt> | ||
− | <small>This is only supported inside | + | <small>This is only supported inside <tt><nowiki>[ ]</nowiki></tt>. //en.wikipedia.org by itself does not make a link.</small> |
| | | | ||
[//en.wikipedia.org wikipedia]<br/> | [//en.wikipedia.org wikipedia]<br/> | ||
206行目: | 193行目: | ||
|ページ名を渡して他のホストに外部リンクする | |ページ名を渡して他のホストに外部リンクする | ||
|<tt><nowiki>http://google.com/search?q={{PAGENAMEE}}</nowiki></tt><br /> | |<tt><nowiki>http://google.com/search?q={{PAGENAMEE}}</nowiki></tt><br /> | ||
− | See also: [[Special:MyLanguage/Help:Magic_words#URL_encoded_page_names|URL encoded page names]], [[Special:MyLanguage/Manual:PAGENAMEE encoding|PAGENAMEE encoding]] | + | See also: [[<tvar|encoded>Special:MyLanguage/Help:Magic_words#URL_encoded_page_names</>|URL encoded page names]], [[<tvar|PAGENAMEE>Special:MyLanguage/Manual:PAGENAMEE encoding</>|PAGENAMEE encoding]] |
|http://google.com/search?q={{PAGENAMEE}} | |http://google.com/search?q={{PAGENAMEE}} | ||
|- | |- | ||
229行目: | 216行目: | ||
|- | |- | ||
|現在のページの編集ページへの外部リンク | |現在のページの編集ページへの外部リンク | ||
− | |< | + | |<pre>[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</pre> |
|[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page] | |[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page] | ||
|- | |- | ||
|External link to the current page's edit page using the [[Special:MyLanguage/Help:Magic_words#URL_data|fullurl parser function]] | |External link to the current page's edit page using the [[Special:MyLanguage/Help:Magic_words#URL_data|fullurl parser function]] | ||
− | |< | + | |<pre>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]</pre> |
[[Special:MyLanguage/Help:Magic_words#URL_data|Help:マジックワード#URLデータ]] および [[#External links|#外部リンク]] も参照してください | [[Special:MyLanguage/Help:Magic_words#URL_data|Help:マジックワード#URLデータ]] および [[#External links|#外部リンク]] も参照してください | ||
|[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] | |[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] | ||
|- | |- | ||
|External link to the current page's edit page, and styled to look like an internal link | |External link to the current page's edit page, and styled to look like an internal link | ||
− | |< | + | |<pre><span class="plainlinks">[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</span></pre> |
The [[Plainlinks | plainlinks class]] can be used in cases where you want an external link to look like an internal one, by suppressing the icon that normally appears after it. | The [[Plainlinks | plainlinks class]] can be used in cases where you want an external link to look like an internal one, by suppressing the icon that normally appears after it. | ||
|<span class="plainlinks">[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</span> | |<span class="plainlinks">[http://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</span> | ||
249行目: | 236行目: | ||
! リンクの例 !! アイコン !! トリガー | ! リンクの例 !! アイコン !! トリガー | ||
|- | |- | ||
− | | [http://.] || [ | + | | [http://.] || [http://bits.wikimedia.org/skins-1.17/vector/images/external-link-ltr-icon.png external-link-ltr-icon.png] || <code>http://</code>, <code>gopher://</code>, <code>[//]</code> |
|- | |- | ||
− | | [https://.] || [ | + | | [https://.] || [http://bits.wikimedia.org/skins-1.17/vector/images/lock-icon.png lock-icon.png] || <code>https://</code> |
|- | |- | ||
− | | [mailto:.] || [ | + | | [mailto:.] || [http://bits.wikimedia.org/skins-1.17/vector/images/mail-icon.png mail-icon.png] || <code>mailto:</code> |
|- | |- | ||
− | | [news://.] || [ | + | | [news://.] || [http://bits.wikimedia.org/skins-1.17/vector/images/news-icon.png news-icon.png] || <code>news<nowiki/>://</code> |
|- | |- | ||
− | | [ftp://.] || [ | + | | [ftp://.] || [http://bits.wikimedia.org/skins-1.17/vector/images/file-icon.png file-icon.png] || <code>ftp://</code> |
|- | |- | ||
− | | [irc://.] || [ | + | | [irc://.] || [http://bits.wikimedia.org/skins-1.17/vector/images/talk-icon.png talk-icon.png] || <code>irc://</code> |
|- | |- | ||
− | | [http://.ogg] || [ | + | | [http://.ogg] || [http://bits.wikimedia.org/skins-1.17/vector/images/audio-icon.png audio-icon.png] || <code>.ogg</code>, <code>.mid</code>, <code>.midi</code>, <code>.mp3</code>, <code>.wav</code>, <code>.wma</code> |
|- | |- | ||
− | | [http://.ogm] || [ | + | | [http://.ogm] || [http://bits.wikimedia.org/skins-1.17/vector/images/video-icon.png video-icon.png] || <code>.ogm</code>, <code>.avi</code>, <code>.mpeg</code>, <code>.mpg</code> |
|- | |- | ||
− | | [http://.pdf] || [ | + | | [http://.pdf] || [http://bits.wikimedia.org/skins-1.17/vector/images/document-icon.png document-icon.png] || <code>.pdf</code>, <code>.pdf#</code>, <code>.pdf?</code> |
|} | |} | ||
− | |||
=== 自動リンクを回避する方法 === | === 自動リンクを回避する方法 === | ||
284行目: | 270行目: | ||
{{Anchor|Interwiki|Interwiki links}} | {{Anchor|Interwiki|Interwiki links}} | ||
− | == | + | == 内部リンク == |
− | Interwiki links are links with the internal link markup to a website registered in advance. For example, you can link to the article http://en.wikipedia.org/wiki/Sunflower by typing <code><nowiki>[[wikipedia:Sunflower]]</nowiki></code>, which will result in a link [[wikipedia:Sunflower]]. This | + | Interwiki links are links with the internal link markup to a website registered in advance. For example, you can link to the article http://en.wikipedia.org/wiki/Sunflower by typing <code><nowiki>[[wikipedia:Sunflower]]</nowiki></code>, which will result in a link [[wikipedia:Sunflower]]. This is because <code><nowiki>http://en.wikipedia.org/wiki/</nowiki></code> is registered to your wiki by default with the prefix of <code>wikipedia</code>. (''This link may not work properly if the admin of your wiki has changed the setting.'') Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki. |
Similar to internal page links, you can create piped links, with alternate link label, e.g. <code><nowiki>[[wikipedia:Sunflower|big yellow flower]]</nowiki></code> is the link [[wikipedia:Sunflower|big yellow flower]] and <code><nowiki>[[wikipedia:Sunflower|]]</nowiki></code> is the link [[wikipedia:Sunflower|Sunflower]]. | Similar to internal page links, you can create piped links, with alternate link label, e.g. <code><nowiki>[[wikipedia:Sunflower|big yellow flower]]</nowiki></code> is the link [[wikipedia:Sunflower|big yellow flower]] and <code><nowiki>[[wikipedia:Sunflower|]]</nowiki></code> is the link [[wikipedia:Sunflower|Sunflower]]. | ||
− | Basically, interwiki links are abbreviations for commonly | + | Basically, interwiki links are abbreviations for commonly used longer external links. A very similar link could be created as <code><nowiki>[http://en.wikipedia.org/wiki/Sunflower big yellow flower]</nowiki></code>. |
− | More details are at [[Special:MyLanguage/Manual:Interwiki|Manual:Interwiki]] and [[m:Help:Interwiki linking]]. | + | More details are at [[Special:MyLanguage/Manual:Interwiki|Manual:Interwiki]] and [[m:Help:Interwiki linking]]. See the [https://git.wikimedia.org/blob/mediawiki%2Fcore//maintenance%2Finterwiki.list default interwiki prefixes]. To edit the [[Special:MyLanguage/Manual:Interwiki table|Manual:Interwiki table]] on your site, see the [[Special:MyLanguage/Extension:Interwiki|Interwiki extension]]. |
{{anchor|Interlanguage links}} | {{anchor|Interlanguage links}} | ||
307行目: | 293行目: | ||
{{anchor|See also}} | {{anchor|See also}} | ||
− | |||
== 関連ページ == | == 関連ページ == | ||
* [[Special:MyLanguage/Help:Linked images|画像のリンク]] | * [[Special:MyLanguage/Help:Linked images|画像のリンク]] | ||
− | [[Category:Help{{ | + | [[Category:Help{{langcat|Links}}|Links]] |
− | [[Category:Link{{ | + | [[Category:Link{{langcat|Links}}|Links]] |