シンビオ社会研究会 原子力WEB教材


FrontPage

See also: Wikipedia:Manual of Style/Linking, Help:Wikitext § Wikilinks, and mw:Help:Links Shortcut H:WIKILINK A wikilink (or internal link) is a link from one page to another page within the English Wikipedia.

Links are enclosed in doubled square brackets:

1234? is seen as "1234" in text and links to page "1234". Use a vertical bar "|" (the "pipe" symbol) to create a link and label it with a different name. Links of this kind are said to be "piped". The first term inside the brackets is the page you would be taken to (the link target), and anything after the vertical bar is what the link looks like on the original page (the link label). For example:

a|b? appears as "b" but links to page "a", thus: b See Help:Pipe trick for how to generate some common forms of piped links without typing text after the "|".

Non-punctuation text immediately after the closing brackets of a wikilink becomes part of the label without changing the target. This is useful for plurals and verb forms. For example:

apple?s generates apples, linking to apple, and is equivalent to but more convenient than apple|apples?. More complicated examples:

a|b?c gives bc, equivalent to a|bc? . ab? gives ab. There are no special rules for text preceding a wikilink. a?:b gives a:b since the rule doesn't apply to punctuation. This does the right thing for possessives, like Washington?'s . a?b gives ab. (Double apostrophes turn on and off italics.) a?<nowiki />b gives ab. The nowiki tag turns off the rule. a|b?<nowiki />c gives bc. The link target is case-sensitive except for the first character (so atom? links to "Atom" but ATom? does not). Less common ways in which link targets are reinterpreted are described below.

If the target of a wikilink does not exist, it is displayed in red color and is called a "red link". Here is a red link example. If a red link is clicked, the user is taken to a blank page where it is possible to create a page using that red linked title. While on that blank page, other red links to this (non-existent) title can be detected using the "What links here" feature.

If the target of a link is the same as the page on which it appears (a self-link), it is displayed in bold font, as with: Help:Link.

When an edit is previewed before saving, if the target of a newly made link turns out to be a disambiguation page, such as the Peacemaker page, the link should be changed to one of the choices on that page unless the link is purposeful in a hatnote. If necessary, the new link can be piped, such as in Peacemaker (comics)|Peacemaker?, which appears as Peacemaker and links to the article about the fictional characters. Readers should not be directed to disambiguation pages unless there is no other option but to do so.

Attempting to link normally to an image page, category page or interlanguage link will produce a different effect: this will respectively place the image on the page, add the page to the category, or create an interlanguage link at the edge of the page. To override this behavior, insert an initial colon ":", as in [[:File:Mediawiki.png]], [[:Category:Help]], [[:fr:Help:Link]].

Inserting and deleting internal links Links are inserted and deleted when editing source simply by adding or removing pairs of square brackets enclosing text (plus handling piped links). There are some helpful tools:

When using the WikEd? source editor, selectable from Preferences > Gadgets > Editing, there is a "Wiki link" button (typically the first button on the bottom row). When editing, if some text is highlighted, clicking the Wiki link button will enclose it in double quotes, i.e., Wikilink it. If, however, some text is highlighted that includes one or more internal links—in many cases just a single internal link with its delimiting brackets—they will be removed instead. For a single link without pipe, the Wiki link button will toggle between linking and unlinking. When using the visual editor, selecting some text, then clicking the link icon above the text box (two links of a chain) will allow the link to be added, offering a selection of possible matches and the ability to pipe.

Last-modified: 2022-01-14 (金) 13:28:30 (4d)