Difference between revisions of "InterPageLinks"
m (link fix) |
(This finally works) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
Interpage linking is trivial to accomplish with raw HTML, as you can embed named anchors on pages with <tt><nowiki><a name="anchorname"></nowiki></tt> tags. If a page like <tt>foo</tt> has such a tag in a section, then a URL containing <tt>foo#anchorname</tt> will lead right to this section. | Interpage linking is trivial to accomplish with raw HTML, as you can embed named anchors on pages with <tt><nowiki><a name="anchorname"></nowiki></tt> tags. If a page like <tt>foo</tt> has such a tag in a section, then a URL containing <tt>foo#anchorname</tt> will lead right to this section. | ||
− | [[UseModWiki]] has | + | Fortunately, now that [[UseModWiki]] has been ditched, this type of linking is quite simple. Any time you use a section header in a page, MediaWiki software automatically creates a named anchor for it (with the name set to the text of the header). Further, the linking markup contains a shorthand for linking to these anchors. |
− | + | For example, the [[ReaderCentricDesign]] page contains sections, including one called "Going Forward" section. Any of the following will link directly to that section: | |
− | + | :<tt><nowiki>[[ReaderCentricDesign#Going Forward]]</nowiki></tt> -> [[ReaderCentricDesign#Going Forward]] | |
− | + | :<tt><nowiki>[[ReaderCentricDesign#Going Forward|how to go forward]]</nowiki></tt> -> [[ReaderCentricDesign#Going Forward|how to go forward]] | |
− | |||
− | |||
− | |||
− | :<tt><nowiki>[[ReaderCentricDesign# | ||
− | :<tt><nowiki>[[ReaderCentricDesign# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 15:43, 21 April 2010
In rereading ReaderCentricDesign, I realized that items on individual pages is not a minimum condition for it. The minimum condition is individual references. That is, there can be many items on a given page, as long as it is possible to link directly to them from other pages. This is possible with interpage linking, which allows a web link to target a specific section of a page, provided that section is marked in a special way.
Interpage linking is trivial to accomplish with raw HTML, as you can embed named anchors on pages with <a name="anchorname"> tags. If a page like foo has such a tag in a section, then a URL containing foo#anchorname will lead right to this section.
Fortunately, now that UseModWiki has been ditched, this type of linking is quite simple. Any time you use a section header in a page, MediaWiki software automatically creates a named anchor for it (with the name set to the text of the header). Further, the linking markup contains a shorthand for linking to these anchors.
For example, the ReaderCentricDesign page contains sections, including one called "Going Forward" section. Any of the following will link directly to that section:
- [[ReaderCentricDesign#Going Forward]] -> ReaderCentricDesign#Going Forward
- [[ReaderCentricDesign#Going Forward|how to go forward]] -> how to go forward