PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Template:Event: Difference between revisions

From PC Gaming Shelter
Created page with "<noinclude> This is the "Event" template. It should be called in the following format: <pre> {{Event |Name= |Start date= |End date= |Event type= |Related game= |Description= }} </pre> </noinclude><includeonly> [[Has start date::{{{Start date|}}}]] [[Has end date::{{{End date|}}}]] [[Has event type::{{{Event type|}}}]] {{#if:{{{Related game|}}}|[[Related game::{{{Related game}}}]]}} Category:Events [[Category:{{{Event type}}}]] <div class="event-infobox" style="float..."
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{#invoke:Event|infobox}}</includeonly><noinclude>
This is the "Event" template. It should be called in the following format:
{{{{PAGENAME}}/doc}}
<pre>
[[Category:Main templates]]
{{Event
</noinclude>
|Name=
|Start date=
|End date=
|Event type=
|Related game=
|Description=
}}
</pre>
</noinclude><includeonly>
[[Has start date::{{{Start date|}}}]]
[[Has end date::{{{End date|}}}]]
[[Has event type::{{{Event type|}}}]]
{{#if:{{{Related game|}}}|[[Related game::{{{Related game}}}]]}}
[[Category:Events]]
[[Category:{{{Event type}}}]]
 
<div class="event-infobox" style="float:right; width:300px; margin:0 0 20px 20px; background:#f0f0f0; border:1px solid #999; padding:10px;">
  <div style="font-size:120%; font-weight:bold; border-bottom:1px solid #ccc; margin-bottom:10px;">
    {{{Name|{{PAGENAME}}}}}
  </div>
 
  '''Date:''' {{{Start date|}}} {{#if:{{{End date|}}}|- {{{End date}}}}}<br>
  '''Type:''' [[{{{Event type|}}}]]<br>
  {{#if:{{{Related game|}}}|'''Game:''' [[{{{Related game}}}]]<br>}}
</div>
 
<div style="margin-right:320px;">
{{{Description|}}}
</div>
 
</includeonly>

Latest revision as of 14:19, 26 March 2026

One of the main templates. Its purpose is to collect values from the Form:Event fields and pass them to the Module:Event for further processing. See the module page and this help for details.