Help:Anchors

From WikiNASIOC
Jump to: navigation, search
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-

See also Help:Link#Anchorshttp://wiki.nasioc.com/wiki/Help:Link#Anchors.

Contents

Setting anchors

  • headers automatically become html anchors, which can be linked to.
  • The <a> tag is not allowed in MediaWiki, so we can't do the <a name="link here">, but we can do the "id" html attribute to almost any existing tag. For example, <div id="what_to_link_to">text</div> or <div id="what_to_link_to"/>text.

Referencing anchors

inside a regular wiki link [[page#anchor_name|shown_up_as]], include the hash sign (#) and the header name or the id tag name as you have written it.

Linking to a position in an external page

The HTML source of the target page needs to have <a name=..> or <.. id=..> at the target item as anchor to link to. Thus linking to a position in an external page for which this is not the case yet, one needs control over the target page, or cooperation of one who has.


Links to other help pages

Help contents | search (all help pages)
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s:
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Edit toolbar | Export
Editing shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Reference card
HTML in wikitext | HTML elements
List | Table | Sorting
Mathematical symbols on English Wikipedia
Special input and output
Inputbox | Special characters | Displaying a formula | Images and other uploaded files | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default | Variable | Magic word | System message | Substitution
Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Maintenance | Merging and moving pages | Protecting pages
Resolving disputes | Deleting a page
Special pages
Talk page | Testing | Sandbox
Lists of resources
Lists of Categories | Copyrights | Infobox
Redirect | Reference Desk | Shortcuts | Stub types


Other languages: English (en) fran├žais (fr) [1]