Rosetta Code:Village Pump/Link to task-section: Difference between revisions

update &section=0 "tip"
(mention Greasemonkey for making visible changes within the browser)
(update &section=0 "tip")
 
Line 18:
so the link to the first solution gets the number 1.
:That looks pretty ugly and it moves the task box (on the right) to a weird place. What was wrong with my suggestion from before that seems to have been erased? Just click the edit link on the first section and then add your desired categories above the <nowiki>==Header==</nowiki>. --[[User:Mwn3d|Mwn3d]] ([[User talk:Mwn3d|talk]]) 01:11, 27 October 2014 (UTC)
:: FYI, You can edit text ''before'' the first section by editing the first section, then changing the <code>&section=1</code> part of the URL to <code>&section=0</code>. (from [[wp:Wikipedia:Page_size#If_you_have_problems_editing_a_long_article|Wikipedia's help]]). Edit: actually you could also use the whole page edit link and then add <code>&section=0</code> to the end of the URL as well, although that will start loading the edit window with the whole document (which for long documents was what the WP help page was trying to avoid).
:: Also, you can reposition the contents with <code><nowiki>__TOC__</nowiki></code>. But that's a lot of mucking just to get an edit link IMO. &mdash;[[User:dchapes|dchapes]] ([[User talk:dchapes|talk]] | [[Special:Contributions/dchapes|contribs]]) 06:31, 27 October 2014 (UTC)
::: Ok, editing the first section, and changing the URL to use <code>&section=0</code> does what I was after.<br>So, no need for a changed template. Thanks for that tip ! --[[User:Hajo|Hajo]] ([[User talk:Hajo|talk]]) 15:25, 27 October 2014 (UTC)
::I suppose if you do that a lot and use a browser that supports something like Greasemonkey you could write a simple script to add such an edit link within your browser. Of course, better would be if it was a feature of the wiki itself. I do that kind of thing to add some automatic cross-site links to some web-sites. &mdash;[[User:dchapes|dchapes]] ([[User talk:dchapes|talk]] | [[Special:Contributions/dchapes|contribs]]) 16:25, 27 October 2014 (UTC)
Anonymous user