Wikitext link to file




















Note that if you forget to use the initial colon, you will instead be embedding an image. You can use the pseudo-namespace "Media" to link to the actual file on MediaWiki pages.

The link will not take you to the file description page, but instead will deliver the file itself. If the above pattern actually produces a text link to the file description page, instead of the expected link to the actual file, it may be that your wiki's namespaces are configured out of compliance with this feature.

Unlike the above example, you can link to it from external websites as well as from MediaWiki pages. The parameters height and width can also be added to return a specific size of the image. Imagine you're trying to create a link to Community Central:Admins and mods , but you don't want to show the words Community Central. Just add a single pipe at the end, and the software will do its thing.

When you go back to edit the text, you'll find that the pipe trick has resulted in the full form, [[Community Central:Admins and mods Admins and mods]]. A slash trick is related to the pipe trick, but it helps you quickly link to subpages from the main page.

If you were on Help:Links , you could link here by typing:. When editing in source mode, a link suggestion feature will suggest the names of existing pages and files based on what you type. This is helpful if you cannot remember a precise name to create a link.

You can dismiss the link suggestions box by pressing the "Esc" key, and you can disable it entirely from the Editing tab of Special:Preferences by checking the " Do not show link suggest in Source mode " option.

When linking to a category for demonstrative purposes rather than for categorizing a page, or if you want to link to an image file page without the actual image showing, put a colon after the double opening square brackets, like this: [[:Category:Browse]] which will look like this: Category:Browse , and [[:File:Site-logo.

If you want to link to a section of a page, make sure the page section is marked by a header. Then, at the end of your regular link, put a hash followed by the section name. Clicking that kind of links wouldn't reload the page. So, for example, [[File:Site-logo. If you want to change the color of one individual link as opposed to every link on that wiki , you will need to use span tags and CSS on the pipe side of your link.

Community Central. This kind of text is not rendered in the page body, but all categories in a page is displayed in a separate section. To link to the category itself, insert a colon at the beginning, for example, "[[:Category:Entertainment]]".

Sort keys are specified by appending a pipe followed by the sort key after the category name. Sort keys are used to modify a page's sort order as it appears in a Category page. For example, it is a convention to sort English people by surname, so a sort key like "Smith, John" for example, [[Category:Representative names Smith, John]].

A link to another language version of the wiki or another wiki a list of these wikis is stored in an interwiki table may be specified using link syntax, as in the Categories section. Inter-language links themselves are not displayed, but all such links are displayed in a separate section. Table rows start with a vertical bar and hyphen combination " -" and end with another of such or the end of the table.

Combinations of these may also be used. Table headings may be in either the start of the table without starting a row or in a row, using the exclamation mark "! Preformatted text can be rendered by using leading spaces in each line. Pages other than those in the Template namespace may also transcluded by including the namespace name. Pages in the Main namespace are just preceded by a colon. Parameters are called by adding a pipe, followed by the parameter name, the equals sign, and the parameter value in the template call.

When the parameter name is not specified, numbers are assumed, starting from 1. Default parameter values can be specified by adding a pipe followed by the default text to the parameter name. Just a pipe added indicates blank default value. If there is no default text, the parameter name together with the triple brackets will not be rendered. Templates, parameters and default values may be nested together with their wikitext.

The pipe character is escaped by using an XML entity or by using a page, usually named Template:! Transcluding this template has the effect of not making it a default parameter value separator.

Templates may be substituted, that is, the template call will itself be replaced with its content, by inserting "subst:" before the template name. If 'alt' is not specified and a caption is provided, the alternative text will be created automatically from the caption, stripped of formatting, except when in thumb or frame mode since the caption is already readable by screen readers in that case.

When the height of an image in thumbnail is bigger than its width i. The alternative is to specify the desired maximum height in pixels explicitly. Note that when using the frame or thumb[nail] formats, the default horizontal alignment will be right for left-to-right languages, and left for right-to-left languages.

The vertical alignment options take effect only if the image is rendered as an inline element and is not floating. Note that the rendered line of text where inline images are inserted and the lines of text rendered after the current one may be moved down this will increase the line-height conditionally by additional line spacing, just as it may occur with spans of text with variable font sizes, or with superscripts and subscripts to allow the image height to be fully displayed with this alignment constraint.

On occasion it is desirable to stop text or other inline non-floating images from flowing around a floating image. All images rendered as blocks including non-floating center ed images, left - or right -floating images, as well as framed or thumbnail ed floating images are implicitly breaking the surrounding lines of text terminating the current block of text before the image, and creating a new paragraph for the text after them.

They will then stack vertically along their left or right alignment margin or along the center line between these margins for center ed images. The following table shows how to alter the link target whose default is the image description page or how to remove it. Changing the link does not alter the format described in the previous sections. The syntax is:. Some of the parameters controlling thumb output can also be used here, specifically the ones that modify the file as opposed to ones that control where in the page the image falls.

The File: prefix can be omitted. However, it is helpful to include it as an aid for quickly locating image specifiers in the wikitext for example, when cleaning up page layout. Astronotus ocellatus Oscar. Salmo salar Salmon Larva. Epinephelus lanceolatus Giant grouper. Pterois volitans Red Lionfish. Macropodus opercularis Paradise fish. Canthigaster valentini Valentinni's sharpnose puffer. Dactylopterus volitans Flying gurnard.

Semicossyphus pulcher California Sheephead.



0コメント

  • 1000 / 1000