Template:Infobox Campaign: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{infobox | <includeonly>{{infobox | ||
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | |above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | ||
|subheader = | |subheader = {{{tag|}}} | ||
|image = | |image = {{{image|}}} | ||
|caption = | |caption = {{{caption|}}} | ||
|label1 = Setting | |label1 = Setting | ||
|data1 = | |data1 = {{{setting|}}} | ||
|label2 = Start Date | |label2 = Start Date | ||
|data2 = {{#if:{{{start|}}}|{{#invoke:Date Stuff|date|{{{start|}}}|{{{setting|}}}}}}} | |data2 = {{#if:{{{start|}}}|{{#invoke:Date Stuff|date|{{{start|}}}|{{{setting|}}}}}}} | ||
| Line 11: | Line 11: | ||
|data3 = {{#if:{{#ifeq:{{{status|}}}|Concluded|1|}}|{{#invoke:Date Stuff|date|{{{end|}}}|{{{setting|}}}}}|{{#invoke:Date Stuff|date|{{Current Dates|{{{setting|}}}}}|{{{setting|}}}}}}} | |data3 = {{#if:{{#ifeq:{{{status|}}}|Concluded|1|}}|{{#invoke:Date Stuff|date|{{{end|}}}|{{{setting|}}}}}|{{#invoke:Date Stuff|date|{{Current Dates|{{{setting|}}}}}|{{{setting|}}}}}}} | ||
|label4 = Status | |label4 = Status | ||
|data4 = | |data4 = {{{status|}}} | ||
|label5 = Characters | |label5 = Characters | ||
|data5 = | |data5 = {{{characters|}}} | ||
|label6 = BBEG | |label6 = BBEG | ||
|data6 = | |data6 = {{{bbeg|}}} | ||
|label7 = First Session | |label7 = First Session | ||
|data7 = | |data7 = {{{firstsession|}}} | ||
|label8 = {{#if:{{#ifeq:{{{status|}}}|Concluded||1}}|Latest Session|Last Session}} | |label8 = {{#if:{{#ifeq:{{{status|}}}|Concluded||1}}|Latest Session|Last Session}} | ||
|data8 = | |data8 = {{{lastsession|}}} | ||
|aboveclass = mergedtoprow name | |aboveclass = mergedtoprow name | ||
Revision as of 19:28, 24 May 2022
| This template uses Lua: |
This template can be used to add at-a-glance information on TTRPG campaigns.
Usage
| {{{name}}} | |
|---|---|
| {{{tag}}} | |
| {{{image}}} {{{caption}}} | |
| Setting | {{{setting}}} |
| Current Date | Lua error in Module:Date_Stuff at line 33: attempt to concatenate local 's' (a nil value). |
| Status | {{{status}}} |
| Characters | {{{characters}}} |
| BBEG | {{{bbeg}}} |
| First Session | {{{firstsession}}} |
| Latest Session | {{{lastsession}}} |
{{Infobox Campaign
| name =
| tag =
<!-- Images -->
| image =
| caption =
<!-- Status -->
| setting =
| start =
| current_end =
| end =
| status =
<!-- Cast -->
| characters =
| bbeg =
<!--Timeline -->
| firstsession =
| latest_last =
| lastsession =
}}
Parameters
name- name of the campaign
tag- tagline of the campaign
image- image representing the campaign
caption- caption about the image
setting- setting the campaign takes place in
start- the in-game date the campaign started
current_end- if the campaign has concluded, use end, otherwise use current
end- in-game date the campaign ended
status- if the campaign is concluded, on-going, or on-hold
characters- list of all player characters that appeared in the campaign
bbeg- the big bad evil guy of the campaign
firstsession- link to the first session page of this campaign
latest_last- if the campaign has concluded, use last, otherwise use latest
lastsession- link to the latest/last session page of this campaign
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
TemplateData for Infobox Campaign No description.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||