Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Anchor/doc: Difference between revisions

Template page
clean up TemplateData, link to module
m Fix Linter errors.
Line 30: Line 30:
|usage-notes        =  
|usage-notes        =  
1. <code style="color:green;"><nowiki>{{anchor|foo}}</nowiki></code>
1. <code style="color:green;"><nowiki>{{anchor|foo}}</nowiki></code>
: could be linked to with <tt><nowiki>[[#foo|...]]</nowiki></tt> from within the same article,  
: could be linked to with <code><nowiki>[[#foo|...]]</nowiki></code> from within the same article,  
: or it could be linked to with <tt><nowiki>[[</nowiki>''<small>articlename</small>''#foo<nowiki>|…]]</nowiki></tt> from other articles and from redirects.
: or it could be linked to with <code><nowiki>[[</nowiki>''<small>articlename</small>''#foo<nowiki>|…]]</nowiki></code> from other articles and from redirects.


2. Anchors can be more suitable for inter-article linking than section titles are. For example,
2. Anchors can be more suitable for inter-article linking than section titles are. For example,
:<code style="color:green;"><nowiki>=={{anchor|foo}}</nowiki></code><code style="color:gray;"> Section title <nowiki>==</nowiki></code>
:<code style="color:green;"><nowiki>=={{anchor|foo}}</nowiki></code><code style="color:gray;"> Section title <nowiki>==</nowiki></code>
:Here, links via <tt><nowiki>[[</nowiki>''articlename''#foo<nowiki>]]</nowiki></tt> would remain valid even if the section were renamed.
:Here, links via <code><nowiki>[[</nowiki>''articlename''#foo<nowiki>]]</nowiki></code> would remain valid even if the section were renamed.
|type              =  
|type              =  
|example            =  
|example            =  
Cookies help us deliver our services. By using our services, you agree to our use of cookies.