1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-10 17:30:26 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/BlockMarkWidget.tid

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-16 06:26:37 +00:00
caption: block id
created: 20230916061829840
modified: 20230922150245402
2023-09-16 06:26:37 +00:00
tags: Widgets
2024-10-02 12:47:24 +00:00
title: BlockMarkWidget
2023-09-16 06:26:37 +00:00
type: text/vnd.tiddlywiki
! Introduction
2024-10-02 12:47:24 +00:00
The block id widget make an block mark that can be focused and jump to.
2023-09-16 06:26:37 +00:00
! Content and Attributes
2024-10-02 12:53:36 +00:00
The content of the `<$blockmark>` widget is ignored.
2023-09-16 06:26:37 +00:00
|!Attribute |!Description |
|id |The unique id for the block |
|previousSibling |`yes` means the block is before this node, in parent node's children list, else it means the block is this node's direct parent node. |
2023-09-17 12:11:59 +00:00
See [[Block Level Links in WikiText^🤗→AddingIDforblock]] for WikiText syntax of block ID.
2023-09-16 06:26:37 +00:00
! Example
2024-10-02 12:53:36 +00:00
<<wikitext-example-without-html """The block id widget is invisible, and is usually located at the end of the line. ID is here:<$blockmark id="BlockLevelLinksID1"/>
2023-09-16 06:26:37 +00:00
2024-10-02 12:47:24 +00:00
[[Link to BlockLevelLinksID1|BlockMarkWidget^BlockLevelLinksID1]]
2023-09-16 06:26:37 +00:00
""">>
<<wikitext-example """You can refer to the block that is a line before the block id widget. Make sure block id widget itself is in a block (paragraph).
2023-09-16 06:26:37 +00:00
2024-10-02 12:53:36 +00:00
ID is here:<$blockmark id="BlockLevelLinksID2" previousSibling="yes"/>
2023-09-16 06:26:37 +00:00
2024-10-02 12:47:24 +00:00
[[Link to BlockLevelLinksID2|BlockMarkWidget^BlockLevelLinksID2]]
2023-09-16 06:26:37 +00:00
""">>