Debian Codegraph @

qtfred/help-src/tutorial-template.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <!--
3 QTFRED MOD TUTORIAL TEMPLATE
4 =============================
5 Copy this file to your mod's data/freddocs/ folder and rename it.
6 The filename (without extension) is NOT what shows in the Tutorials tab,
7 the <title> tag below is. Keep filenames lowercase with hyphens.
8
9 FILES IN SUBFOLDERS ARE IGNORED.
10 Only HTML files placed directly in data/freddocs/ appear in the list.
11 Use subfolders freely for images or other assets you link to from here.
12
13 LINKING TO BUILT-IN HELP PAGES
14 --------------------------------
15 Use the qthelp:// scheme with the full path:
16 qthelp://org.hard-light.qtfred/doc/<path>
17 Examples:
18 qthelp://org.hard-light.qtfred/doc/dialogs/ShipEditorDialog.html
19 qthelp://org.hard-light.qtfred/doc/concepts/sexps.html
20 qthelp://org.hard-light.qtfred/doc/quickstart.html
21 The full list of available pages is in the Contents tree of the Help dialog.
22
23 DARK / LIGHT THEME
24 -------------------
25 QtFRED injects a <style> block before </head> at load time when the editor
26 is in dark mode. You do not need to do anything special. Just make sure
27 your file has a </head> closing tag (as this template does) and avoid
28 hard-coding colors in inline style attributes. Use the CSS classes from
29 help.css (.note, .stub-notice, code, kbd, pre, th/td) and they will adapt
30 automatically.
31
32 STYLESHEET
33 -----------
34 The line below loads the same stylesheet used by the built-in help pages.
35 Leave it as-is; do not copy help.css into your mod folder.
36 -->
37 <html lang="en">
38 <head>
39 <meta charset="UTF-8"/>
40 <!-- The title tag is what appears in the Tutorials tab list. Make it descriptive. -->
41 <title>Your Tutorial Title Here</title>
42 <link rel="stylesheet" type="text/css"
43 href="qthelp://org.hard-light.qtfred/doc/css/help.css"/>
44 </head>
45 <body>
46
47 <h1>Your Tutorial Title Here</h1>
48
49 <p>
50 A short paragraph introducing what this tutorial covers and what the reader
51 will be able to do by the end of it.
52 </p>
53
54 <!-- ============================================================
55 NOTE BOX - use the .note class for tips and important info.
56 It adapts to dark mode automatically.
57 ============================================================ -->
58 <div class="note">
59 This is a note box. Use it for tips, prerequisites, or warnings that
60 should stand out from the body text.
61 </div>
62
63 <h2>1. First Step</h2>
64
65 <p>
66 Walk through the first thing the reader needs to do. Reference dialog names
67 in <strong>bold</strong>. Use <kbd>Ctrl+Click</kbd> for keyboard shortcuts
68 and <code>inline code</code> for values the user types.
69 </p>
70
71 <!-- ============================================================
72 LINKING TO BUILT-IN HELP PAGES
73 Use qthelp:// URLs to send the reader to a built-in dialog page.
74 The link opens in the same help browser window.
75 ============================================================ -->
76 <p>
77 Double-click the ship to open the
78 <a href="qthelp://org.hard-light.qtfred/doc/dialogs/ShipEditorDialog.html">Ship Editor</a>.
79 Set the team to <strong>Friendly</strong> and close the dialog.
80 </p>
81
82 <h2>2. Second Step</h2>
83
84 <p>
85 Continue with the next task. For multi-line commands or SEXP expressions,
86 use a <code>&lt;pre&gt;</code> block:
87 </p>
88
89 <pre><code>(has-time-elapsed 60)</code></pre>
90
91 <!-- ============================================================
92 TABLES - border and header styles adapt to dark mode.
93 ============================================================ -->
94 <h2>Reference Table (optional)</h2>
95
96 <table>
97 <thead>
98 <tr>
99 <th>Setting</th>
100 <th>Recommended value</th>
101 <th>Notes</th>
102 </tr>
103 </thead>
104 <tbody>
105 <tr>
106 <td>Team</td>
107 <td>Friendly</td>
108 <td>Required for player ships</td>
109 </tr>
110 <tr>
111 <td>AI class</td>
112 <td>None</td>
113 <td>Player-controlled ships ignore AI class</td>
114 </tr>
115 </tbody>
116 </table>
117
118 <h2>Next Steps</h2>
119
120 <ul>
121 <li>
122 Learn about
123 <a href="qthelp://org.hard-light.qtfred/doc/concepts/sexps.html">SEXPs</a>
124 to drive mission logic with conditions and actions.
125 </li>
126 <li>
127 Set up arrival and departure cues in the
128 <a href="qthelp://org.hard-light.qtfred/doc/dialogs/ShipEditorDialog.html">Ship Editor</a>.
129 </li>
130 <li>
131 Add mission objectives in
132 <a href="qthelp://org.hard-light.qtfred/doc/dialogs/MissionGoalsDialog.html">Mission Goals</a>.
133 </li>
134 </ul>
135
136 </body>
137 </html>