WikiTemplates gains two fields: an optional css code field injected on pages that use the template (selectors auto-scoped to a hash-based .ptf-tpl-* class so templates never collide with each other or the app shell), and a developer-only html field rendered verbatim (sanitized) in place of the markdown body when transcluded. - templateCss.ts scopes/sanitizes CSS, incl. nested at-rules; pages and the editor live preview inject scoped styles and drop the Card chrome in favor of a full-width article - templateHtml.ts sanitizes HTML and splits prepared markdown around expansion sentinels so raw HTML renders without rehype-raw - templates.ts adds extractTemplateNames/extractPlaceholders/ extractDirectiveNames; prepareMarkdown threads an htmlTemplates map - markdown pipeline gains rehype-highlight for fenced code blocks - styles.css adds wiki prose typography + infobox demo styling - docs: demo article and Infobox template authoring guide
204 lines
6.1 KiB
Markdown
204 lines
6.1 KiB
Markdown
# Operation Ashfall: Field Reference
|
||
|
||
This article exercises every styling component the wiki supports. Use it as a
|
||
live demo page, a smoke test after styling changes, or a copy-paste reference
|
||
when writing new entries.
|
||
|
||
## Inline Formatting
|
||
|
||
Body text supports **bold**, *italic*, ***bold italic***, ~~strikethrough~~,
|
||
and `inline code`. You can also link out — internally with wikilinks like
|
||
[[Campaigns]], [[Missions|mission index]], and [[Factions|faction dossiers]],
|
||
or externally to the [Arma 3 website](https://arma3.com).
|
||
|
||
There is no explicit underline in Markdown, but combined emphasis and links
|
||
cover most editorial needs.
|
||
|
||
## Lists
|
||
|
||
### Unordered
|
||
|
||
- Primary loadout
|
||
- Rifle: MX 6.5 mm
|
||
- Sidearm: P07 9 mm
|
||
- Secondary loadout
|
||
- Launcher: PCML
|
||
- AT mines: 2x
|
||
- Radio: Long-range AN/PRC-155
|
||
|
||
### Ordered
|
||
|
||
1. Brief at 0500 in the ops room
|
||
2. Gear check at 0530
|
||
3. Wheels roll at 0600
|
||
1. Alpha team leads the convoy
|
||
2. Bravo team trails at 200 m
|
||
4. First stop: FOB Reaper
|
||
|
||
### Task List
|
||
|
||
- [x] Finalize ORBAT
|
||
- [x] Submit logistics request
|
||
- [ ] Confirm air support window
|
||
- [ ] Debrief after action
|
||
|
||
## Blockquotes
|
||
|
||
> "We don't fight for the flag on the map. We fight so the person to your
|
||
> left goes home."
|
||
> — Colonel Vasquez, briefing before Ashfall
|
||
|
||
## Code
|
||
|
||
Inline commands like `hint "Hello world";` sit comfortably in prose. Fenced
|
||
blocks get their own container:
|
||
|
||
```sqf
|
||
// Spawn a fireteam at the objective
|
||
_fireteam = [getMarkerPos "obj_ashfall", independent, ["B_Soldier_TL_F", "B_Soldier_F", "B_Soldier_AR_F"]] call BIS_fnc_spawnGroup;
|
||
```
|
||
|
||
```bash
|
||
bun run payload game-tick
|
||
```
|
||
|
||
## Tables
|
||
|
||
| Callsign | Element | Vehicle | Grid | Status |
|
||
| -------- | ------- | -------------- | -------- | -------- |
|
||
| Alpha 1 | Fireteam | M2A4 Slammer | 034120 | Staged |
|
||
| Bravo 2 | Fireteam | HEMTT Fuel | 041118 | Staged |
|
||
| Reaper 6 | Air | AH-99 Blackfoot | 029133 | On station |
|
||
| Dagger 1 | Air | UH-80 Ghost Hawk | 029133 | RTB |
|
||
|
||
## Headings Hierarchy
|
||
|
||
### This is an H3
|
||
|
||
Body under an H3. Use these for sub-sections like insertion plans or CAS
|
||
briefs.
|
||
|
||
#### This is an H4
|
||
|
||
H4 is the deepest level — use it for granular notes like per-team frequency
|
||
assignments.
|
||
|
||
## Callouts
|
||
|
||
:::note
|
||
Night operations require NVGs distributed at gear check. Ask logistics the
|
||
evening before — supply will not break out NVGs after 2100.
|
||
:::
|
||
|
||
:::warning
|
||
The minefield north of Grid 038121 is live. Do not cross without EOD
|
||
escort. Last sweep found three APERS bouncing Betties at the tree line.
|
||
:::
|
||
|
||
## Infobox
|
||
|
||
The infobox is a template — insert `{{Infobox}}` near the top of an article
|
||
body (after creating the template from `docs/wiki-infobox-template.md`) and
|
||
it renders as a floated right-hand info card:
|
||
|
||
::::infobox
|
||
**Operation Ashfall**
|
||
|
||

|
||
|
||
| Operation Summary | |
|
||
| ----------------- | ---------- |
|
||
| Conflict | Southern Campaign |
|
||
| Theater | Altis, northern coast |
|
||
| Dates | 12–19 Mar 2035 |
|
||
| Outcome | Decisive — airfield secured |
|
||
| Strength | 2x fireteams, 2x rotary |
|
||
|
||
A week-long clearing operation to seize the northern airfield and deny
|
||
opposing forces their last coastal staging area.
|
||
::::
|
||
|
||
Paragraphs flow around the card, the way Wikipedia infoboxes sit beside the
|
||
lead section. On narrow screens the card drops to full width.
|
||
|
||
## Columns
|
||
|
||
::::columns
|
||
:::column
|
||
**Left column — Ground plan.** Alpha and Bravo advance along the western
|
||
tree line, using the low rock walls as cover. Expect contact at the first
|
||
stone bridge.
|
||
:::
|
||
|
||
:::column
|
||
**Right column — Air plan.** Reaper 6 orbits south at 800 m for overwatch.
|
||
Dagger 1 holds at Landing Zone Hawk until the ground element calls the
|
||
push.
|
||
:::
|
||
::::
|
||
|
||
Two columns is the common case, but three works for briefing triads:
|
||
|
||
::::columns
|
||
:::column
|
||
**Signals.** Primary channel 3, alternate channel 5, emergency 9.
|
||
:::
|
||
|
||
:::column
|
||
**Medical.** Two combat lifers attached to Alpha, one to Bravo. Aid
|
||
station at FOB Reaper.
|
||
:::
|
||
|
||
:::column
|
||
**Resupply.** Cache at the shepherd's hut, Grid 036126, marked with a
|
||
green panel.
|
||
:::
|
||
::::
|
||
|
||
## Images
|
||
|
||
Captioned images render the caption as a hover title:
|
||
|
||

|
||
|
||
## Footnotes
|
||
|
||
The convoy plan follows the standard three-vehicle formation.[^1] The
|
||
alternate route through the wadi was rejected after the 0400 recon
|
||
sweep.[^2]
|
||
|
||
[^1]: See FM 3-21.8, Motorized Movement, Chapter 4.
|
||
[^2]: Recon report filed under ASHFALL/RECON/0400.
|
||
|
||
## Horizontal Rules
|
||
|
||
Use a rule to separate major sections of long articles.
|
||
|
||
---
|
||
|
||
## What This Article Does Not Cover
|
||
|
||
- Image uploads happen through the editor toolbar (this demo links an
|
||
existing file).
|
||
- `{{Template}}` placeholders expand at render time, but only if a template
|
||
with a matching name exists in the wiki template list — this article
|
||
intentionally skips one so you can see the fallback behavior with
|
||
`{{NonexistentTemplate}}`.
|
||
- HTML is not rendered; raw tags appear as literal text.
|
||
|
||
## Quick Styling Checklist
|
||
|
||
| Feature | Where above | Visual check |
|
||
| --------------- | ------------------ | ----------------------------------- |
|
||
| H1/H2/H3/H4 | Headings sections | Sizes shrink, H2 has underline |
|
||
| Inline emphasis | Inline Formatting | Bold/italic/strike/code distinct |
|
||
| Wikilinks | Inline Formatting | Primary color, underlined |
|
||
| Lists | Lists | Disc bullets, decimal, task boxes |
|
||
| Blockquote | Blockquotes | Muted text, left border |
|
||
| Code block | Code | Muted box, monospace, scrollable |
|
||
| Table | Tables | Bordered cells, muted header row |
|
||
| Callouts | Callouts | Blue note / red warning accent bar |
|
||
| Columns | Columns | Side-by-side layout |
|
||
| Captioned image | Images | Hover shows caption |
|
||
| Footnotes | Footnotes | Superscript links, rule, small text |
|
||
| Rule | Horizontal Rules | Thin border line |
|