Named Page
Open a named page in the playground.
Selecting a link that points to the same playground page as the one containing the link has no effect.
For example, in the screenshot Overview.playground
is the first page and Adding Files.playground
is the last page.
Works with:
✓ Playgrounds
Symbol documentation
Syntax
[link name](name of the playground document to open)
Replace spaces in the name of the playground page with the ASCII character code for space (%20
).
Example: Simple Named Page Link
The markup below is for a named page link that opens a playground page called Adding Files.playground
.
//: [Adding Files](Adding%20Files)
The named page link is rendered as a link with the text "Adding Files" in rendered documentation, as shown in the screenshot.
Example: Named Page Links in Context
You can use named page links to build a table of contents. Lines 4-6 below are links to different pages. Each link is an item in a numbered list.
/*:
### Table of Contents
1. [Designing Your Tutorial](Designing)
2. [Creating the Tutorial Project](Creating)
3. [Adding Files](Adding%20Files)
*/
In the screenshot below, line 4 of the markup renders as link to the file Designing.playground
named "Designing Your Tutorial." Lines 5 and 6 render as list items two and three.
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05