Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User:Chris collman/handyformats: Difference between revisions

From MoodleDocs
m (→‎Wiki TOC codes: #top does not work, where did I use that?)
m (→‎Wiki TOC codes: maybe #toc ?)
Line 122: Line 122:


* <nowiki>__TOC__</nowiki> forces placement of Table of Contents at this spot
* <nowiki>__TOC__</nowiki> forces placement of Table of Contents at this spot
* <nowiki>{{TOCright}}</nowiki> interesting, sort of in the template postion.
* <nowiki>{{TOCright}}</nowiki> interesting, sort of in the template postion.
 
* <nowiki>[[#toc|top]]</nowiki> - got to find what puts link to top section. Does not work
* <nowiki>[[#Top|top]]</nowiki> - got to find what puts link to top section. Does not work
*<nowiki>__FORCETOC__</nowiki> = for less than 4 entries to create toc
*<nowiki>__NOTOC__</nowiki>
*


==Note to self==
==Note to self==

Revision as of 18:37, 18 December 2010

This page is for handy formats I use in MoodleDocs. Either I need a place to put links to what I think are successful formats and/or put examples here. In Wikimedia I use a subpage to format my library books. In MoodleDocs I want

A table

abc def ghi
jkl mno pqr
stu vwx yz

A nice table

What it looks like What you type
A table:
header 1 header 2 header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3
A table:

{| class="nicetable"
|-
! header 1
! header 2
! header 3
|-
| row 1, cell 1
| row 1, cell 2
| row 1, cell 3
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
|}

Note, the class="nicetable" is our local hack for Moodledocs. You can leave it out to get a table without borders.

A table with picture

Icon Effect Icon Effect Icon Effect Icon Effect
Edit.gif Edit text Open.gif Open Delete.gif Delete Move.gif Move
All.gif See all topics Closed.gif Close Right.gif Indent Movehere.gif Move here
One.gif See one topic Help.gif Help Marker.gif Make Current


Picture formats

frame

format frame, left, this label

[[Image:Course_section_formats_1.JPG|frame|left|format frame, left, this label]] thumb example resized

format thumb, 100px, center, this label

[[Image:Course_section_formats_1.JPG|thumb|100px|center|format thumb, 100px, center, this label]]

Modules and plugins

==See also==
*[Place http address for M&P entry here  Name of Entry here] is a Modules and plugins database page that has downloads and more information.
*Discussions: [Place http address for moodle forum or forum thread]
**Please create or find a discussion topic in the [http://moodle.org/mod/forum/view.php?id=44  Contributed Code forum]
**The contributor also maintains a Moodle site that contains one or more [Place http address forums using and supporting xxx], outside of Moodle.org .
*Additional documentation
**[Place http address outside page Moodle] (outside of Moodle.org)
* [Place http address for M&P download put name here] for Moodle 2.0

Forgotten templates

  • Note format

<p class="note">'''Note:''' Moodle 2.0 has a new HTML editor. For details of the HTML editor in Moodle prior to 2.0, see [[HTML editor]].</p>

  • Update template

{{Update}}

  • Gallery format

<gallery>
Image:Moodle.logo
Image:Moodle.logo|This is the a Moodle logo
</gallery>

  • Gallery - fancy

<gallery caption="Possible screenshots" widths="225px" heights="120px" perrow="3">


Other wiki codes

Strikeout can be achieved by <strike>Strikeout </strike>. I find this useful as a tool for visually marking text to be moved or changed.

  • #redirect [[Adding a content page]]
  • underline -- No! No! No! underline is an evil abomination on the web, for anything other than links. People expect online text with an underline t be click-able. If you want to emphasise something, use bold or italic.--Tim Hunt 20:15, 9 December 2010 (UTC) -- Sorry for the interruption.
Evil abomination for all those who color blind and bald headed? Point noted and taken. However, I saw "Moodle IS an online.." and all I could think of was "Moodle Information Systems" and my brain froze :) Interrupt any time.--Chris collman 17:32, 10 December 2010 (UTC)

Wiki TOC codes

  • __TOC__ forces placement of Table of Contents at this spot
  • {{TOCright}} interesting, sort of in the template postion.
  • [[#toc|top]] - got to find what puts link to top section. Does not work
  • __FORCETOC__ = for less than 4 entries to create toc
  • __NOTOC__

Note to self

Template for update section as a special page?

{{Update_section}}

These templates work

{{stub}} Listed on special pages

{{Update}} Not listed on special pages