User:Awesome Aasim/addmylinks
MyLinks | |
---|---|
Description | Adds "MyLinks" to the sidebar, where you can add links to pages that you frequently visit, like the Village pump or the administrators' noticeboard. |
Author(s) | Awesome Aasim |
Status | Stable |
First released | April 20, 2020 |
Updated | June 1, 2021 (3 years ago) |
Browsers | All |
Skins | All |
Source | User:Awesome Aasim/addmylinks.js |
MyLinks is a script that adds a customizable area for links and/or text to the sidebar. This works on Vector, Monobook, Modern, and Timeless skins.
The name comes from the wikiHow feature where you could add a customizable sidebar called "MyLinks" that will only appear on your sidebar.
Installation
[edit]Add
{{subst:iusc|User:Awesome Aasim/addmylinks.js}}
to your common.js file. This will add MyLinks to Wikipedia only.
To add mylinks to all Wikimedia projects:
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/addmylinks.js&action=raw&ctype=text/javascript");
on global.js.
On mobile, you will have to add function importScript(location) {
mw.loader.load( '/w/index.php?action=raw&ctype=text/javascript&title=' + location);
}
|
Configuration
[edit]The first time you add MyLinks, you will have to configure it. For global use, MyLinks has to be configured on a per-wiki basis. To do so, click on the [Create] button next to "My Links" on the wiki to configure. This will open an edit form where you can create your MyLinks page for the first time. You can use wikitext to create links and lists, like * [[Link]]
for a bulleted link. You can also add level 3 and higher headers to your MyLinks, although levels 1-2 are not supported right now. You can also visit this page to access your "My Links" page.
After configuration, you can edit "MyLinks" by clicking on [Edit] next to "My Links". This will open the sidebar "edit" form. You will be able to preview and save your MyLinks edit quickly from the sidebar.
Tip
If you do not want search engines to find your MyLinks page, add __NOINDEX__ to it. |
Sample MyLinks Page
[edit]You can use this as a starter to get to understand MyLinks.
Somereminder
* [[Page1]]
* [[Page2]]
* [[Page3]]
=== Group 1 ===
* [[Page4]]
* [[Page5]]
* [[Page6]]
Some more text
==== Group 1.1 ====
* [[Page7]]
===== Group 1.1.1 =====
* [[Page8]]
====== Group 1.1.1 ======
* [[Page9]]