Template:Event: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
multiple
Keira (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=events}}
{{#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|}}}


}}{{#set:Blurb={{{blurb|{{{title}}}}}}}}{{#if: {{{hide|}}} | </div> }}<includeonly>
|below  = {{{blurb|{{{title}}}}}}
 
}}{{#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>

Latest revision as of 15:43, 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.