Difference between revisions of "Documentation Primer/Manual/DocBook Reference/Linking"

Jump to: navigation, search
(Corrected links)
 
Line 16: Line 16:
  
 
<!--T:5-->
 
<!--T:5-->
:A link that refers to a document using it's URI.  Use this for websites and ftp sites, but not for [[#email|email addresses]], which have their own specific tag.  Please do ''not'' use this to link to other documents on the local system.
+
:A link that refers to a document using it's URI.  Use this for websites and ftp sites, but not for [[Special:myLanguage/Documentation Primer/Manual/DocBook Reference/Linking#email|email addresses]], which have their own specific tag.  Please do ''not'' use this to link to other documents on the local system.
  
 
<!--T:6-->
 
<!--T:6-->
Line 47: Line 47:
 
<!--T:14-->
 
<!--T:14-->
 
{{Prevnext2
 
{{Prevnext2
| prevpage=Documentation Primer/Manual/DocBook Reference/Chapters and Sections
+
| prevpage=Special:myLanguage/Documentation Primer/Manual/DocBook Reference/Chapters and Sections
 
| prevtext=Chapters and Sections
 
| prevtext=Chapters and Sections
| nextpage=Documentation Primer/Manual/DocBook Reference/Lists
+
| nextpage=Special:myLanguage/Documentation Primer/Manual/DocBook Reference/Lists
 
| nexttext=Lists
 
| nexttext=Lists
| index=Documentation Primer/Manual
+
| index=Special:myLanguage/Documentation Primer/Manual
 
| indextext=Back to Menu
 
| indextext=Back to Menu
 
}}
 
}}
  
 
</translate>
 
</translate>

Latest revision as of 11:27, 9 September 2012

Other languages:English 100%

[edit] The linking elements

<link linkend="">

The most common link. Use this to turn a word or phrase into a link to another part of the document. linkend is the only attribute we use.

<ulink url="">

A link that refers to a document using it's URI. Use this for websites and ftp sites, but not for email addresses, which have their own specific tag. Please do not use this to link to other documents on the local system.

<anchor id="">

Marks a place in the document, which you can use to link to. Note that the id attribute on any other element where it is valid, will automatically generate an HTML anchor in generated HTML, so you do not need to duplicate these. Use anchors only when you need to jump into the middle of a longer page, for example, to a particular menu item, or to a particular option in a preference dialog.
noframe
 
Note
<anchor> is an empty element, and must be closed with a /.

<xref linkend="">

A cross reference to another part of the document. Use this when you want to refer to the section without the name. This is one of very few unclosed elements allowed. linkend is the only attribute we currently use.
noframe
 
Note
<xref> is an empty element, and must be closed with a /.

<email>

Use this to enclose an email address. Don't add "mailto:" to the email address, and don't use <ulink url=""> for email addresses. No attributes required.

This page was last modified on 9 September 2012, at 11:27. This page has been accessed 1,165 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal