Template:Session: Difference between revisions
Appearance
Adventurer (talk | contribs) mNo edit summary |
Adventurer (talk | contribs) mNo edit summary |
||
| Line 37: | Line 37: | ||
[[Category:Session Summary]] | [[Category:Session Summary]] | ||
{{#vardefine: | {{#vardefine:raw_num|{{#titleparts:{{PAGENAME}}|1|2}}}} | ||
<div style="display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 6px 12px; margin-bottom: 1em; font-weight: bold;"> | <div style="display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 6px 12px; margin-bottom: 1em; font-weight: bold;"> | ||
{{#iferror: {{#expr: {{#var:raw_num}} + 0 }} | |||
| <!-- Fallback when page title has no numeric session number (e.g., Template page, special titles) --> | |||
<div><span style="color: #888;">← Previous Session</span></div> | |||
<div>[[Main Page|Campaign Home]]</div> | |||
<div><span style="color: #888;">Next Session →</span></div> | |||
| <!-- Safe numeric calculations --> | |||
{{#vardefine:curr_num|{{#expr: {{#var:raw_num}} + 0}}}} | |||
{{#vardefine:prev_num|{{#expr: {{#var:curr_num}} - 1}}}} | |||
{{#vardefine:next_num|{{#expr: {{#var:curr_num}} + 1}}}} | |||
<div> | <div> | ||
{{#ifexpr: {{#var:curr_num}} > 1 | | {{#ifexpr: {{#var:curr_num}} > 1 | | ||
| Line 55: | Line 63: | ||
[[Special:PrefixIndex/Session {{#padleft:{{#var:next_num}}|3|0}}|Session {{#padleft:{{#var:next_num}}|3|0}} →]] | [[Special:PrefixIndex/Session {{#padleft:{{#var:next_num}}|3|0}}|Session {{#padleft:{{#var:next_num}}|3|0}} →]] | ||
</div> | </div> | ||
}} | |||
</div> | </div> | ||
Revision as of 02:45, 22 August 2026
This template is used by all Session Summary pages to capture information from each session.
How to Use
To create a new session summary page, use the following syntax:
{{Session Summary
| campaign =
| session_date =
| game_date =
| synopsis =
| summary =
| exp =
| treasure =
| key_npcs =
| tasks =
| rumors =
}}
Replace the placeholder values with the actual information from your session.
- **campaign**: The name of the campaign.
- **session_date**: The date of the actual game session.
- **game_date**: The in-game date.
- **synopsis**: A brief one-sentence summary of the session.
- **summary**: A detailed summary of the session's events.
- **exp**: Experience points earned during the session.
- **treasure**: Treasure obtained during the session.
- **key_npcs**: Prominent NPCs encountered.
- **tasks**: Tasks or quests undertaken.
- **rumors**: Rumors and intelligence gathered.
<templatedata>
{
"params": {
"campaign": {
"label": "Campaign Name",
"description": "The name of the campaign.",
"type": "string",
"required": false,
"default": "Echoes of Lhynn",
"example": "Echoes of Lhynn"
},
"session_date": {
"label": "Session Date",
"description": "The date of the actual game session.",
"type": "string",
"required": false,
"default": "06 September 2026",
"example": "15 March 2024"
},
"game_date": {
"label": "Game Date",
"description": "The in-game date.",
"type": "string",
"required": false,
"default": "01 Fireseek CY 627",
"example": "10 Hammer CY 628"
},
"synopsis": {
"label": "Synopsis",
"description": "A brief one-sentence summary of the session.",
"type": "string",
"required": false,
"default": "Add a concise one-sentence session highlight.",
"example": "The party rescued a trapped villager from a goblin ambush."
},
"summary": {
"label": "Summary",
"description": "A detailed summary of the session's events.",
"type": "string",
"required": false,
"default": "Detailed turn summary text goes here.",
"example": "The party encountered a group of goblins..."
},
"exp": {
"label": "Experience",
"description": "Experience points earned during the session.",
"type": "string",
"required": false,
"default": "Party Experience",
"example": "1500 XP"
},
"treasure": {
"label": "Treasure",
"description": "Treasure obtained during the session.",
"type": "string",
"required": false,
"default": "Party Treasure",
"example": "50 gold pieces"
},
"key_npcs": {
"label": "Key NPCs",
"description": "A list of prominent NPCs encountered.",
"type": "string",
"required": false,
"default": "None recorded.",
"example": "Goblin Chief"
},
"tasks": {
"label": "Tasks or Quests",
"description": "A list of tasks or quests undertaken.",
"type": "string",
"required": false,
"default": "List of tasks or quests undertaken.",
"example": "Explore the cave."
},
"rumors": {
"label": "Rumors or Intelligence Gained",
"description": "Rumors gathered during the session.",
"type": "string",
"required": false,
"default": "Apparently nothing noteworthy this session...",
"example": "The goblins serve the Shadow Lord."
}
}
} </templatedata>