Template:Session: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Tag: Manual revert
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Session|Date|Body|Treasure}}
{{#template_params:Session|Date|GameDate|Body|Treasure}}
{{#cargo_declare:_table=Sessions|Name=String|Session=Integer|Date=Date|Body=Wikitext|Treasure=Wikitext}}
{{#cargo_declare:_table=Sessions|Name=String|Session=Integer|Date=Date|GameDate=Wikitext|Body=Wikitext|Treasure=Wikitext}}
</noinclude><includeonly>{{#cargo_store:_table=Sessions|Name={{SUBPAGENAME}}}}
</noinclude><includeonly>{{#cargo_store:_table=Sessions|Name={{SUBPAGENAME}}}}
<yambe:breadcrumb>Sessions</yambe:breadcrumb>{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
<yambe:breadcrumb>Sessions</yambe:breadcrumb>{{#if:{{{headerImage|}}}|[[File:{{{headerImage}}}|class=fullwidth]]}}
<div class="flexcardcontainer"><div class="flexcard_main">''{{{Date|}}}''
<div class="flexcardcontainer"><div class="flexcard_main">''{{{GameDate|}}}''


{{{Body|}}}
{{{Body|}}}


{{#if:{{{Treasure|}}}|{{DataCard|{{{Treasure|}}}}}|}}</div><div class="flexcard_side" style="min-width:270px;">{{#cargo_query:Sessions|format=ul}}</div>
{{#if:{{{Treasure|}}}|{{DataCard|Treasure|{{{Treasure|}}}}}
 
 
<wbr>|}}</div><div class="flexcard_side" style="min-width:270px;background-color:var(--pi-secondary-background);padding:10px">'''Session Occured:''': {{{Date|}}}
 
{{#cargo_query:tables=Sessions|fields=CONCAT( '[[', _pageName, '|', Session ,': ', Name, ']]' )|order by=Session|format=ul}}</div>


[[Category:Sessions]]
[[Category:Sessions]]
</includeonly>
</includeonly>

Latest revision as of 08:29, 3 September 2023

This is the "Session" template.

It should be called in the following format:

{{Session
|Session=
|Date=
|GameDate=
|Body=
|Treasure=
}}

Edit the page to see the template text.

This template defines the table "Sessions". View table.