http://md.railgun.works/index.php?title=MegaDrive_Wiki:Editing_Tips&feed=atom&action=history
MegaDrive Wiki:Editing Tips - Revision history
2024-03-29T13:08:15Z
Revision history for this page on the wiki
MediaWiki 1.29.0
http://md.railgun.works/index.php?title=MegaDrive_Wiki:Editing_Tips&diff=929&oldid=prev
Tristanseifert: 2 revisions imported
2015-03-16T15:29:56Z
<p>2 revisions imported</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='en-GB'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 15:29, 16 March 2015</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en-GB'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Tristanseifert
http://md.railgun.works/index.php?title=MegaDrive_Wiki:Editing_Tips&diff=928&oldid=prev
Tristanseifert: Yeah, uh, we have an m68k highlighter.
2013-01-12T18:08:26Z
<p>Yeah, uh, we have an m68k highlighter.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en-GB'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 18:08, 12 January 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l36" >Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This is how syntax-highlighted Motorola 68k assembly looks like when using this tag:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>This is how syntax-highlighted Motorola 68k assembly looks like when using this tag:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><source lang="<del class="diffchange diffchange-inline">asm</del>" line="GESHI_FANCY_LINE_NUMBERS"></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><source lang="<ins class="diffchange diffchange-inline">m68k</ins>" line="GESHI_FANCY_LINE_NUMBERS"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>SetUpJoypads:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>SetUpJoypads:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> move sr, -(sp) ; Back up status</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> move sr, -(sp) ; Back up status</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> move #$2700, sr ; Disable all ints</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> move #$2700, sr ; Disable all ints</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> move.w #$100, $A11100 <del class="diffchange diffchange-inline"> </del>; Stop Z80</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> move.w #$100, $A11100 <ins class="diffchange diffchange-inline"> </ins>; Stop Z80</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>@waitZ80:</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>@waitZ80:</div></td></tr>
</table>
Tristanseifert
http://md.railgun.works/index.php?title=MegaDrive_Wiki:Editing_Tips&diff=927&oldid=prev
Tristanseifert: Created page.
2013-01-12T18:07:58Z
<p>Created page.</p>
<p><b>New page</b></p><div>This page contains various guidelines you should follow when writing or editing pages to make everyone's life easier, as well as some tricks and tips you may wish to take into account.<br />
<br />
== Embedding Code ==<br />
If you embed code into a page for whatever reason, there are several ways for you to do this, however, it is important to note that simply shoving the code in the WikiText will ruin spacing, due to the fact that this wiki uses a variable-width font, which doesn't make code look very good. Instead, you should use one of the various mechanisms provided by the wiki to render code with a fixed-width font.<br />
<br />
=== "pre" Tag ===<br />
The first option is to simply use a &lt;pre&gt; tag, which is simply a HTML tag the wiki software doesn't alter. This tag simply indicates to the browser that the content it's wrapping is pre-processed (hence the name) and can simply be outputted without applying much styling. The wiki's stylesheets ensure that any content inside a pre tag uses a fixed-width font, with a distinct background colour and border to visibly separate it from the rest of the text. Due to this, nearly anything that relies (or looks better with) a fixed-width font can be displayed correctly. For example, ASCII art can be displayed this way:<br />
<br />
<pre><br />
___ ___ ___ ___ <br />
/\ \ /\ \ /\ \ /\ \ <br />
\:\ \ /::\ \ /::\ \ \:\ \ <br />
\:\ \ /:/\:\ \ /:/\ \ \ \:\ \ <br />
/::\ \ /::\~\:\ \ _\:\~\ \ \ /::\ \ <br />
/:/\:\__\ /:/\:\ \:\__\ /\ \:\ \ \__\ /:/\:\__\<br />
/:/ \/__/ \:\~\:\ \/__/ \:\ \:\ \/__/ /:/ \/__/<br />
/:/ / \:\ \:\__\ \:\ \:\__\ /:/ / <br />
\/__/ \:\ \/__/ \:\/:/ / \/__/ <br />
\:\__\ \::/ / <br />
\/__/ \/__/ <br />
</pre><br />
<br />
=== "source" Tag ===<br />
A second option available for displaying code on pages is to use the &lt;source&gt; tag, which is parsed internally by the wiki software and converted to syntax-highlighted code with optional line numbering. There is support for several different languages to be syntax highlighted, including:<br />
<br />
* C<br />
* C++ (cpp)<br />
* Generic Assembly (asm)<br />
* Motorola 68k Assembly (m68k)<br />
* Verilog (verilog)<br />
* VHDL (vhdl)<br />
* Z80 Assembly (z80)<br />
<br />
If you embed any sort of code that is in one of those languages, you should use the &lt;source&gt; tag. The language is specified by using the "lang" attribute on the tag: <code>&lt;source lang="asm"&gt;</code> If line numbers are desired, the tag should look something like this: <code>&lt;source lang="asm" line="GESHI_FANCY_LINE_NUMBERS"&gt;</code><br />
<br />
This is how syntax-highlighted Motorola 68k assembly looks like when using this tag:<br />
<br />
<source lang="asm" line="GESHI_FANCY_LINE_NUMBERS"><br />
SetUpJoypads:<br />
move sr, -(sp) ; Back up status<br />
move #$2700, sr ; Disable all ints<br />
<br />
move.w #$100, $A11100 ; Stop Z80<br />
<br />
@waitZ80:<br />
btst #0, $A11101 ; Has the Z80 stopped?<br />
bne.s @waitZ80 ; If not, wait.<br />
<br />
moveq #$40, d0 ; PD6 is an output<br />
move.b d0, $A10009 ; Configure port A<br />
move.b d0, $A1000B ; Configure port B<br />
move.b d0, $A1000D ; Configure port C<br />
<br />
move.w #0, $A11100 ; Restart the Z80 <br />
move (sp)+, sr ; Re-enable ints<br />
rts<br />
</source><br />
<br />
[[Category:Howto]]</div>
Tristanseifert