「ヘルプ:Links/ja」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
+ | {{TNT|PD Help Page}} | ||
<languages/> | <languages/> | ||
− | |||
MediaWiki には5種類のリンクがあります: | MediaWiki には5種類のリンクがあります: | ||
9行目: | 9行目: | ||
# ウィキの他言語版として登録済みの他のウェブサイトへの'''[[#Interlanguage links|言語間リンク]]''' | # ウィキの他言語版として登録済みの他のウェブサイトへの'''[[#Interlanguage links|言語間リンク]]''' | ||
− | {{Anchor|Internal | + | {{Anchor|Internal}} |
== 内部リンク == | == 内部リンク == | ||
− | + | 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> |
− | + | {{mediawiki|Meta:Help:Piped link}}もご覧ください | |
− | |||
− | |||
|[[Main Page|different text]] | |[[Main Page|different text]] | ||
− | |||
− | |||
|- | |- | ||
|[[w:Help:Pipe_trick|Pipe trick]] | |[[w:Help:Pipe_trick|Pipe trick]] | ||
98行目: | 84行目: | ||
|転送 | |転送 | ||
|<pre>#REDIRECT [[Main Page]]</pre> | |<pre>#REDIRECT [[Main Page]]</pre> | ||
− | [[ | + | [[Help:Redirects]]もご覧ください |
| → [[Main Page]] | | → [[Main Page]] | ||
|- | |- | ||
|アンカーへの内部リンク | |アンカーへの内部リンク | ||
|<pre>[[#See also]]</pre> | |<pre>[[#See also]]</pre> | ||
− | [[ | + | [[Help:Formatting|Section headings]] and the [[#top|top]] of the page are automatically anchored. |
|[[#See also]] | |[[#See also]] | ||
|- | |- | ||
121行目: | 107行目: | ||
|現在のページのトークページへの内部リンク | |現在のページのトークページへの内部リンク | ||
|<pre>[[{{TALKPAGENAME}}|Discussion]]</pre> | |<pre>[[{{TALKPAGENAME}}|Discussion]]</pre> | ||
− | [[ | + | See also [[Help:Magic_words#Page_names]] |
|[[{{TALKPAGENAME}}|Discussion]] | |[[{{TALKPAGENAME}}|Discussion]] | ||
|- | |- | ||
|サブページへの内部リンク | |サブページへの内部リンク | ||
|<pre>[[/example]]</pre> | |<pre>[[/example]]</pre> | ||
− | Shortcut for <code><nowiki>[[Help:Links/example|/example]]</nowiki></code>. See also [[ | + | Shortcut for <code><nowiki>[[Help:Links/example|/example]]</nowiki></code>. See also [[Help:Subpages]]. |
|[[Help:Links/example|/example]] | |[[Help:Links/example|/example]] | ||
|- | |- | ||
136行目: | 122行目: | ||
|カテゴリページへの内部リンク | |カテゴリページへの内部リンク | ||
|<pre>[[:Category:Help]]</pre> | |<pre>[[:Category:Help]]</pre> | ||
− | [[ | + | [[Help:Categories]]もご覧ください |
|[[:Category:Help]] | |[[:Category:Help]] | ||
|- | |- | ||
143行目: | 129行目: | ||
[[media:example.pdf]]</pre> | [[media:example.pdf]]</pre> | ||
− | [[ | + | [[Help:Images]]もご覧ください |
|[[media:example.jpg]] | |[[media:example.jpg]] | ||
157行目: | 143行目: | ||
|} | |} | ||
− | {{Anchor|External | + | {{Anchor|External}} |
== 外部リンク == | == 外部リンク == | ||
184行目: | 170行目: | ||
[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/> | ||
[http://en.wikipedia.org/wiki/.ogg sound]<br/> | [http://en.wikipedia.org/wiki/.ogg sound]<br/> | ||
[http://en.wikipedia.org/wiki/.pdf document]<br/> | [http://en.wikipedia.org/wiki/.pdf document]<br/> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|同じホストへの外部リンク | |同じホストへの外部リンク | ||
206行目: | 182行目: | ||
|ページ名を渡して他のホストに外部リンクする | |ページ名を渡して他のホストに外部リンクする | ||
|<tt><nowiki>http://google.com/search?q={{PAGENAMEE}}</nowiki></tt><br /> | |<tt><nowiki>http://google.com/search?q={{PAGENAMEE}}</nowiki></tt><br /> | ||
− | See also: [[ | + | See also: [[Help:Magic_words#URL_encoded_page_names | URL encoded page names]], [[Manual:PAGENAMEE encoding|PAGENAMEE encoding]] |
|http://google.com/search?q={{PAGENAMEE}} | |http://google.com/search?q={{PAGENAMEE}} | ||
|- | |- | ||
218行目: | 194行目: | ||
|} | |} | ||
− | {{Anchor|External-to-internal | + | {{Anchor|External-to-internal}} |
=== 内部ページへの外部リンク === | === 内部ページへの外部リンク === | ||
229行目: | 205行目: | ||
|- | |- | ||
|現在のページの編集ページへの外部リンク | |現在のページの編集ページへの外部リンク | ||
− | |< | + | |<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 [[ | + | |External link to the current page's edit page using the [[Help:Magic_words#URL_data | fullurl parser function]] |
− | |< | + | |<pre>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]</pre> |
− | [[ | + | See also [[Help:Magic_words#URL_data]] and [[#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行目: | 224行目: | ||
! リンクの例 !! アイコン !! トリガー | ! リンクの例 !! アイコン !! トリガー | ||
|- | |- | ||
− | | [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> |
|- | |- | ||
− | | [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> |
|} | |} | ||
− | |||
=== 自動リンクを回避する方法 === | === 自動リンクを回避する方法 === | ||
283行目: | 257行目: | ||
<nowiki>http://mediawiki.org</nowiki> | <nowiki>http://mediawiki.org</nowiki> | ||
− | {{Anchor|Interwiki | + | {{Anchor|Interwiki}} |
− | == | + | == 内部リンク == |
− | 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 | + | Interwiki links are links with the internal link markup to a website registered in advance. For example, you can link to the Sunflower article on http://en.wikipedia.org 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 | + | More details are at {{mediawiki|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 {{mediawiki|Manual:Interwiki table|interwiki table}} on your site, see the {{mediawiki|Extension:Interwiki|Interwiki extension}}. |
− | |||
=== 言語間リンク === | === 言語間リンク === | ||
− | If your wiki has other language versions, you may find “interlanguage links” in the [[ | + | If your wiki has other language versions, you may find “interlanguage links” in the [[Help:Navigation#Sidebar|sidebar]], just below [[Help:Navigation#Toolbox|toolbox]] in the box named “{{lcfirst:{{int:otherlanguages}}}}.” |
Interlanguage links behave similarly to interwiki links, except that they are listed in the sidebar. To create an interlanguage link from a page, just type <code><nowiki>[[</nowiki>''language prefix'':pagename]]</code> wherever you like in the page; the language prefix is the prefix specified at your wiki for the other language version (typically the [[wikipedia:List of ISO 639-1 codes|ISO 639-1 language code]]). | Interlanguage links behave similarly to interwiki links, except that they are listed in the sidebar. To create an interlanguage link from a page, just type <code><nowiki>[[</nowiki>''language prefix'':pagename]]</code> wherever you like in the page; the language prefix is the prefix specified at your wiki for the other language version (typically the [[wikipedia:List of ISO 639-1 codes|ISO 639-1 language code]]). | ||
306行目: | 279行目: | ||
When a link is both interwiki and interlanguage, the order is '''[[wikipedia:en:Sunflower]]'''. | When a link is both interwiki and interlanguage, the order is '''[[wikipedia:en:Sunflower]]'''. | ||
− | + | == 関連ページ == | |
− | + | * [[Help:Linked images|画像のリンク]] | |
+ | * [[meta:Help:Links]] | ||
− | |||
− | [[Category:Help{{ | + | [[Category:Help{{langcat|Links}}|Links]] |
− | [[Category:Link{{ | + | [[Category:Link{{langcat|Links}}|Links]] |