Main Page: Difference between revisions

From jetwiki
Jump to navigation Jump to search
Line 13: Line 13:


<ol type="I">
<ol type="I">
   <li>[[User:Jet53man/Tests|Learning how to modify and enhance MediaWiki]]</li>
   <li>First (bad) [[User:Jet53man/Tests|MediaWiki tests]]</li>
  <li>Learning how to modify and enhance the [[A2HostingEnvironment|a2Hosting MediaWiki environment]].</li>
</ol>
</ol>



Revision as of 12:57, 9 June 2021

MediaWiki has been installed.

Consult the User's Guide for information on using the wiki software.

Getting started

Various Trials & Tests

  1. First (bad) MediaWiki tests
  2. Learning how to modify and enhance the a2Hosting MediaWiki environment.


I'm just testing to see if I'm properly editing. E=mc2

H=dPρ .

Try another way: Template:Math

Template:TeX

Template:Α

Another Test

r-mode image (300 x 225 px)
r-mode image (300 x 225 px)

4 June 2021: I successfully uploaded the "r-mode image" — shown here, on the right — from my Mac to the a2Hosting file system.

  1. I pointed my browser to the URL: Tohline.education/SelfGravitatingFluids; this opened the "Main Page" of my MediaWiki app
  2. I logged into the MediaWiki site; as a result, the "Upload file" link was added to the left-hand menu
  3. Clicking on this "Upload file" link, a familiar MediaWiki page opened; it allowed me to upload a selected r-mode image from my Mac
  4. From the a2Hosting's cPanel, I double-clicked on the "File Manager"; I located the file under public_html/SelfGravitatingFluids/images/3/3b

5 June 2021: I found this URL useful as I attempted to change my MediaWiki Logo image.

5 June 2021: via a cPanel-Terminal session, I changed directory to "~/public_html/SelfGravitatingFluids" and …

  1. Found index.php; its contents were not immediately useful.
  2. Found LocalSettings.php
    1. $wgServer = "https://tohline.education"
    2. $wgScriptPath = "/SelfGravitatingFluids"
    3. $wgResourceBasePath = $wgScriptPath
    4. $wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];

5 June 2021: I realized that, when using the cPanel-File_Manager, I must click on the **name** (e.g., SelfGravitatingFluids) of a directory folder as well as the tiny folder icon in order to see all of the directory's files and sub-directories.

r-mode image (300 x 300 px)
r-mode image (300 x 300 px)

5 June 2021: I successfully uploaded the "r-mode image" — shown here, on the right — from my Mac to the a2Hosting file system.

  1. It is 135 x 135 pixels, which is the size used for the replacement MediaWiki Logo; actually, what is displayed here is a 300 x 300 pixel image.
  2. From the a2Hosting's cPanel, I double-clicked on the "File Manager"; I located the file under public_html/SelfGravitatingFluids/images/8/8b; actually, the displayed image is in ~/images/9/97
  3. Now, let's try opening the LocalSettings.php file and changing the $wgLogos specification to read:
    $wgLogos = [ '1x' => "$wgResourceBasePath/images/8/8a/RmodeHBookImage6.png" ];
  4. That did not work, but the following did:
    $wgLogos = [ '1x' => "images/8/8a/RmodeHBookImage6.png" ];
  5. I added the "Self-Gravitating Fluids" label to the same image, then repeated the above-enumerated upload steps. Now the appropriate Logo can be found at the following location:
    $wgLogos = [ '1x' => "images/d/d3/RmodeImage8.png" ];

5 June 2021: Where do new MediaWiki pages get stored?

  1. Looks like one test example is at: ~/www/SelfGravitatingFluids/tests/phpunit/includes/page/
  2. Perhaps the real thing is at: ~/www/SelfGravitatingFluids/includes/page/
  3. Even more likely to be useful: ~/www/SelfGravitatingFluids/includes/content/
    88% into TextContent.php "Generates an HTML version of the content, for display. Used by fillParserOutput() to provide HTML for the ParserOutput object."

8 June 2021: SSH and SFTP.

  1. After reading this document, I learned how — from my iMac — to log into the a2Hosting linux servers via a secure shell (SSH; port 7822) session.
  2. After reading a separate document, I followed a2Hosting's advice and installed FileZilla on my iMac. This allows me — via a very pleasant "windowed" interface — to establish and use SFTP to transfer files from the iMac to my account on a2Hosting servers.

8 June 2021: Contemplate installation of "Math" extension.

  1. Consider reading www.mediawiki.org/wiki/Manual:Configuration_settings
  2. Steps drawn from: Extension:Math#Installation
    • Download and place the file(s) in a directory called Math in your extensions/ folder.
    • Add the following code at the bottom of your ~/SelfGravitatingFluids/LocalSettings.php:
      • wfLoadExtension( 'Math' );
    • Run the update script which will automatically create the necessary database tables that this extension needs.