draft
optional
This NIP defines kind:888
event for wiki articles.
Differences from NIP-54:
-
Wiki editors are de-emphasized. Finding out which article to display is up to the wiki application.
-
Wiki articles are regular events in order to carry edit history.
-
No underspecified redirection events in this NIP (will be re-added later)
-
No merges and deferences. These were adding extra work to article owners (merge) and contributors (after-merge).
{
"content": "A wiki is a hypertext publication collaboratively edited and managed by its own audience.",
"tags": [
["d", "wiki"],
["title", "Wiki"],
["summary", "<what-changed>"], // show in history view
["e", "<parent-event-id>"],
["y", "<root-event-id>"],
]
}
-
Any non-letter character MUST be converted to a
-
. -
All letters MUST be converted to lowercase.
The content
should be Asciidoc with two extra functionalities: wikilinks and nostr:… links.
Unlike normal Asciidoc links http://example.com[]
that link to external webpages, wikilinks [[]]
link to other articles in the wiki. In this case, the wiki is the entirety of Nostr. Clicking on a wikilink should cause the client to ask relays for events with d
tags equal to the target of that wikilink.
Wikilinks can take these two forms:
-
[[Target Page]]
— in this case it will link to the pagetarget-page
(according tod
tag normalization rules above) and be displayed asTarget Page
; -
[[target page|see this]]
— in this case it will link to the pagetarget-page
, but will be displayed assee this
.
nostr:...
links, as per NIP-21, should link to profiles or arbitrary Nostr events.