Difference between revisions of "Template:SessionInfo"

From Bearscape Wiki
Jump to: navigation, search
(more copypasta)
 
m (redundancy)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#css:infobox.css}}
 
{{#css:infobox.css}}
 
<table class="infobox">
 
<table class="infobox">
<caption>{{{name|Session no. {{{sessionno|?}}}}}}</caption>
+
<caption>{{{name|Session Information}}}</caption>
 
<tr>
 
<tr>
 
<td>'''Campaign'''</td><td>{{{campaign|Unknown}}}</td>
 
<td>'''Campaign'''</td><td>{{{campaign|Unknown}}}</td>
Line 40: Line 40:
 
{{#if: {{{prev|{{{next|}}}}}}
 
{{#if: {{{prev|{{{next|}}}}}}
 
|<tr>
 
|<tr>
<td rowspan="1" style="text-align: center;">
+
<td colspan="2" style="text-align: center;">{{Hlist|sep=&nbsp;{{!}}&nbsp;
{{Hlist|sep={{!}}
+
|{{#if: {{{prev|}}}|[[{{{prev}}}{{!}}Previous]]}}
|{{#if: {{{prev|}}}|[[{{{prev}}}{{!}}Previous]] {{!}}}}
 
 
|{{#if: {{{index|}}}|[[{{{index}}}{{!}}Index]]}}
 
|{{#if: {{{index|}}}|[[{{{index}}}{{!}}Index]]}}
 
|{{#if: {{{next|}}}|[[{{{next}}}{{!}}Next]]}}
 
|{{#if: {{{next|}}}|[[{{{next}}}{{!}}Next]]}}
}}
+
}}</td>
</td>
 
 
</tr>
 
</tr>
 
}}
 
}}

Latest revision as of 02:09, 26 April 2016

Session Information
CampaignUnknown
DateUnknown
Game MasterNone
PlayersUnknown

This is a template for session information.

Usage[edit]

{{SessionInfo|PARAMETERS}}

PARAMETERS is a list of items separated by the pipe symbol, |. Each parameter in the list is in the format of NAME=VALUE. The following is a list of acceptable parameters:

  • name
  • campaign
  • system
  • storyarc
  • date
  • sessionno (session number)
  • runtime
  • gm
  • players

If any parameter is not included, then the default value will be used instead. Because the pipe symbol is used to separate items, if you wish to include the pipe symbol as a value, use &#124; instead. The current defaults can be seen to the right, where missing entries are not visible by default.

In addition to the above, there are 3 additional parameters that are fields but control navigation information. They are as follows:

  • prev (article name for the prior session)
  • index (article name for a session list)
  • next (article name for the following session)