Template:Event: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
No edit summary
Keira (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
{{#if: {{{hide|}}} | <div style="display: none;"> }}
{{#if: {{{hide|}}} | <div style="display: none;"> }}
{{Infobox
{{Infobox
|title={{Event/icon|{{{class}}}}} {{{title}}}
|title={{Event/icon|{{{class}}}}} {{{title}}}
|subheader={{Event/header|{{{class}}}}}{{#set:Class={{{class}}}}}
|subheader={{Event/header|{{{class}}}}}
|subheader2=''Part of the [[Timeline|WormRP Timeline]]''
|subheader2=''Part of the [[Timeline|WormRP Timeline]]''


| label1 = Date
| label1 = Date
| data1  = {{time ago|{{{date}}}}}{{#set:Date={{{date}}}}}
| data1  = {{time ago|{{{date}}}}}


| label2 = Location
| label2 = Location
| data2  = {{#if: {{{cities|}}} | {{{cities}}} | [[City::{{{city}}}]] }}<br />[[Area::{{{area}}}]]
| data2  = {{{city|}}}<br />{{{area|}}}


| label3 = Link
| label3 = Link
| data3  = {{#if:{{{link|}}} | [[Link::{{{link}}}]] | }}
| data3  = {{{link|}}}


|below  = {{{blurb|}}}
|below  = {{{blurb|{{{title}}}}}}


}}{{#set:Blurb={{{blurb|{{{title}}}}}}}}{{#if: {{{hide|}}} | </div> }}<includeonly>
}}{{#if: {{{hide|}}} | </div> }}
[[Category:World Events]]
[[Category:World Events]]
</includeonly><noinclude>Usage:
</includeonly><noinclude>
 
{{documentation}}
<pre><nowiki>{{event
{{#cargo_declare:_table=events
|title=Famine (II) attacks Almaty
|title=String (mandatory)
|class=Endbringer
|class=String (mandatory;allowed values=World,Endbringer,PRT,Devilfish,Other)
|city=Almaty
|city=Page (mandatory)
|area=Unified Russian Soviet Republic
|area=Page (mandatory)
|date=Dec 23 2020
|date=date (mandatory)
|blurb=blah blah blah. (optional)
|blurb=Wikitext string
|link= (optional)
|link=URL
|hide = (put something here to hide display)
}}
}}</nowiki></pre>
</noinclude>

Revision as of 15:40, 30 July 2024

Template documentation[view] [edit] [history] [purge]

Usage

{{event
|title=Famine (II) attacks Almaty
|class=Endbringer
|city=Almaty
|area=Unified Russian Soviet Republic
|date=Dec 23 2020
|blurb=blah blah blah. (optional)
|link= (optional)
|hide = (put "yes" here to hide display)
}}

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