Ativa o menu
Toggle preferences menu
Alternar menu pessoal
Não autenticado(a)
Your IP address will be publicly visible if you make any edits.

Predefinição:Anchor: mudanças entre as edições

De Estação Andrômeda
Porfavor tem que dar certo
 
Sem resumo de edição
 
Linha 1: Linha 1:
{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<noinclude>
{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<noinclude>
== Как использовать? ==
== How to use ==
<pre>
<pre>
<nowiki>{{Anchor|Firesuit}}</nowiki>
<nowiki>{{Anchor|Bread}}</nowiki>
</pre>
</pre>
Этот шаблон позволяет создавать внутренние ссылки на конкретные части страниц. Без этого шаблона мы можем создавать ссылки только на заголовки (== Заголовок ==).
The anchor template works for making internal links to specific parts of pages. For example, linking to [[Syndicate Items#EMAG]] (Assuming you already have an anchor on the syndicate items page to direct the link) will load the page focused on the EMAG. This is useful when you don't have a header for the item in the page or it's part of a table.


Важное замечание: Если у страницы уже есть заголовок с таким же названием, как у якоря (''anchor''), этот шаблон перенаправит пользователя на заголовок, в случае, если тот расположен выше якоря. Если возникает такая проблема, надо просто немного изменить название якоря.
Important note though; If the page already has a header with the same name as an anchor, a link to anchored item will go to whichever is first. so if the anchor is higher than the header, it will go to the anchor and vice versa. Alternatively, you can just make the anchor have a slightly different name to fix this.


[[Категория:Служебные Шаблоны]]
[[Category:Templates]]
</noinclude>
</noinclude>

Edição atual tal como às 19h26min de 6 de maio de 2025

How to use

{{Anchor|Bread}}

The anchor template works for making internal links to specific parts of pages. For example, linking to Syndicate Items#EMAG (Assuming you already have an anchor on the syndicate items page to direct the link) will load the page focused on the EMAG. This is useful when you don't have a header for the item in the page or it's part of a table.

Important note though; If the page already has a header with the same name as an anchor, a link to anchored item will go to whichever is first. so if the anchor is higher than the header, it will go to the anchor and vice versa. Alternatively, you can just make the anchor have a slightly different name to fix this.