The best way to learn how to use the WebCore is by example. See the documentation for more information.
The requested URL is always shown first; if a page uses one or more WebCore templates, those are shown afterwards.
00 <?php
01 include_once ('quake/init.php');
02
03 $Page->title->subject = 'Voting';
04
05 $Page->location->append ("Quake III Arena", "./");
06 $Page->location->append ("Voting");
07
08 $Page->start_display ();
09 ?>
10 <div class="main-box">
11 <div class="text-flow">
12 <p>If you're on a server and you don't like the game style, map, or another
13 player, there's something you can do about it.</p>
14 <h2>Syntax</h2>
15 <p>Pull down the console with ~ and type the following:</p>
16 <pre><code>\callvote <command> [parameters]</code></pre>
17 <h2>Commands</h2>
18 <p>Here's a list of the available vote commands with parameters.</p>
19 <h3>MAP</h3>
20 <table class="basic columns left-labels">
21 <tr>
22 <td>Command</td>
23 <td><code>map</code></td>
24 </tr>
25 <tr>
26 <td>Parameters</td>
27 <td>map name</td>
28 </tr>
29 <tr>
30 <td>Description</td>
31 <td>Starts a new map. </td>
32 </tr>
33 </table>
34 <h3>MAP_RESTART</h3>
35 <table class="basic columns left-labels">
36 <tr>
37 <td>Command</td>
38 <td><code>map_restart</code></td>
39 </tr>
40 <tr>
41 <td>Parameters</td>
42 <td><none></td>
43 </tr>
44 <tr>
45 <td>Description</td>
46 <td>Restarts the current map</td>
47 </tr>
48 </table>
49 <h3>G_GAMETYPE</h3>
50 <table class="basic columns left-labels">
51 <tr>
52 <td>Command</td>
53 <td><code>g_gametype</code></td>
54 </tr>
55 <tr>
56 <td>Parameters</td>
57 <td>
58 <ul class="minimal">
59 <li><code>0</code>: Free For All</li>
60 <li><code>1</code>: Tournament</li>
61 <li><code>2</code>: Single Player</li>
62 <li><code>3</code>: Team Deathmatch</li>
63 <li><code>4</code>: Capture The Flag (CTF)</li>
64 </ul>
65 </td>
66 </tr>
67 <tr>
68 <td>Description</td>
69 <td>Changes the game type. Change the game type <em>before</em>
70 changing the map. The new game type takes effect in the next game.</td>
71 </tr>
72 </table>
73 <h3>KICK</h3>
74 <table class="basic columns left-labels">
75 <tr>
76 <td>Command</td>
77 <td><code>kick</code></td>
78 </tr>
79 <tr>
80 <td>Parameters</td>
81 <td>player name</td>
82 </tr>
83 <tr>
84 <td>Description</td>
85 <td>Kicks the player out of the game. <span class="notes">(If
86 it has spaces, then use double-quotes around the name.)</span> </td>
87 </tr>
88 </table>
89 <h3>NEXTMAP</h3>
90 <table class="basic columns left-labels">
91 <tr>
92 <td>Command</td>
93 <td><code>nextmap</code></td>
94 </tr>
95 <tr>
96 <td>Parameters</td>
97 <td><none></td>
98 </tr>
99 <tr>
100 <td>Description</td>
101 <td>Goes to the next map in the server rotation (if
102 there is one).</td>
103 </tr>
104 </table>
105 </div>
106 </div>
107 <?php $Page->finish_display (); ?>
108