Sidebar Test: Difference between revisions

From Abortion Risks
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
When a comment is created and associated with a specific paragraph in the wikitext of the individual page, a hook like <sb:xxxxx> is inserted in the text,<ref>This is the comment.  But instead of appearing as a reference at the bottom of the page, <sb> and </sb> bracket the text to appear as a sidebar comment next to the paragraph in which it is contained. </ref> where xxxxxx points to the sidebar revision ID tag used to retrieve the sidebar text for rendering on the displayed page. (The xxxxxx may be replaced with a user provided text which is actually linked to the equivalent of the sidebar-rev_text_id).
When a comment is created and associated with a specific paragraph in the wikitext of the individual page, a hook like <sb:xxxxx> is inserted in the text,<ref>This is the comment.  But instead of appearing as a reference at the bottom of the page, <sb> and </sb> bracket the text to appear as a sidebar comment next to the paragraph in which it is contained. </ref> where xxxxxx points to the sidebar revision ID tag used to retrieve the sidebar text for rendering on the displayed page. (The xxxxxx may be replaced with a user provided text which is actually linked to the equivalent of the sidebar-rev_text_id).
The mediawiki extension [https://www.mediawiki.org/wiki/Extension:Cite Cite] is a model of how inline text is rendered elsewhere in the page.  There is also [https://www.mediawiki.org/wiki/VisualEditor/Design/Reference_Dialog a discussion of how Cite is rendered in visual editor] which may give some insight into managing sidebar comments within [https://www.mediawiki.org/wiki/VisualEditor VisualEditor].

Revision as of 16:31, 16 February 2017

When a comment is created and associated with a specific paragraph in the wikitext of the individual page, a hook like <sb:xxxxx> is inserted in the text,[1] where xxxxxx points to the sidebar revision ID tag used to retrieve the sidebar text for rendering on the displayed page. (The xxxxxx may be replaced with a user provided text which is actually linked to the equivalent of the sidebar-rev_text_id).

The mediawiki extension Cite is a model of how inline text is rendered elsewhere in the page. There is also a discussion of how Cite is rendered in visual editor which may give some insight into managing sidebar comments within VisualEditor.

  1. This is the comment. But instead of appearing as a reference at the bottom of the page, <sb> and </sb> bracket the text to appear as a sidebar comment next to the paragraph in which it is contained.