Template:Tour step: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
One step of the guided tour: readable on the wiki, read by magenta (magenta#393) (via create-page on MediaWiki MCP Server) |
Automated edit (via update-page on MediaWiki MCP Server) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="tour-step" style="margin:.4em 0 .4em 1em;padding:.3em .6em;border-left:3px solid #c0f;"><b>{{{at|}}}</b>{{#if:{{{needs|}}}| <small>({{{needs}}} only)</small>}} — {{{text|}}}{{#if:{{{try|}}}| <i>Try it: the tour waits for your click.</i>}}</div></includeonly><noinclude> | <includeonly><div class="tour-step" style="margin:.4em 0 .4em 1em;padding:.3em .6em;border-left:3px solid #c0f;"><b>{{{at|}}}</b>{{#if:{{{needs|}}}| <small>({{{needs}}} only)</small>}} — {{{text|}}}{{#if:{{{try|}}}| <i>Try it: the tour waits for your click.</i>}}</div></includeonly><noinclude> | ||
One step of [[Magenta:Tour|the guided tour]]. On the wiki it renders as a readable line; on magenta it is data: the page's trusted revision is parsed by <code>services/tour.py</code> (magenta#393), and each call becomes a card beside the part of the page it names. Edit the Tour and the live tour changes, once a trusted editor has verified the revision. No deploy. | One step of [[Magenta:Tour|the guided tour]]. On the wiki it renders as a readable line; on magenta it is data: the page's trusted revision is parsed by <code>services/tour.py</code> (magenta#393), and each call becomes a card beside the part of the page it names. Edit the Tour and the live tour changes, once a trusted editor has verified the revision. No deploy. | ||
| Line 10: | Line 10: | ||
=== Parameters === | === Parameters === | ||
* '''at''' — the part of the page the step points at: a <code>data-tour</code> name in magenta's markup (letters, digits, hyphens). Required. A step naming an anchor the page doesn't have is skipped on the live site and listed on [https://magenta.cryptograss.live/moods/status/ the status page], under "The tour". | * '''at''' — the part of the page the step points at: a <code>data-tour</code> name in magenta's markup (letters, digits, hyphens). Required. A step naming an anchor the page doesn't have is skipped on the live site and listed on [https://magenta.cryptograss.live/moods/status/ the status page], under "The tour". | ||
* '''text''' — a sentence or two. Required. <code><nowiki>[[Page]]</nowiki></code> and <code><nowiki>[[Page|words]]</nowiki></code> become links to PickiPedia, <code>'''bold'''</code> and <code>''italic''</code> come through; nothing else does, and any template inside is dropped. '''A bare <code>|</code> splits the call''': inside <code><nowiki>[[...]]</nowiki></code> it is fine, anywhere else use <code>&#124;</code>. | * '''text''' — a sentence or two. Required. <code><nowiki>[[Page]]</nowiki></code> and <code><nowiki>[[Page|words]]</nowiki></code> become links to PickiPedia, <code>'''bold'''</code> and <code>''italic''</code> come through; nothing else does: HTML tags such as <code><code></code> show as literal text in the overlay, and any template inside is dropped. '''A bare <code>|</code> splits the call''': inside <code><nowiki>[[...]]</nowiki></code> it is fine, anywhere else use <code>&#124;</code>. | ||
* '''try''' — <code>yes</code>: the step waits for the visitor to click what it points at, instead of a Next button (driver.js <code>advanceOnClick</code>). | * '''try''' — <code>yes</code>: the step waits for the visitor to click what it points at, instead of a Next button (driver.js <code>advanceOnClick</code>). | ||
* '''needs''' — who the step is for: <code>signin</code> (any sign-in), <code>key</code> (an SSH-key sign-in), <code>voice</code> (voice enabled), or <code>signedout</code> (only a visitor who isn't signed in). A visitor without it skips the step. Anything else is ignored. | * '''needs''' — who the step is for: <code>signin</code> (any sign-in), <code>key</code> (an SSH-key sign-in), <code>voice</code> (voice enabled), or <code>signedout</code> (only a visitor who isn't signed in). A visitor without it skips the step. Anything else is ignored. | ||
Latest revision as of 22:32, 4 November 2026
One step of the guided tour. On the wiki it renders as a readable line; on magenta it is data: the page's trusted revision is parsed by services/tour.py (magenta#393), and each call becomes a card beside the part of the page it names. Edit the Tour and the live tour changes, once a trusted editor has verified the revision. No deploy.
Usage
{{Tour step|at=composer|text=Type here. '''Enter''' sends; Ctrl+Enter is a new line.|needs=signin}}
{{Tour step|at=more-menu|text=Open ⋯ for pin, promote, copy, edit and delete.|try=yes|needs=signin}}
Parameters
- at — the part of the page the step points at: a
data-tourname in magenta's markup (letters, digits, hyphens). Required. A step naming an anchor the page doesn't have is skipped on the live site and listed on the status page, under "The tour". - text — a sentence or two. Required.
[[Page]]and[[Page|words]]become links to PickiPedia,boldanditaliccome through; nothing else does: HTML tags such as<code>show as literal text in the overlay, and any template inside is dropped. A bare|splits the call: inside[[...]]it is fine, anywhere else use|. - try —
yes: the step waits for the visitor to click what it points at, instead of a Next button (driver.jsadvanceOnClick). - needs — who the step is for:
signin(any sign-in),key(an SSH-key sign-in),voice(voice enabled), orsignedout(only a visitor who isn't signed in). A visitor without it skips the step. Anything else is ignored.
The anchors
The names the page has, as of magenta#393: moods, mood-bar, pins, sign-in, composer, emergents-bar, attach, memo, message-actions, more-menu, todo, search, jump, bell, nav-tidings, nav-polls, faq, user-menu, help, voice-mode. The status page's "The tour" card is the live list: it names steps with no anchor and anchors with no step, both ways.