Igrock (обсуждение | вклад) Нет описания правки |
Nickolaus (обсуждение | вклад) м (Ненужная ссылка.) |
||
Строка 4: | Строка 4: | ||
<nowiki>{{anchor|Firesuit}}</nowiki> | <nowiki>{{anchor|Firesuit}}</nowiki> | ||
</pre> | </pre> | ||
The anchor template works for making internal links to specific parts of pages. For example, linking to | The anchor template works for making internal links to specific parts of pages. For example, linking to Engineering_items#Firesuit (Assuming you already have the anchor on the engineering items page to direct the link) will load the page focused on the firesuit. This is useful when you don't have a <nowiki>===header===</nowiki> for the item in the page. | ||
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. | 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. |
Текущая версия от 00:38, 21 января 2024
How to use
{{anchor|Firesuit}}
The anchor template works for making internal links to specific parts of pages. For example, linking to Engineering_items#Firesuit (Assuming you already have the anchor on the engineering items page to direct the link) will load the page focused on the firesuit. This is useful when you don't have a ===header=== for the item in the page.
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.