Editing Comrade:CriticalResist/sandbox/Hyperlink buttons on headings documentation

Warning: You are not logged in, comrade. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be instead attributed to your username.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 40: Line 40:


</blockquote>Pretty self-explanatory, the only catch is this:<blockquote>       /*$('.section-heading .mw-headline, .section-subheading .mw-headline').each(function() {*/</blockquote>Which has been commented out. Once we figure out how to make it work with level 1 headings, you can bring back '.section-heading .mw-headline, in the function -- the line right below this commented out piece of code is the exact same just without the level 1 headings included.
</blockquote>Pretty self-explanatory, the only catch is this:<blockquote>       /*$('.section-heading .mw-headline, .section-subheading .mw-headline').each(function() {*/</blockquote>Which has been commented out. Once we figure out how to make it work with level 1 headings, you can bring back '.section-heading .mw-headline, in the function -- the line right below this commented out piece of code is the exact same just without the level 1 headings included.
== Known issues ==
* had to disable lvl1 headings because if you click on the icon, it collapses the section for some reason (the button should take priority over the collapsing)
* If headings have the same name (such as Notes) it will take you to the first instance. Should be fixable easily by appending _2, _3 etc for each new instance which is what MediaWiki does.
ProleWiki upholds the abolition of private property, including intellectual property, so feel free to publish any work at will.
Cancel Editing help (opens in new window)