User:Cclark5189: Difference between revisions

From h.h
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Test page for mediawiki emacs edit testing, stay tuned
= Editing Wiki =


{| class="wikitable"
Making and editing tables in MediaWiki is trash. Here is how to fetch and covert to markdown format, edit locally in a text editor or LibreOffice, then upload the sparkly freshness.
|+ Usage Restrictions
 
|-
<span id="fetch-file"></span>
! scope="col"| Key
== Fetch file ==
! scope="col"| Meaning
 
|-
<code>wget 'https://hhacker.space/wiki/index.php?title=Equipment&amp;action=raw' -o Equipment.wiki</code>
! scope="row"| F
 
| Free to use
<code>pandoc -f mediawiki -t markdown_mmd Equipment.wiki -o Equipment.md</code>
|-
 
! scope="row"| C
<span id="edit"></span>
| Bring your own consumables or pay for ours. A tiny bit of free use is okay
== Edit ==
|-
 
! scope="row"| R
<span id="linuxtext-edit"></span>
| Rental price required. (Covers maintenance)
=== Linux/Text edit ===
|-
 
! scope="row"| T
<pre>Linux emacs editor has a markdown mode that seems to work fine. You must install the package first</pre>
| Training or certification required
<span id="excel-or-libreoffice"></span>
|-
=== Excel or LibreOffice ===
! scope="row"| t
 
| Please ask for help if you haven't used this tool before
<pre>LibreOffice Writer read and writes *markdown* format files. Tables seem to work, things like code blocks do not.</pre>
|-
<span id="push"></span>
|}
== Push ==
 
<code>pandoc -f markdown_mmd -t mediawiki Equipment.md -o Equipment.wiki</code>
 
Right now just copy/paste to the wiki edit page, I haven't spent time on remote file update

Latest revision as of 17:48, 30 March 2026

Editing Wiki

Making and editing tables in MediaWiki is trash. Here is how to fetch and covert to markdown format, edit locally in a text editor or LibreOffice, then upload the sparkly freshness.

Fetch file

wget 'https://hhacker.space/wiki/index.php?title=Equipment&action=raw' -o Equipment.wiki

pandoc -f mediawiki -t markdown_mmd Equipment.wiki -o Equipment.md

Edit

Linux/Text edit

Linux emacs editor has a markdown mode that seems to work fine. You must install the package first

Excel or LibreOffice

LibreOffice Writer read and writes *markdown* format files. Tables seem to work, things like code blocks do not.

Push

pandoc -f markdown_mmd -t mediawiki Equipment.md -o Equipment.wiki

Right now just copy/paste to the wiki edit page, I haven't spent time on remote file update