Template:Anchor: Difference between revisions

From SEPsesam
(Created page with "{{#if:{{{1|<noinclude>1</noinclude>}}}|<ins id="{{{1|<noinclude>test-anchor</noinclude>}}}"> </ins>}} == Purpose == This allows to manually insert anchors to link to instead...")
 
No edit summary
Line 1: Line 1:
{{#if:{{{1|<noinclude>1</noinclude>}}}|<ins id="{{{1|<noinclude>test-anchor</noinclude>}}}"> </ins>}}
{{#if:{{{1|<noinclude>1</noinclude>}}}|<ins id="{{{1|<noinclude>test-anchor</noinclude>}}}"></ins>}}
 
== Purpose ==
== Purpose ==
This allows to manually insert anchors to link to instead of section headings in order to have ''anchors that work across languages''. Another usage is for linking to ''unlinkable parts'', such as a section of plain tex, a table (title or cell), etc.
This allows to manually insert anchors to link to instead of section headings in order to have ''anchors that work across languages''. Another usage is for linking to ''unlinkable parts'', such as a section of plain tex, a table (title or cell), etc.
== Usage ==
== Usage ==
<code><nowiki>{{</nowiki>{{anchor|target}}<nowiki>}}</nowiki></code>  
<tt><nowiki>{{anchor|target}}</nowiki></tt>  


This template should be used to manually define anchors for linking on pages that are going to be translated and linked from elsewhere, e.g., SEP sesam dashboard.
This template should be used to manually define anchors for linking on pages that are going to be translated and linked from elsewhere, e.g., SEP sesam dashboard.


== Example ==
== Example ==
<nowiki>=={{anchor|access}}Dashboard access== </nowiki>


<nowiki>=={{anchor|access}}Dashboard access== <br />/nowiki>
This will create link to anchor ''access'' rather than to ''Dashboard access'' and at the same time disable the latter (section heading) to serve as a link.
This will create link to anchor ''access'' rather than to ''Dashboard access'' and at the same time disable the latter (section heading) to serve as a link.


</noinclude>[[Category:Link templates]]
<noinclude>[[Category:Link templates]]
</noinclude>
</noinclude>

Revision as of 10:07, 10 June 2016

Purpose

This allows to manually insert anchors to link to instead of section headings in order to have anchors that work across languages. Another usage is for linking to unlinkable parts, such as a section of plain tex, a table (title or cell), etc.

Usage

{{anchor|target}}

This template should be used to manually define anchors for linking on pages that are going to be translated and linked from elsewhere, e.g., SEP sesam dashboard.

Example

=={{anchor|access}}Dashboard access==

This will create link to anchor access rather than to Dashboard access and at the same time disable the latter (section heading) to serve as a link.