Changes

Jump to navigation Jump to search
1,388 bytes added ,  09:11, 30 August 2020
no edit summary
''This page is about editing pages on this wiki in general. For editing command reference pages, also see [[Help:Reference]].''
 
{{todo|Warning: explain here the use of ToDo category.}}
== General ==
For in-line markup of code, commands, parameters, etc. in running text use <nowiki>{{code|some code}}</nowiki>. If there are equality signs in the code, use e.g. <nowiki>{{code|1=some=code}}</nowiki>, because the wiki templating software interprets all text up to the first equality sign as a template parameter name. Please do use the {{code|code}} template instead of the {{code|&lt;code>}} tags, as templates are much easier to change.
 
''Note:'' except in [[Command]] documentation pages, where the fluidity of templates is actually a disadvantage.
In [[Command]] pages {{code|&lt;code>}} is required.
{| class=wikitable
* '''Links to:''' http://modules.contextgarden.net/t-lettrine
* '''Looks like:''' [[modules:t-bnf|Lettrine module]]
 
=== Some other templates ===
 
There are a few other templates that may be useful:
 
* <tt><nowiki>{{todo|}}</nowiki></tt> adds a page to the [[:Category:ToDo|ToDo list]]. This is intended for wiki pages that need more work done.
* <tt><nowiki>{{howto}}}</nowiki></tt> adds a page to the [[:Category:How to|How to list]]. This is for wiki pages that you would like to be on the [[:Category:ToDo|ToDo list]], but where you are not sure whether the current page is the right place to add the documentation.
* <tt><nowiki>{{bug|}}}</nowiki></tt> adds a page to the [[:Category:Bugreports|Bug reports list]]. This is for problems you find in ConTeXt and/or the ConTeXt installation on the server. ''Not for wiki page problems!'' (you should fix those yourself, or add one of the two previous templates.)
 
{| class=wikitable
! scope=col width=360 style="text-align: left"| You type
! scope=col width=360 style="text-align: left"| You see
|- style="vertical-align: top"
|
* <tt><nowiki>{{todo|this page needs more work}}</nowiki></tt>
|
* {{todo|this page needs more work}}
|- style="vertical-align: top"
|
* <tt><nowiki>{{howto}}</nowiki></tt>
|
* {{howto}}
|- style="vertical-align: top"
|
* <tt><nowiki>{{bug|this feature does not work on the wiki}}</nowiki></tt>
|
* {{bug|this feature does not work on the wiki}}
|}
== Block elements ==
|- style="vertical-align: top"
| <pre>
<context mode="mkiv " source="yes " text="This produces:">
The wiki also contains ConTeXt Mark IV: \crlf
\contextversionnumber
</context>
</pre>
| <context mode="mkiv " source="yes " text="This produces:">
The wiki also contains ConTeXt Mark IV: \crlf
\contextversionnumber
=== Displaying a ConTeXt command syntax ===
If you want to show the calling convention(s) of a ConTeXt command, you can use <code><nowiki><syntax> ... </syntax></nowiki></code>. This is particularly useful in a "Command" page.
The <nowiki><syntax></nowiki> tag accepts two attributes:

Navigation menu