Подскажите плиз как сделать ссылку на якорь в тексте?
Создаёте текстовый блок → жмёте на него → справа появляется значок шестерёнки, жмёте на него → появится кнопка «Якорь».
В кнопке «Якорь» вам нужно дать название этому блоку (например, 1), после жмёте Enter. Якорь готов, вам осталось поставить ссылку на слово, скоторого вы будете переходить на этот якорь. Выделяйте текст → сверху появится значок цепочки, туда вставляйте название якоря с решёткой (например, #1) → жмите Enter.
Спасибо. Подвох был в том, что я в конце Enter не жал )))
Лайк система не дает поставить ( Сорян, но спасибо, а то нигде не мог найти как именно в этом редакторе делается
Ссылки на конкретную часть статьи (якорь в статье)
Если вам нужно сослаться на конкретную часть статьи, вам на помощь придет макрос Анкер (Якорь). В этой статье будет рассмотрено, как разместить макрос и сделать ссылку.
Макрос Анкер (Якорь) добавляется так же, как остальные макросы — через меню вставки.
Добавляем название якоря.
Название составляется из букв латинского алфавита или цифр.
Вот так будет выглядеть якорь в редакторе статьи:
Чтобы потом сделать ссылку на этот якорь, нужно нажать на кнопку Вставить ссылку.
Выберите пункт Дополнительно и действуйте одним из следующих способов:
- чтобы сделать ссылку на якорь в той же статье — в поле Ссылка добавьте название якоря через #. Например , #AnchorName;
- чтобы сделать ссылку на якорь в другой статье — в поле Ссылка укажите название статьи, а потом к нему добавьте имя якоря через #. Например, Для новичков#endofarticle.
- чтобы сделать ссылку на якорь в другой статье, которая находится в ином пространстве — в поле Ссылка укажите ключ пространства, поставьте двоеточие, укажите название статьи и через # имя якоря. Например, SPASE_KEY: 2017 релизы сайта Example.exp#listofrelease.
Если вы разместите в начале статьи макрос Оглавление и откроете статью, вы сможете скопировать ссылку на конкретный пункт статьи.
Например, статья Как делать скриншоты в Monosnap нажмите правой кнопкой мыши на пункте оглавления и в выпадающем меню выберите Копировать адрес ссылки.
Anchors
You can use anchors to enable linking to specific locations on a page, and they can be especially useful for allowing your readers to navigate to specific parts of a long document. Anchors are invisible to the reader when the page is displayed.
There are two steps to using an anchor:
Step 1: Create the anchor
Add the Anchor Macro to mark the location you want to link to:
- Do either of the following in the Confluence editor:
- Choose Insert > Other Macros, then find and select the Anchor macro
- Type <and the beginning of the macro name, then select the Anchor macro
- Enter the Anchor Name (For example, ‘bottom’ or ‘important information’)
- Choose Insert
On this page:
Related pages:
Macro options (parameters)
Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets ( example ).
Anchor Name
This is the anchor name that you will use when creating the link.
- The anchor name can include spaces. Confluence will remove the spaces automatically when building a URL that points to this anchor.
- The anchor name is case sensitive. You must use the same pattern of upper and lower case letters when creating the link as you used when creating the Anchor macro.
Step 2: Create a link to the anchor
- A page on the same Confluence site. The link may be on the same page as the anchor, another page in the same space, or a page in another space on the same Confluence site.
- Another web page or another Confluence site, using a specifically formatted URL.
Link to an anchor on the same Confluence site:
- Select some text or position your cursor where you want to insert the link
- Choose Link in the toolbar or press Ctrl+K
Choose Advanced and enter the anchor name in the Link field, following the format below.
My page#important information
DOC:My page#important information
- Anchor names are case sensitive.
- Enter page and anchor names with spaces when you link to them in the same Confluence site. A good way to do this is to copy the page title exactly as appears on the page. Don’t copy the page URL, as we don’t want to include the + symbol).
- If you’re linking to an anchor on a different page that has special characters in its name, where the URL displays a page ID rather than a name, you should still enter the page name when linking to it.
Screenshot: The ‘Advanced’ option in the link dialog
Link to an anchor from another web page or another Confluence site:
Working with Anchors
Anchors are used to enable links to a specific location on a page. Anchor links can be especially useful when navigating between sections of a long document, or when you want to link to a segment of a page instead of the top of the page.
Anchors are invisible to the reader when the page is displayed.
There are two steps to using an anchor:
- Create an anchor on the page.
- Create a link to the anchor.
Creating an anchor
Use the Anchor macro to mark the location you want to link to.
- Add the Anchor macro to a page.
- In the Confluence editor, choose Insert > Other Macros.
- Find and select the required macro.
Speeding up macro entry with autocomplete:
To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.
On this page:
Related pages:
Macro options (parameters)
Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets ( example ).
Anchor Name
This is the anchor name that you will use when creating the link.
- The anchor name can include spaces. Confluence will remove the spaces automatically when building a URL that points to this anchor.
- The anchor name is case sensitive. You must use the same pattern of upper and lower case letters when creating the link as you used when creating the Anchor macro.
Creating a link to an anchor
You can link to an anchor from:
- A page on the same Confluence site. The link may be on the same page as the anchor, another page in the same space, or a page in another space on the same Confluence site.
- Another web page or another Confluence site, using a specifically formatted URL.
To link to an anchor from within the same Confluence site:
- Select some text or position your cursor where you want to insert the link.
- Choose Link on the toolbar or press Ctrl+K.
Choose Advanced and enter the anchor name in the Link field following the format below.
My page#important information
DOC:My page#important information
The anchor name is case sensitive. You must use the same pattern of upper and lower case letters as you used when creating the Anchor macro.
Screenshot: The ‘Advanced’ option in the link dialog
To link to an anchor from another web page or another Confluence site:
Use a full URL in the following format:
Link syntax
Notes about the full URL:
- The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
- There is a single dash (hyphen) between the concatenated page name and the anchor name.
- The anchor name in the full URL is concatenated into a single word, with all spaces removed.
- The anchor name is case sensitive. You must use the same pattern of upper and lower case letters as you used when creating the Anchor macro.
Code examples
Notes
- Table of contents on page: Consider using the Table of Contents Macro to generate a list of links pointing to the headings on the page. The list of links will appear on the page, and will be automatically updated each time someone changes the wording of a heading.
- Linking to headings: You can link directly to the headings of a page. See Working with Links. However, if someone changes the wording of a heading, those direct links will be broken. Use the Anchor macro to ensure a lasting link within the body of a page.
- Site welcome message: If you are adding an anchor to a page that you are using in the site welcome message, you can only link to that anchor from another page. Internal links within that page will not work.
- Templates: When you are previewing a template, a link to an anchor is displayed as a ‘broken’ link. However, when you create a page using the template the resulting page will have the correct link.
- Нет меток
Действует бесплатная лицензия открытого проекта Atlassian Confluence, предоставленная пользователю NORTH TECOM . Возможности Confluence