Difference between revisions of Help:Advanced formatting
(→Quiz) |
(→Tabs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
<tabs> | <tabs> | ||
<tab name="Foo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> | <tab name="Foo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> | ||
<tab name="Bar"> | <tab name="Bar">I wonder what all that means...</tab> | ||
<tab name="Baz"> | <tab name="Baz">Where's a guru when yoarstarstartartu need one ?</tab> | ||
</tabs> | </tabs> | ||
Go to [[mw:Extension:Tabs/Usage|Extension:Tabs/Usage]] to learn how to do that stuff. | Go to [[mw:Extension:Tabs/Usage|Extension:Tabs/Usage]] to learn how to do that stuff. | ||
For some reason, when you edit tabs and then preview your changes, it won't show up in the preview. You '''can''' fix this by disabling 'Show previews without reloading the page' in [[Special:Preferences]] under the editing tab, '''but''' you probably don't want to do that because it makes everything else slower. | |||
==Quiz== | ==Quiz== | ||
You can make quizzes. [https://en.wikiversity.org/wiki/Help:Quiz The Help page for quizzes on Wikiversity is best for this.] | You can make quizzes. [https://en.wikiversity.org/wiki/Help:Quiz The Help page for quizzes on Wikiversity is best for this.] We have a [[EM:QUIZ|quiz namespace]] for quizzes, make them there, or [[EM:IAR|ignore rules]] and put them wherever you like. | ||
<quiz display=simple shuffleanswers=true> | <quiz display=simple shuffleanswers=true> | ||
{Are differentials close-up glasses? | {Are differentials close-up glasses? | ||
Line 28: | Line 31: | ||
- Quiz? QUIZ? QUIZ??????. | - Quiz? QUIZ? QUIZ??????. | ||
{ | {Who made EndMyopia? | ||
|type="{}"} | |type="{}"} | ||
{ Jake|Jake Steiner|Jakey|Magical Eye Guru } | { Jake|Jake Steiner|Jakey|Magical Eye Guru } | ||
{ | {EM history lesson | ||
|type="{}"} | |type="{}"} | ||
EndMyopia used to be called the { Frauenfeld_10 } clinic. | EndMyopia used to be called the { Frauenfeld_10 } clinic. | ||
</quiz> | </quiz> | ||
{{Editing navbox}} | {{Editing navbox}} |
Latest revision as of 16:36, 13 June 2020
This is a EndMyopia Wiki help page. |
This page in a nutshell: You can insert graphs, cool tabby navigation box things, and make quizzes. |
Graphs
Check out Wikipedia:Template:Graph:Chart for how to insert graphs onto pages. The syntax is identical. Page Template:Graph:Chart/styles.css has no content.<graph>{"legends":[{"properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"stroke":"color","title":"Legend","fill":"color"}],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#0000aa","#ff8000"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"type":"line"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":200,"axes":[{"type":"x","title":"x axis","scale":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"y axis","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":10,"series":"y1","x":1},{"y":12,"series":"y1","x":2},{"y":6,"series":"y1","x":3},{"y":14,"series":"y1","x":4},{"y":2,"series":"y1","x":5},{"y":10,"series":"y1","x":6},{"y":7,"series":"y1","x":7},{"y":9,"series":"y1","x":8},{"y":2,"series":"y2","x":1},{"y":4,"series":"y2","x":2},{"y":6,"series":"y2","x":3},{"y":8,"series":"y2","x":4},{"y":13,"series":"y2","x":5},{"y":11,"series":"y2","x":6},{"y":9,"series":"y2","x":7},{"y":2,"series":"y2","x":8}]}],"width":400}</graph>
Tabs
You can do stuff like this: <tabs> <tab name="Foo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> <tab name="Bar">I wonder what all that means...</tab> <tab name="Baz">Where's a guru when yoarstarstartartu need one ?</tab> </tabs> Go to Extension:Tabs/Usage to learn how to do that stuff.
For some reason, when you edit tabs and then preview your changes, it won't show up in the preview. You can fix this by disabling 'Show previews without reloading the page' in Special:Preferences under the editing tab, but you probably don't want to do that because it makes everything else slower.
Quiz
You can make quizzes. The Help page for quizzes on Wikiversity is best for this. We have a quiz namespace for quizzes, make them there, or ignore rules and put them wherever you like. <quiz display=simple shuffleanswers=true> {Are differentials close-up glasses? |type="()"} + Of course. - No way. - AHHHHHHHHHH. - The fourth option.
{Are quizzes cool? |type="()"} + Of course. - They suck - I dislike quizzes, I do. - Quiz? QUIZ? QUIZ??????.
{Who made EndMyopia? |type="{}"} { Jake|Jake Steiner|Jakey|Magical Eye Guru }
{EM history lesson |type="{}"} EndMyopia used to be called the { Frauenfeld_10 } clinic. </quiz>