Editing tips: Difference between revisions

From Atomix
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Overview==
This page presents a collection of random snippets of code and tricks for the benefit of others. Most of the information was found through [https://www.mediawiki.org/wiki/Help:Contents mediawiki's help] pages.
This page presents a collection of random snippets of code and tricks for the benefit of others. Most of it was found through [https://www.mediawiki.org/wiki/Help:Contents mediawiki's help] pages.


==Inserting special symbols and math==
==Inserting special symbols and math==
Line 7: Line 6:
==Creating tables==
==Creating tables==
Tables can be converted from a spreadsheet (or latex code) into a MediaWiki by copy and pasting it into this handy  [https://tablesgenerator.com online tool] using their file menu. You can also paste Mediawiki, markdown or HTML code into the tool. You can then manipulate the table's or cell's format and generate code in different languages (csv, standard excel tables, MediaWiki and TeX tables, and more).
Tables can be converted from a spreadsheet (or latex code) into a MediaWiki by copy and pasting it into this handy  [https://tablesgenerator.com online tool] using their file menu. You can also paste Mediawiki, markdown or HTML code into the tool. You can then manipulate the table's or cell's format and generate code in different languages (csv, standard excel tables, MediaWiki and TeX tables, and more).
==Colored text==
A template [[:Template:FontColor|FontColor]] was created to facilitate changing foreground and background colours.


==Examples of collapsible items ==
==Examples of collapsible items ==

Latest revision as of 00:50, 17 December 2021

This page presents a collection of random snippets of code and tricks for the benefit of others. Most of the information was found through mediawiki's help pages.

Inserting special symbols and math

Wrap your Tex code with <math>\varepsilon</math> to render [math]\displaystyle{ \varepsilon }[/math]

Creating tables

Tables can be converted from a spreadsheet (or latex code) into a MediaWiki by copy and pasting it into this handy online tool using their file menu. You can also paste Mediawiki, markdown or HTML code into the tool. You can then manipulate the table's or cell's format and generate code in different languages (csv, standard excel tables, MediaWiki and TeX tables, and more).


Colored text

A template FontColor was created to facilitate changing foreground and background colours.

Examples of collapsible items

Below are examples of formatting used in this page for future reference.

Test 1: Collapsible table with caption

I am a caption! Table is sortable too.
Hello World
Content Goes
In Here

Test 2: Collapsible lists

Level 1 data ....

  • Lorem
  • Ipsum
  • Dolor