This wiki is still in active development, many areas of the site are unstable or broken.

In the meantime, consider adding content to pages you like!

Template:SessionInfobox: Difference between revisions

From NBITTRPG Wiki
moved it somewhere better
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox theme="event" theme-source="color">
{{LuaInfobox
<title source="name"><default>'''{{PAGENAME}}'''</default><format>'''{{{name}}}'''</format></title>
| title = {{{name}}}
<navigation><font color="grey"><div align="center">{{{campaign}}} Session</div></font></navigation>
| class = {{{class|}}}
<image source="image"><default>none.png</default></image>
| label-style = font-size:smaller; font-weight:bold;
<header>'''Information'''</header>
| data-style = font-size:small;
    <data source="gm"><label>GM</label></data>
 
<data source="act"><label>Act</label></data>
| :: {{#if:{{{campaign|}}}|<div class{{=}}"infobox-nav">{{{campaign|}}} Session</div>}}
    <data source="sessiondate"><label>Session Date</label></data>
| :: {{#if:{{{gm|}}}|<div style{{=}}"font-size:small; text-align:center; padding: 0.2em;">Run by {{{gm}}}</div>}}
<header>'''Session Guide'''</header>
|-header :: Information
<group layout="horizontal">
| {{#if:{{{act|}}}|Act :: {{{act|}}}}}
<data source="previous"><label>Previous</label> <format>"{{{previous}}}"</format></data>
| {{#if:{{{snum|}}}|Session # :: {{{snum|}}}}}
<data source="next"><label>Next</label> <format>"{{{next}}}"</format></data>
| Session Date :: {{date|{{{sessiondate}}}|MDY}}
</group>
 
</infobox>
| :: {{#switch:{{{oneshot|}}}|yes = |<table style{{=}}"text-align:center;border-collapse: collapse;margin:auto;table-layout: fixed;width:100%">
<tr>{{#if:{{{previous|}}}|<td>'''Previous'''</td>}}
{{#if:{{{next|}}}|<td>'''Next'''</td>}}</tr>
<tr>{{#if:{{{previous|}}}|<td>"{{{previous|}}}"</td>}}
{{#if:{{{next|}}}|<td>"{{{next|}}}"</td>}}</tr>
</table>}}
}}{{#invoke:Bucket|put|session
|name = {{{name|}}}
|campaign = {{{campaign|}}}
|gm = {{{gm|}}}
|session_num = {{{snum|}}}
|date = {{date|{{{sessiondate|}}}|ISO}}
}}<noinclude>
{{Documentation}}</noinclude>

Latest revision as of 05:16, 14 October 2026

{{{name}}}
Information
Session Date{{{sessiondate}}}