User:Mcint/WikiMaxxing: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
Line 21: Line 21:


== Gadgets ==
== Gadgets ==
=== Try yourself ===
You can add your own, via your [[Special:Mypage/common.js]] (or [[Special:Mypage/global.js]]).
You can add your own, via your [[Special:Mypage/common.js]] (or [[Special:Mypage/global.js]]).
JS was enabled for the wiki per [https://www.mediawiki.org/wiki/Manual:Interface/JavaScript MW Manual] with <code>$wgAllowUserJs = true;</code>
JS was enabled for the wiki per [https://www.mediawiki.org/wiki/Manual:Interface/JavaScript MW Manual] with <code>$wgAllowUserJs = true;</code>
=== Enable for all ===
Relevant links. Note Namespaces / Prefixes and Gadget(s):
* [[Special:Gadgets]] - View-only list of gadgets in 3 parts: (bullet), 1) description, (Edit/Export), 2,3) Uses files: js / css.
* ? [[MediaWiki:Gadgets]
] -
* [[Special:Gadget-definition]
] -
* [[MediaWiki:Gadget-definition]
] - edit this. List of name/key, dependencies, js, css. Copy definitions from another wiki. (Or figure out how to write them, and talk about it!)
Constituents of Gadget-vector-headanchor, as an example:
* See [[Special:Gadgets]]
** [[MediaWiki:Gadget-vector-headanchor]] - display description
** [[MediaWiki:Gadget-vector-headanchor.js]] - filename (incidental named well, implying scope)
** [[MediaWiki:Gadget-vector-headanchor.css]] - filename (incidental named well, implying scope)
Instructions:
* Find Gadget worth trying on another wiki. MediaWiki & Wikipedia have numerous and well-used samples.
* (Try it via the person route above [[User:Mcint/WikiMaxxing#Try_yourself]]. If you like it, and think it should be shared, talk it over in Slack#wiki or Discord# ? metaguild?, and continue.)
* Open [[Special:Gadgets]]
** Copy definition string from other wiki's Special:Gadgets into this one, [[Special:Gadgets]].
** Follow the new linked definition files and create the pages, copying over the contents.
** Check all are loaded.
* Open your [[Special:Preferences#mw-prefsection-gadgets]]. Enable. Hard refresh an appropriate page to test it.
** Confirm it works & nothing else is obviously broken.
* Congrats!


= Features =
= Features =

Revision as of 22:36, 3 June 2023

I'm on-boarding myself to more extensive wiki use. I've come across some features on Wikipedia that make it more a of delight to use and navigate. I'd like to document those features here (separated, or tagged by reader vs. editor benefitting), and encourage others to try them out.

Note well

Differences

https://www.mediawiki.org/wiki/Differences_between_Wikipedia,_Wikimedia,_MediaWiki,_and_wiki

Preferences

  • Auto-number sections
  • (TODO: links to section head from self, not just from page's table of contents).

Trying out

ctrl-opt-.

ctrl-opt-.</kdb>

Idioms

  • For code, literal or copyable text, or config files, useful variants include:

<tt> / <code> /

<pre>


Gadgets

Try yourself

You can add your own, via your Special:Mypage/common.js (or Special:Mypage/global.js). JS was enabled for the wiki per MW Manual with $wgAllowUserJs = true;

Enable for all

Relevant links. Note Namespaces / Prefixes and Gadget(s):

  • Special:Gadgets - View-only list of gadgets in 3 parts: (bullet), 1) description, (Edit/Export), 2,3) Uses files: js / css.
  • ? [[MediaWiki:Gadgets]
] -
  • [[Special:Gadget-definition]
] -
  • [[MediaWiki:Gadget-definition]
] - edit this. List of name/key, dependencies, js, css. Copy definitions from another wiki. (Or figure out how to write them, and talk about it!)

Constituents of Gadget-vector-headanchor, as an example:

Instructions:

  • Find Gadget worth trying on another wiki. MediaWiki & Wikipedia have numerous and well-used samples.
  • (Try it via the person route above User:Mcint/WikiMaxxing#Try_yourself. If you like it, and think it should be shared, talk it over in Slack#wiki or Discord# ? metaguild?, and continue.)
  • Open Special:Gadgets
    • Copy definition string from other wiki's Special:Gadgets into this one, Special:Gadgets.
    • Follow the new linked definition files and create the pages, copying over the contents.
    • Check all are loaded.
  • Open your Special:Preferences#mw-prefsection-gadgets. Enable. Hard refresh an appropriate page to test it.
    • Confirm it works & nothing else is obviously broken.
  • Congrats!

Features

Wants

  • Also, the rich editor as available at least on wikipedia.