Links and related pages
Links to wiki pages in statements and pages, their previews, and a problem's related pages.
A link in the text
Section titled “A link in the text”You can link a wiki page from another wiki page or from a problem statement.
- Type
[[and a few letters of the page’s title. - Pick the page with ↑ ↓ and press Enter (or Tab). Esc closes the list.
- What you typed is replaced by the page’s title, which is the link.
The search ignores case and Lithuanian accents; titles that start with what you typed come first.
You can also link text you have already written: select it, choose Link (Ctrl K), pick Wiki page and find the page. With no text selected, the page’s title is inserted.
You can link pages you may read: published pages, and drafts you edit. Archived pages aren’t offered.
Pasting a page’s address
Section titled “Pasting a page’s address”You can also paste a wiki page’s address, for example copied from the browser’s address bar: https://…/wiki/…, or just /wiki/….
- With no text selected, the page’s title is inserted as the link.
- With text selected, that text becomes a link to the page.
While the app checks the page, the address shows as an ordinary link for a moment. If the page doesn’t exist, you can’t open it, or it is archived, it stays an ordinary link. Undo (Ctrl Z) right after the change brings the address back.
Paste as plain text (Ctrl Shift V, on a Mac ⌘ ⇧ V) pastes the address as it is. Other addresses paste as usual: other sites, other parts of the app, and a link to a section of a page (ending in #…), since a wiki link always opens the whole page. Inside code nothing changes.
Previews while you edit
Section titled “Previews while you edit”Links in the editor show the same preview as for readers (see below), so you can check where a link goes without leaving the page:
- rest the pointer on a link for a moment, or
- move the caret onto it with the arrow keys.
The preview never appears while you type, click or select text, and Esc closes it. It shows the page as you see it: “Page unavailable” means that you can’t open it either (or that it no longer exists).
How readers see links
Section titled “How readers see links”A link looks like any other link. When the pointer rests on it (for about 0.4 s) or it gets keyboard focus, a preview appears: where the page is in the wiki, its title, who can read it, its first paragraph and its first image. Touch screens show no preview; a tap simply follows the link. The page opens in its own tab in the app, or in the tab already showing it.
| Page | What the preview shows |
|---|---|
| The reader can open it | An overview of the page. |
| Archived | “This page has been archived.” |
| Doesn’t exist, or the reader can’t open it (another organisation’s page, a draft) | “Page unavailable” |
staff/wiki/link-previewA problem’s related pages
Section titled “A problem’s related pages”Besides links in the statement, a problem can keep its own list of related wiki pages. The problem’s editors manage it in the Wiki card on the right of the problem editor.
- Open the problem for editing in the problem archive.
- In the Wiki card, select Add a page.
- Find and choose the page. It is added to the end of the list.
- The list saves at once; there is nothing to publish. It isn’t part of the statement, so the problem’s versions don’t affect it.
- Change the order from a row’s menu: Move up, Move down. Remove from the problem takes a page off the list.
- A problem can have up to 20 related pages.
- Archived pages can’t be added. A page added earlier and archived later stays on the list, marked Archived.
- A page you can’t open (for example, another organisation’s) shows as A page you can’t open. It stays when you change the list.
People who can’t edit the problem see the card without actions.
staff/wiki/problem-cardWhat students see
Section titled “What students see”Under the problem statement students see Related wiki pages: first the pages on the problem’s list, then the pages the statement links to, without duplicates. Only published, non-archived pages the student may read are listed; when there are none, the section is not shown. It appears on the problem page and in the code editor’s statement pane.
Organisation pages in wider problems
Section titled “Organisation pages in wider problems”When a problem reaches beyond the organisation (it is public, or belongs to another organisation), the Wiki card marks organisation pages with a warning: students of other organisations can’t open them. Links like that in the statement are flagged too.
What links to a page
Section titled “What links to a page”The Links here card in a page’s settings shows how often the page is used:
- Listed by problems: how many problems have it among their related pages;
- Linked in statements: how many problems’ statements link to it (every version of a statement counts);
- Linked from pages: how many other wiki pages link to it.
These numbers decide whether the page can be deleted or only archived; see Archiving and deleting.