title | intro | redirect_from | product | versions | topics | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Editing wiki content |
You can add images and links to content in your wiki, and use some supported MediaWiki formats. |
|
{% data reusables.gated-features.wikis %} |
|
|
You can create links in wikis using one of the following formats. For example:
- If your pages are rendered with Markdown, the link syntax is
[Link Text](full-URL-of-wiki-page)
. - With MediaWiki syntax, the link syntax is
[[Nameofwikipage|Link Text]]
.
Wikis can display PNG, JPEG, and GIF images.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-wiki %}
-
Using the wiki sidebar, navigate to the page you want to change, and then click Edit.
-
In the wiki toolbar, click {% octicon "image" aria-hidden="true" %}.
-
In the "Insert Image" dialog box, type the image URL and the alt text (which is used by search engines and screen readers).
-
Click OK.
You can link to an image in a repository on {% data variables.product.github %} by copying the URL in your browser and using that as the path to the image. For example, embedding an image in your wiki using Markdown might look like this:
[[https://github.com/USERNAME/REPOSITORY/blob/main/img/octocat.png|alt=octocat]]
{% data reusables.getting-started.math-and-diagrams %}
No matter which markup language your wiki page is written in, certain MediaWiki syntax will always be available to you.
- Horizontal rules via
---
- Shorthand symbol entities (such as
δ
or€
)
For security and performance reasons, some syntaxes are unsupported.
- Transclusion
- Definition lists
- Indentation
- Table of contents