Jump to content

Template:Session: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
<pre>
<pre>
{{Session Summary
{{Session Summary
| campaign =  
| campaign = Echoes of Lhynn
| session_date =  
| session_date =  
| game_date =  
| game_date =  
Line 19: Line 19:
}}
}}
</pre>
</pre>
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.


</noinclude><includeonly>__NOTOC__
</noinclude><includeonly>__NOTOC__
{{#if:{{{campaign|}}}|[[Category:{{{campaign}}} Campaign]]|[[Category:Missing Campaign Name]]}}
{{#if:{{{campaign|}}}|[[Category:{{{campaign}}} Campaign]]|[[Category:Missing Campaign Name]]}}
[[Category:Session Summary]]
[[Category:Session Summary]]
{{#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;">
{{#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>
    {{#ifexpr: {{#var:curr_num}} > 1 |
      [[Special:PrefixIndex/Session {{#padleft:{{#var:prev_num}}|3|0}}|← Session {{#padleft:{{#var:prev_num}}|3|0}}]]
    |
      <span style="color: #888;">← First Session</span>
    }}
  </div>
  <div>
    [[Main Page|Campaign Home]]
  </div>
  <div>
    [[Special:PrefixIndex/Session {{#padleft:{{#var:next_num}}|3|0}}|Session {{#padleft:{{#var:next_num}}|3|0}} →]]
  </div>
}}
</div>


=== Session Details ===
=== Session Details ===

Latest revision as of 02:56, 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 = Echoes of Lhynn
| session_date = 
| game_date = 
| synopsis = 
| summary = 
| exp = 
| treasure = 
| key_npcs = 
| tasks = 
| rumors = 
}}


<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>