User:Mcint/WikiMaxxing: Difference between revisions

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


== Idioms ==
== Idioms ==
=== Code - not quite quoting ===
* For code, literal or copyable text, or config files, useful variants include:
* For code, literal or copyable text, or config files, useful variants include:
<tt>&lt;tt&gt;</tt> / <code>&lt;code&gt;</code> / <pre>&lt;pre&gt;</pre>
<tt>&lt;tt&gt;</tt> / <code>&lt;code&gt;</code> / <pre>&lt;pre&gt;</pre>


=== Folding ===
[https://www.mediawiki.org/wiki/Manual:Collapsible_elements mw:Manual:Collapsible_elements] describes
Add the class mw-collapsible to any element (div, table, list, anything) to trigger it.
[https://www.mediawiki.org/wiki/Manual:Collapsible_elements#With_specified_collapsible_part Manual:Collapsible_elements#With_specified_collapsible_part]
<div class="toccolours mw-collapsible mw-collapsed">example collapsed default</div>


== Gadgets ==
== Gadgets ==

Revision as of 22:50, 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

Code - not quite quoting

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

<tt> / <code> /

<pre>

Folding

mw:Manual:Collapsible_elements describes

Add the class mw-collapsible to any element (div, table, list, anything) to trigger it.

Manual:Collapsible_elements#With_specified_collapsible_part

example collapsed default

Gadgets

Pages for testing, viewing, & changing your experience:

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, open these first. Note Namespaces / Prefixes and Gadget(s). In order least-to-most sensitive:

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.