User:Mcint/WikiMaxxing: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(→‎Feature: add Activity Indicators & Authoritative DB / access control ideas)
(→‎Idioms: add Special: links)
Line 87: Line 87:


Particularly nice in combination with <code><nowiki><code></nowiki></code> tags for content ready to copy into an edit area: <code><nowiki><code><nowiki>something in wiki or template syntax< /nowiki></code></nowiki></code>
Particularly nice in combination with <code><nowiki><code></nowiki></code> tags for content ready to copy into an edit area: <code><nowiki><code><nowiki>something in wiki or template syntax< /nowiki></code></nowiki></code>
=== Useful Special: links ===
Link to page for the logged-in, viewing user, themself:
* [[Special:MyPage]]
* [[Special:MyTalk]]
* [[Special:Preferences]]


== Gadgets ==
== Gadgets ==

Revision as of 17:30, 7 March 2024

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.

It begins, I've created a category: Category:Wiki/Project/Maxxing, to track and proselytize approaches to wiki structuring I've found.

Note well

Wanted: links to mediawiki syntax, tables syntax inline, inline external image.

Recommendations

Hello other users of the wiki!

Preferences

Gadgets

I recommend, in Special:Preferences#mw-prefsection-gadgets, the Navigation popups and section link (URL fragment) gadgets, to help you get around more easily and link more precisely for others.

If you're going to edit the wiki frequently, there's a "double-click to edit" preference as well, and an EditTop gadget for editing just the lead section, the introductory section rendered above the table of contents any headers, and appearing before the first = header #1 = in the [Help:WikiText wikitext].

Talk pages

AKA "Discussion" linked in the on-page header tabs. Use the "Add Topic" link that appears in the upper left to add a new topic, otherwise edit and reply within a section so other commenters, watching can get replies. IDK exactly how it works, not checking right now.

Markdown Conversion

https://pandoc.org/try/ convert markdown to mediawiki, or from one of the markdown variants.

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

Shortcuts

  • When editing, with editor open: ctrl-opt-p - preview, ctrl-opt-s - save, (ctrl-opt-v - show changes/diff)
  • When browsing, go to your own userpage: Special:Mypage with ctrl-opt-..
  • In editing or browsing context: Toggle watchlist with ctrl-opt-w.

Links

Help:Links

Interwiki

Special:Interwiki. Allowing short links to other wikis, for example (mouseover or click) mw:, wp:, mw:Interwiki, arxiv:2306.03423, wp:Noisebridge

Idioms

Code - not quite quoting

  • For code, literal or copyable text, or config files, useful variants include:
<tt> <code>
<pre>

Collapsible

Collapsing, or folding away, content can be done with these idioms.

  • Collapsible: <div class="mw-collapsible">...</div>
  • Collapsed, i.e. default closed: <div class="mw-collapsible mw-collapsed">...</div>
  • Collapsed, subsection visible: <div class="mw-collapsible mw-collapsed">[visible]<span class="mw-collapsible-content">[hidden]</span></div>. (In my opinion, div/span > div/div. Flashes on load, but placeholds 1 line).
  • Collapsed (default closed), with blockquote: <div class="mw-collapsible mw-collapsed"> <blockquote> ... </blockquote> </div><br>

Example & sources, default collapsed:

Linking to sources:


Quoting: Quote template & Blockquote html

mw:Template:Quote

nowiki (quoting)

<nowiki>something in [[Wiki|wiki]], [external-link title], or {{template}} syntax</nowiki>

Particularly nice in combination with <code> tags for content ready to copy into an edit area: <code><nowiki>something in wiki or template syntax< /nowiki></code>

Useful Special: links

Link to page for the logged-in, viewing user, themself:

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!

Video Embed

You can now embed video! See mw:Extension:EmbedVideo#Tags for how to invoke it, with {{templates...}} or custom tags <youtube>https://www.youtube.com/watch?v=RYQY5-UepEk</youtube>

In wikitext, use #ev / #evu / #evt templates: {{#evu:https://www.youtube.com/watch?v=RYQY5-UepEk}}

Features

Wants

  • Fix the favicon.

Feature

Graphical Category Browser

References

  • References section - extract all URLs (or external links) into references footer section

Editors

  • Better editors
    • Visual Editor (maybe via/after an upgrade. IDK if requires some mw version), as available at least on Wikipedia, Mediawiki.
    • Side by side editing, no scrolling to find edit textbox, nor preview (or live preview).

Spam Handling

Username (Many spam, not all, have FirstLast123, fit in elsewhere) ( talk (good, rare if present) contribs (** major determinant of spam/ban-worthy. Navigation popups allow at-a-glance mouseover viewing block ) (is action-link) (groups,...) if part of any, good sign of real/approved. confirmed/autoconfirmed just mean 3+ day old account, clicked emailed link - low signal groups. (Created [datetime]) :shrug:

Activity indicators

Authoritative DB - eg membership

External Images - Consider Allowing

mw:Manual:$wgAllowExternalImages, and possibly limiting it by: mw:Manual:$wgAllowExternalImagesFrom, however it would be nice to update by an admin user via the wiki

Extensions: to install


The Diagrams extension displays GraphViz, Mscgen, PlantUML, and Mermaid diagrams in a wiki. It can be configured to use a small web service to render the images.

It replaces the GraphViz, PlantUML, and Mermaid extensions in some ways, but does not (yet) support all features of all of them. The original reason for creating a new extension was to not store the rendered images as wiki files (as the GraphViz extension did), but it has changed to become a general diagramming extension.


Sources & Inspiration

Make (or find)

  • Gadget to toggle numbering of sections, on-page. Pref?
  • ...
  • (Gadget - easy-append todo list / TIL / notes / inbox. JS/AJAX on page, append / sections to personal page.)
  • (Gadget to import gadgets? - prb perms issues MediaWiki: ns, Special: ns)

Done!

...at least a little