Difference between revisions of Help:Advanced formatting

Jump to navigation Jump to search
m (Text replacement - "{{P?olicies and g?uidelines}}" to "{{Editing navbox}}")
No edit summary
Line 1: Line 1:
{{EM help}}{{Nutshell|You can insert graphs, and cool tabby navigation box things.}}
{{EM help}}{{Nutshell|You can insert graphs, cool tabby navigation box things, and make quizzes.}}
==Graphs==
==Graphs==
Check out [[Wikipedia:Template:Graph:Chart]] for how to insert graphs onto pages. The syntax is identical.
Check out [[Wikipedia:Template:Graph:Chart]] for how to insert graphs onto pages. The syntax is identical.
Line 11: Line 11:
</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.
 
==Quiz==
You can make quizzes. [https://en.wikiversity.org/wiki/Help:Quiz The Help page for quizzes on Wikiversity is best for this.]
<quiz display=simple shuffleanswers=true>
{Are differentials close-up glasses?
|type="()"}
+ Of course.
- No way.
- AHHHHHHHHHH.
- The fourth option.
</quiz>
{{Editing navbox}}
{{Editing navbox}}

Revision as of 14:59, 12 June 2020

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">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> <tab name="Baz">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> </tabs> Go to Extension:Tabs/Usage to learn how to do that stuff.

Quiz

You can make quizzes. The Help page for quizzes on Wikiversity is best for this. <quiz display=simple shuffleanswers=true> {Are differentials close-up glasses? |type="()"} + Of course. - No way. - AHHHHHHHHHH. - The fourth option. </quiz>