User:Mcint/WikiMaxxing
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[edit | edit source]
Wanted: links to mediawiki syntax, tables syntax inline, inline external image.
Recommendations[edit | edit source]
Hello other users of the wiki!
Preferences[edit | edit source]
Gadgets[edit | edit source]
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[edit | edit source]
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[edit | edit source]
https://pandoc.org/try/ convert markdown
to mediawiki
, or from one of the markdown variants.
Differences[edit | edit source]
https://www.mediawiki.org/wiki/Differences_between_Wikipedia,_Wikimedia,_MediaWiki,_and_wiki
Preferences[edit | edit source]
- Auto-number sections
- (TODO: links to section head from self, not just from page's table of contents).
Trying out[edit | edit source]
Shortcuts[edit | edit source]
- 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[edit | edit source]
Interwiki[edit | edit source]
Special:Interwiki. Allowing short links to other wikis, for example (mouseover or click) mw:, wp:, mw:Interwiki, arxiv:2306.03423, wp:Noisebridge
Idioms[edit | edit source]
Code - not quite quoting[edit | edit source]
- For code, literal or copyable text, or config files, useful variants include:
<tt> | <code>
|
<pre> |
Collapsible[edit | edit source]
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:
- mw:Manual:Collapsible_elements describes
Add the class
. Addmw-collapsible
to any element (<div>
, table, list, anything) to trigger it.mw-collapsed
as an additional class to default it closed, hidden. - mw:Manual:Collapsible_elements#With_specified_collapsible_part
Quoting: Quote template & Blockquote html[edit | edit source]
nowiki (quoting)[edit | edit source]
<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>
Transclusion & Templates[edit | edit source]
Partial transclusion[edit | edit source]
By using "noinclude", "onlyinclude" and "includeonly" markup, it is possible to transclude part of a page rather than all of it. Such partial transclusions can also be achieved by transcluding from other pages such as subpages. It is often desirable not to transclude some information, such as template documentation and categories.
Examples of when to use full versus partial transclusion[edit | edit source]
Use full transclusion when you want to include the full content of a source page in a target page. For example, you could include the full content of a page about apples in a page about tree fruits. Use partial transclusion when you only want to include part of a source page in a target page. For example, you could include only information about Granny Smith apples from a page about apples in a page about ingredients commonly used in baking.
Partial transclusion markup[edit | edit source]
- noinclude - The markup <noinclude>...</noinclude> means that the text between the tags is visible exclusively on the source page and cannot be transcluded onto another page. This is useful for template documentation and categories.
- includeonly - The markup <includeonly>...</includeonly> means that the text between the tags will be hidden on the source page and visible only when transcluded onto a different page. This can be useful, for example, for adding categories to pages transcluding a template, without adding the template itself to these categories.
- onlyinclude - The markup <onlyinclude>...</onlyinclude> means that the text between the tags will be visible on the source page and visible when transcluded onto a different page. This is the most subtle of the partial transclusion tags because it often overrules the others. If there is at least one pair of "onlyinclude" tags on a page, then whenever this page is transcluded, it is only the material within the "onlyinclude" tags that is transcluded. There can be several such "onlyinclude" sections on a page. This can be useful, for example, to repeat a small part of one page on a second one: just surround the small part by onlyinclude tags, and transclude it onto the second page.
<noinclude>, <includeonly>, and <onlyinclude> behave differently inside <nowiki> tags. nowiki tags enable escaping special markup, and does this for <noinclude> and <includeonly> tags. However, <onlyinclude> tags within <nowiki> tags produces only the content inside the <onlyinclude> tag.
Useful Special: links[edit | edit source]
Link to page for the logged-in, viewing user, themself:
Gadgets[edit | edit source]
Pages for testing, viewing, & changing your experience:
- (Test page, outside the special namespaces).
- Special:Preferences#mw-prefsection-gadgets
- Special:Gadgets: View-only list of gadgets in 3 parts: (bullet), 1) description, (Edit/Export), 2,3) Uses files: js / css.
Try yourself[edit | edit source]
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[edit | edit source]
Relevant links, open these first. Note Namespaces / Prefixes and Gadget(s). In order least-to-most sensitive:
- (Test page, outside the special namespaces).
- Special:Preferences#mw-prefsection-gadgets
- Special:Gadgets: View-only list of gadgets in 3 parts: (bullet), 1) description, (Edit/Export), 2,3) Uses files: js / css.
- MediaWiki:Gadgets-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!
Video Embed[edit | edit source]
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[edit | edit source]
Wants[edit | edit source]
- Fix the favicon.
Explore / Categorize (wip)[edit | edit source]
- TOC - table of contents
- Categories
Feature[edit | edit source]
Graphical Category Browser[edit | edit source]
- mw:Extension:Graphical_Category_Browser - using Graphviz to see the
treedaggeneral graph of categories.
References[edit | edit source]
- References section - extract all URLs (or external links) into references footer section
Editors[edit | edit source]
- 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[edit | edit source]
- Better spam handling
- User:Mcint/Projects/Member_system will help greatly, once implemented.
- Deleted 50k spam users, which had not made edits.
- Special:ConfirmAccounts. Approving manually, ha (manually, poorly, 1743 in queue in ~ 2 weeks. 1 approved. ?# legitimate but unapproved.), as of 07:06, 4 June 2023 (UTC).
- Special:SpecialPages / section: Special:SpecialPages#Users_and_rights
- Special:ActiveUsers aka "Active users list". 30 days, rolling, activity.
- Captchas have been in place, but have been computer solvable since ~2012. Accounts & edits bypass proper Google Captchas.
- IRL password (like gate code) or reading-comprehension-required as visible on https://safespace.noisebridge.net
- Tools:
- External Links from wiki: search *
- User list Special:ListUsers.
- Format, spam identification.
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:
|
- Permissions, mediawiki internal, API below user group permissions?, Special:ListGrants
Activity indicators[edit | edit source]
- Could try extension:
- mw:extension:HitCounters
- mw:extension:GoogleAnalyticsMetrics
- mw:extension:PageViewInfo
- mw:extension:UserPageViewTracker
- mw:extension:PagesVisited / with? mw:extension:UserSidebar and/or mw:extension:Dashboards
- or something self-hosted, embed with js. Would be good to anonymize.
Authoritative DB - eg membership[edit | edit source]
- In-wiki authoritative data: mw:extension:WikiDB, would probably need.
- mw:Manual:Preventing_access
- mw:extension:Restrict_access_by_category_and_group (board, member, associate, contributor, #rack) groups?
- mw:extension:AccessControl
External Images - Consider Allowing[edit | edit source]
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[edit | edit source]
- Ease of editing, extensions to install.
- mw:Extension:VisualEditor (comes installed, need to configure).
- mw:Extension:UploadWizard
- mw:Extension:Diagrams would be good. It links too, to mw:Diagram_extensions
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.
- Thinking about mw:Extension:Mermaid for mermaid js diagrams and flowcharts.
- Allowing some remote-wiki transclusion: mw:Manual:$wgEnableScaryTranscluding
Sources & Inspiration[edit | edit source]
Make (or find)[edit | edit source]
- 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![edit | edit source]
16:00, 2 May 2024 (PDT)[edit | edit source]
- Editing
- mw:Extension:CharInsert, at MediaWiki:Edittools including customization.
TODO Should update as git clone with tag checkout. Not tar-unpack folder.
also, https://www.mediawiki.org/wiki/Extension:CharInsert#Scripting
- mw:Extension:CharInsert, at MediaWiki:Edittools including customization.
- Fun
- Template:Conway's Game of Life
{{Template:Conway's Game of Life}}
- Template:Langton's ant
{{Langton's ant}}
- Template:Conway's Game of Life
Before[edit | edit source]
...at least a little
- Popup things
- (Done) Link-dense admin popups: wp:Wikipedia:Tools/Navigation_popups (and beyond the (Article:) namespace).
- (Done) mw:Extension:Popups
- (Done) Reader-UX, clean preview popups: mw:Page Previews as implemented by mw:Extension:Page Previews
- (Done) mw:Extension:Popups
- (Done) mw:Extension:TextExtracts (MediaWiki 1.37+ - installed older version.) I'll gladly help with a MediaWiki upgrade at some point. Would be nice to build from nix.
- (Done) mw:Extension:PageImages
- (Done) mw:Extension:Popups
- mw:Reference Tooltips
- wikimedia-meta:MoreMenu
- (Done) Link-dense admin popups: wp:Wikipedia:Tools/Navigation_popups (and beyond the (Article:) namespace).
- QR Codes -18:17, 23 December 2023 (PST)
- QR Code generated for each page, for printing / easy UX linking back to page
- https://www.mediawiki.org/wiki/Extension:QRLite
- Big list: https://www.mediawiki.org/wiki/QR_Codes
- TODO: Shorturl would be nice
nburl.net/w/[wiki url]
? For better, simpler QR codes
- QR Code generated for each page, for printing / easy UX linking back to page