User:M.mendel/Templates/t2d/doc

This template can help convert a table of dialogue to the new &lt;div class="dialog"&gt; that I have proposed.

Usage
{{:User:M.mendel/Templates/t2d|
 * 1) Replace the first line of the table (the one with ) with this:
 * 1) Replace the last line of the table with.
 * 2) Examine the preview.
 * 3) Save.
 * 4) Change the URL of the article to {{fullurl:Article_Name_here|action=raw&templates=expand&ctype=text/css}}
 * 5) Copy the whole dialogue div to the clipboard
 * 6) Open the article for editing again and paste the text.
 * 7) Save.

Examples
Once the dialogue class is live, this section will hold links to diffs that show the template in action.

Too much text
The template converts approximately 50 lines of dialogue. If you try to convert more, you'll see this error on the page and in the page contents: WARNING! The input is too long! The template can't handle it! Text has been CUT OFF! Take note of the last line that has been correctly converted. After this line, add and insert a new line: {{subst: User:M.mendel/Templates/t2d| This inserts another &lt;div class="dialog"&gt;, but you can edit that out later.
 * Note: The error message may appear twice. This is not a bug.

Headings disappear
The template can't convert anything with an equals sign in it. Unfortunately, this applies to ===Headings=== as well. They are simply deleted. End the conversion before the heading and start a new one after it, or simply put them back in later. Or remove the === and put them back in later.