== Background
We would like to begin building the table of contents by setting up a feature flag and url parameter that will allows us to display the persistent version of the table of contents
== Acceptance criteria
[x] Build feature flag for the table of contents that turns the new version of the ToC on and off
[x] Build url parameter for the table of contents
[x] When the feature flag is enabled the table of contents should not appear in the article body (this can be achieving by setting the skin option "toc" to false in the constructor of SkinVector
[x] Do not call the skin version code in the constructor. This is not possible to do in production. It should be possible to set inside SkinVector::generateHTML if necessary
== QA steps
- If testing locally, navigate to an article page (not using content provider) that has an existing Table of Contents (if a locally created page has headings, you can place "__TOC__" in edit source to get the inline (in the body) TOC).
- Test the following configuration:
```
$wgVectorTableOfContents = [
"default" => true
];
```
- When true, you should see the body TOC disappear and the following markup when toggling sidebar:
{F34886908}
- When false, you should see the body TOC and no TOC markup when toggling sidebar
- Test query param by setting default to false and adding `?tableofcontents=1` - you should see body TOC disappear and stick TOC markup appear.