Jim Hu <jimhu@...> writes:
I see. On the page at the link I now notice that there are things
like 5A (039). I'm guessing that 5A is the non-stateful and (039) is
the stateful/permalink. So if you deleted the paragraph, the one
that's currently 5B (040) would become 5A (040), keeping its stateful
tag and changing its non-stateful tag. If you inverted the paragraphs
you'd get 5A(040) and 5B(039).
But if you edit inside a paragraph, you'd have to decide whether to
treat the stateful tag as unaffected or needing replacement. Given
the way wikitext evolves, this could be interesting. It gets close to
the old question of whether you ever step into the same river twice.
Seems like there will be lots of thought provoking edge cases, such as
paragraphs that embed templates or extension tags. Thinking about how
to do purple numbering on an embedded RSS feed makes my brain
explode! It seems like this is most useful for things like Project
Gutenberg, where the text is pretty static.
And you can distribute the extension via
mediawiki.org without an svn
account. A lot of us just link to our own projects.
Jim
Jim,
When we say that a purple number is stateless (HID), we mean it is not stored in
database. Its generated every time page is rendered unlike NID which are
stateful and are stored in database along with the wiki page. When a user edits
a line in paragraph, nid's dont change, but when a new paragraph (or any other
element) is added a new NID (unique to the page) is generated for that paragraph
or when a paragraph is deleted, its corresponding NID is also deleted.
One reason we dont want to change NID associated with the paragraph every time
it is edited is because we are also implementing transclusion at HID / NID level
and we want to show the latest data that the transcluded node has.
Tejas Parikh