1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-25 08:26:52 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/BlockIdWidget.tid

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-16 06:26:37 +00:00
caption: block id
created: 20230916061829840
2023-09-17 12:11:59 +00:00
modified: 20230917121007649
2023-09-16 06:26:37 +00:00
tags: Widgets
title: BlockIdWidget
type: text/vnd.tiddlywiki
! Introduction
The block id widget make an anchor that can be focused and jump to.
! Content and Attributes
The content of the `<$blockid>` widget is ignored.
|!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
<<wikitext-example-without-html """The block id widget is invisible, and is usually located at the end of the line. ID is here:<$blockid id="BlockLevelLinksID1"/>
2023-09-16 06:26:37 +00:00
[[Link to BlockLevelLinksID1|BlockIdWidget^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
ID is here:<$blockid id="BlockLevelLinksID2" previousSibling="yes"/>
2023-09-16 06:26:37 +00:00
[[Link to BlockLevelLinksID2|BlockIdWidget^BlockLevelLinksID2]]
2023-09-16 06:26:37 +00:00
""">>