Template:Infobox Scene

From Edge of Darkness Wiki

Infobox Scene
Jump to: navigation, search
m
 
(27 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{#set: Page has default form=Scene Editor }}{{#if: {{{Venue|}}}|{{header|{{{Venue|}}}}}|}}{{Infobox
+
<includeonly>{{#set: Page has default form=Scene Editor }}{{#if: {{{STs|}}} |{{#arraymap:{{{STs|}}}|,|yyy|{{#set:Story Told By=yyy}}|}} |}}{{#if: {{{Venue|}}}|{{#set:Event for={{{Venue|}}}}}{{header|{{{Venue|}}}}}|}}{{Infobox
|name        = Infobox Scene
|name        = Infobox Scene
-
|bodyclass  = {{#switch: {{{1}}}  
+
|bodyclass  = {{#switch: {{{Venue|}}}  
-
  | c = ctlback
+
  | Changeling = ctlback
-
  | m = mtaback
+
  | Mage = mtaback
-
  | v = vtrback
+
  | Vampire = vtrback
  |grade03
  |grade03
}}
}}
-
|bodystyle   = {{#switch: {{{1}}}  
+
|bodystyle   = {{#switch: {{{Venue|}}}  
-
  | c = margin-left: 10px; border-radius: 5px;
+
  | Changeling = min-width: 170px; margin-left: 10px; border-radius: 5px;
-
  | m = margin-left: 10px; border-radius: 5px;
+
  | Mage      = min-width: 170px; margin-left: 10px; border-radius: 5px;
-
  | v = margin-left: 10px; border-radius: 5px;
+
  | Vampire    = min-width: 170px; margin-left: 10px; border-radius: 5px;
  |min-width: 200px; padding: 5px; border: 1px solid #ff9933; border-radius: 5px; margin-left: 7px;
  |min-width: 200px; padding: 5px; border: 1px solid #ff9933; border-radius: 5px; margin-left: 7px;
}}
}}
-
|titlestyle  = {{#switch: {{{1}}}  
+
|titlestyle  = {{#switch: {{{Venue|}}}  
-
  | v = background: #330000;  border-top-right-radius: 5px; border-top-left-radius: 5px;
+
  | Vampire = background: #330000;  border-top-right-radius: 5px; border-top-left-radius: 5px;
|
|
}}
}}
-
|image      = {{#if:{{{Image|}}}|[[Image:{{{Image|}}}|border|200px|{{{Location|}}}]]}}
+
|image      = {{#if:{{{Image|}}}
-
|headerstyle = padding: 5px; text-align:center; border: 1px solid {{#switch: {{{1}}} | c = green | g = purple | h = green | m = cyan | p = purple | v = #800000 | w = sienna | #1a1a1a}}; background: #1a1a1a;
+
|[[Image:{{{Image|}}}|border|200px|{{{Location|}}}]]
 +
|[[Image:{{{Location|}}}.jpg|border|200px|{{{Location|}}}]]
 +
}}
 +
|headerstyle = padding: 5px; text-align:center; border: 1px solid {{#switch: {{{Venue|}}} | c = green | g = purple | h = green | m = cyan | p = purple | v = #800000 | w = sienna | #1a1a1a}}; background: #1a1a1a;
|header1    =
|header1    =
|labelstyle  = font-weight: bold; text-align: right; color: #ff9933;
|labelstyle  = font-weight: bold; text-align: right; color: #ff9933;
|label1      = Location
|label1      = Location
|data1      = {{#if:{{{Location|}}}|'''[[Location::Scene::{{{Location|}}}]]'''}}
|data1      = {{#if:{{{Location|}}}|'''[[Location::Scene::{{{Location|}}}]]'''}}
-
|label2     = Date
+
 
-
|data2       = [[Sacramento date::{{{Date|}}}]]
+
|label6     = Date Began
-
|label3      = {{#if:{{{Storyteller1|}}}|Storyteller(s)}}
+
|data6       = [[Sacramento date::{{{Date|}}}]]{{#set:{{{Venue|}}} start={{{Date|}}} }}
-
|data3      = {{#if:{{{Storyteller1|}}}|[[Story Told By::User:{{{Storyteller1|}}}|{{{Storyteller1|}}}]] }}{{#if:{{{Storyteller2|}}}|, [[Story Told By::User:{{{Storyteller2|}}}|{{{Storyteller2|}}}]] }}{{#if:{{{Storyteller3|}}}|, [[Story Told By::User:{{{Storyteller3|}}}|{{{Storyteller3|}}}]] }}{{#if:{{{Storyteller4|}}}|, [[Story Told By::User:{{{Storyteller4|}}}|{{{Storyteller4|}}}]] }}{{#if:{{{Storyteller5|}}}|, [[Story Told By::User:{{{Storyteller5|}}}|{{{Storyteller5|}}}]] }}
+
 
 +
|label7      = Date Ended
 +
|data7      = {{#if: {{{Date2|}}}
 +
|[[{{{Venue|}}} end::{{{Date2|}}} ]]
 +
|
 +
}}
 +
 
 +
|label8      = Storyteller(s)
 +
|data8      = {{#show: {{PAGENAME}} |?Story Told By }}
 +
 
 +
 
 +
 
 +
|belowstyle  = text-align: left; font-size: 90%;
 +
|below      = {{{below|}}}
 +
 
 +
 
|header4    =  
|header4    =  
|label5      =  
|label5      =  
-
|data5      = {{{Cast|}}}{{#if: {{{Cast2|}}}|{{#arraymap:{{{Cast2|}}}|,|xxx|{{Cast|xxx}}|&#32;}}|}}
+
|data5      = {{#if: {{{Cast|}}}|{{#set:To Do List=Cast Tags}}{{{Cast|}}}|}}{{#if: {{{Cast2|}}}
-
}}{{#switch: {{{1}}}  
+
|{{#arraydefine:cast|{{{Cast2|}}}|,}}{{#arraysort:cast|asc}}{{#arraymap:{{#arrayprint:cast|,}}|,|xxx|{{Cast|xxx}}|&#32;}}
 +
|
 +
}}
 +
}}{{#if: {{{Venue|}}}|{{#set:Event for={{{Venue|}}}}}[[Category:{{{Venue|}}} Scenes]]|{{#switch: {{{1}}}  
| c = [[Category:Changeling Scenes]]{{#set:Event for=Changeling}}
| c = [[Category:Changeling Scenes]]{{#set:Event for=Changeling}}
| g = [[Category:Minor Scenes]]{{#set:Event for=Changeling}}
| g = [[Category:Minor Scenes]]{{#set:Event for=Changeling}}
Line 40: Line 61:
| w = [[Category:Werewolf Scenes]]{{#set:Event for=Werewolf}}
| w = [[Category:Werewolf Scenes]]{{#set:Event for=Werewolf}}
| [[Category:Minor Scenes]]{{#set:Event for=Minor}}  
| [[Category:Minor Scenes]]{{#set:Event for=Minor}}  
 +
}}
 +
}}</includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude>
}}</includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude>

Latest revision as of 14:58, 11 April 2017

[edit] [purge] Template documentation

This Infobox is for usage on Scene pages. It uses the following switches:

  • Location =
  • Date = called in the following format: DD MONTH YYYY
  • Image = just the file name
  • Cast = the list of characters, separated by commas.
  • StorytellerX = who the ST was that ran the Scene or Story. Preface the name(s) with "User:" and separate with commas.

For example:

{{Infobox Scene
|Venue    = Mage
|Location = Cali
|Date     = 09 March 1997
|Image    = Park.jpg
|Cast2    = Biggie Smalls,P Diddy
|STs      = User:West, User:tsameti
}}

Which produces:

Cali
Location Cali
Something's wrong!
Something's wrong!
Date Began 09 March 1997
This box: view · talk
Facts about Infobox SceneRDF feed
CastBiggie Smalls  +, and P Diddy  +
Event forMage  +
Mage start9 March 1997  +
Page has default formThis property is a special property in this wiki.Scene Editor  +
Story Told ByWest  +, and Tsameti  +
Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox