Template:Event: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
Created page with "{{Infobox |title={{{{PAGENAME}}/icon|{{{class}}}}} {{{title}}} |subheader={{{{PAGENAME}}/event header|{{{class}}}}}{{#set:Class={{{class}}}}} |subheader2=''Part of the Timel..."
 
Keira (talk | contribs)
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=events}}
{{#if: {{{hide|}}} | <div style="display: none;"> }}
{{Infobox
{{Infobox
|title={{{{PAGENAME}}/icon|{{{class}}}}} {{{title}}}
|title={{Event/icon|{{{class}}}}} {{{title}}}
|subheader={{{{PAGENAME}}/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  = [[City::{{{city}}}]]<br />[[Area::{{{area}}}]]
| data2  = {{{city|}}}<br />{{{area|}}}


}}{{#set:Blurb={{{blurb|{{{title}}}}}}}}<includeonly>
| label3 = Link
| data3  = {{{link|}}}
 
|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.
|blurb=Wikitext string
}}</nowiki></pre>
|link=URL
}}
</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.