Difference between revisions of "Template:Hpl3SomaGettingStarted"

From Frictional Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {| class="wikitable" style="width:100%; text-align:center" |- ! colspan="6" | SOMA Getting Started |- | style="width:16.66%; {{#ife...")
 
 
Line 1: Line 1:
<includeonly>
+
<includeonly>{{MenuBox
{| class="wikitable" style="width:100%; text-align:center"
+
|title=SOMA Getting Started
|-
+
|link=HPL3/SOMA/Getting Started
! colspan="6" | [[HPL3/SOMA/Getting Started|SOMA Getting Started]]
+
|width=18em
|-
+
|nofloat{{#if:{{{nofloat|}}}||NULL}}={{{nofloat}}}
| style="width:16.66%; {{#ifeq:{{{step|0}}}|1|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Prepare Your Tools|1. Tools]]
+
|text=<span>
| style="width:16.66%; {{#ifeq:{{{step|0}}}|2|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Create and Launch Your Mod|2. Mod]]
+
# {{#ifeq:{{{step|0}}}|1|'''[[HPL3/SOMA/Getting Started/Prepare Your Tools|Prepare Your Tools]]'''|[[HPL3/SOMA/Getting Started/Prepare Your Tools|Prepare Your Tools]]}}
| style="width:16.66%; {{#ifeq:{{{step|0}}}|3|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Configure the Level Editor|3. Editor]]
+
# {{#ifeq:{{{step|0}}}|2|'''[[HPL3/SOMA/Getting Started/Create and Launch Your Mod|Create and Launch Your Mod]]'''|[[HPL3/SOMA/Getting Started/Create and Launch Your Mod|Create and Launch Your Mod]]}}
| style="width:16.66%; {{#ifeq:{{{step|0}}}|4|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Edit Your First Map|4. Map]]
+
# {{#ifeq:{{{step|0}}}|3|'''[[HPL3/SOMA/Getting Started/Configure the Level Editor|Configure the Level Editor]]'''|[[HPL3/SOMA/Getting Started/Configure the Level Editor|Configure the Level Editor]]}}
| style="width:16.66%; {{#ifeq:{{{step|0}}}|5|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Add Your First Script|5. Script]]
+
# {{#ifeq:{{{step|0}}}|4|'''[[HPL3/SOMA/Getting Started/Edit Your First Map|Edit Your First Map]]'''|[[HPL3/SOMA/Getting Started/Edit Your First Map|Edit Your First Map]]}}
| style="width:16.66%; {{#ifeq:{{{step|0}}}|6|background:#d8eaff; font-weight:bold;|}}" | [[HPL3/SOMA/Getting Started/Test Debug and Continue|6. Test]]
+
# {{#ifeq:{{{step|0}}}|5|'''[[HPL3/SOMA/Getting Started/Add Your First Script|Add Your First Script]]'''|[[HPL3/SOMA/Getting Started/Add Your First Script|Add Your First Script]]}}
|-
+
# {{#ifeq:{{{step|0}}}|6|'''[[HPL3/SOMA/Getting Started/Test Debug and Continue|Test, Debug, and Continue]]'''|[[HPL3/SOMA/Getting Started/Test Debug and Continue|Test, Debug, and Continue]]}}
| colspan="2" style="text-align:left" |
+
</span>
{{#switch:{{{step|0}}}
+
}}</includeonly><noinclude>
|1=[[HPL3/SOMA/Getting Started|← Dashboard]]
 
|2=[[HPL3/SOMA/Getting Started/Prepare Your Tools|← Step 1]]
 
|3=[[HPL3/SOMA/Getting Started/Create and Launch Your Mod|← Step 2]]
 
|4=[[HPL3/SOMA/Getting Started/Configure the Level Editor|← Step 3]]
 
|5=[[HPL3/SOMA/Getting Started/Edit Your First Map|← Step 4]]
 
|6=[[HPL3/SOMA/Getting Started/Add Your First Script|← Step 5]]
 
|#default=
 
}}
 
| colspan="2" | [[HPL3/SOMA/Getting Started|Dashboard]]
 
| colspan="2" style="text-align:right" |
 
{{#switch:{{{step|0}}}
 
|1=[[HPL3/SOMA/Getting Started/Create and Launch Your Mod|Step 2 →]]
 
|2=[[HPL3/SOMA/Getting Started/Configure the Level Editor|Step 3 →]]
 
|3=[[HPL3/SOMA/Getting Started/Edit Your First Map|Step 4 →]]
 
|4=[[HPL3/SOMA/Getting Started/Add Your First Script|Step 5 →]]
 
|5=[[HPL3/SOMA/Getting Started/Test Debug and Continue|Step 6 →]]
 
|6=[[HPL3/SOMA/Getting Started|Finish →]]
 
|#default=[[HPL3/SOMA/Getting Started/Prepare Your Tools|Begin →]]
 
}}
 
|}
 
</includeonly><noinclude>
 
 
Navigation for the sequential [[HPL3/SOMA/Getting Started|SOMA Getting Started]] path.
 
Navigation for the sequential [[HPL3/SOMA/Getting Started|SOMA Getting Started]] path.
 +
 +
The template uses the same compact <code>MenuBox</code> layout as the HPL3 scripting-guide navigation.
  
 
== Usage ==
 
== Usage ==
  
Place the template at the top and bottom of each step page:
+
Place the template at the top of each step page:
  
 
<pre>{{Hpl3SomaGettingStarted|step=1}}</pre>
 
<pre>{{Hpl3SomaGettingStarted|step=1}}</pre>
  
Use <code>step=1</code> through <code>step=6</code>. Use <code>step=0</code> on the dashboard.
+
Use <code>step=1</code> through <code>step=6</code> to bold the current step. Use <code>step=0</code> or omit <code>step</code> on the dashboard.
 +
 
 +
To stop the menu from floating:
 +
 
 +
<pre>{{Hpl3SomaGettingStarted|step=1|nofloat=true}}</pre>
  
 
[[Category:Navigation templates]]
 
[[Category:Navigation templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:42, 30 July 2026

Navigation for the sequential SOMA Getting Started path.

The template uses the same compact MenuBox layout as the HPL3 scripting-guide navigation.

Usage

Place the template at the top of each step page:

{{Hpl3SomaGettingStarted|step=1}}

Use step=1 through step=6 to bold the current step. Use step=0 or omit step on the dashboard.

To stop the menu from floating:

{{Hpl3SomaGettingStarted|step=1|nofloat=true}}