Template:Phone history: Difference between revisions
From Tears of Themis Wiki
imported>Harmonea (preliminary) |
imported>Harmonea (+icon displayed in script if present) |
||
Line 17: | Line 17: | ||
-->{{#cargo_store:_table=PhoneHistory | -->{{#cargo_store:_table=PhoneHistory | ||
|name={{{name|{{ROOTPAGENAME}}}}} | |name={{{name|{{ROOTPAGENAME}}}}} | ||
|icon={{{icon|}}} | |icon={{{icon|{{#ifeq:{{{historyType|}}}|Video Call|{{{name|{{ROOTPAGENAME}}}}} phone icon.png}}}}} | ||
|historyType={{{historyType|}}} | |historyType={{{historyType|}}} | ||
|contact={{{contact|}}} | |contact={{{contact|}}} | ||
Line 30: | Line 30: | ||
|scriptHeader={{{historyType|}}}: {{{name|}}}{{#if:{{{unlock|}}}| ({{{unlock|}}})}} | |scriptHeader={{{historyType|}}}: {{{name|}}}{{#if:{{{unlock|}}}| ({{{unlock|}}})}} | ||
|characterLinks=You!Main Character,{{#switch:{{{contact|}}}|Artem=Artem!Artem Wing|Luke=Luke!Luke Pearce|Marius=Marius!Marius von Hagen|Vyn=Vyn!Vyn Richter|Group=Artem!Artem Wing,Luke!Luke Pearce,Marius!Marius von Hagen, Vyn!Vyn Richter}} | |characterLinks=You!Main Character,{{#switch:{{{contact|}}}|Artem=Artem!Artem Wing|Luke=Luke!Luke Pearce|Marius=Marius!Marius von Hagen|Vyn=Vyn!Vyn Richter|Group=Artem!Artem Wing,Luke!Luke Pearce,Marius!Marius von Hagen, Vyn!Vyn Richter}} | ||
|script={{{script|}}} | |script={{#ifeq:{{{historyType|}}}|Video Call|[[File:{{{icon|{{{name|{{ROOTPAGENAME}}}}} phone icon.png}}}|right]]}} | ||
{{{script|}}} | |||
}} | }} |
Revision as of 18:03, 5 November 2021
Description
Template used to display a small header containing information about any phone history item (Texts, calls, messages) while also storing it to Cargo for querying on other pages. It also contains an invisible anchor to #PhoneItem_(name) for quick linking.
Usage
{{Phone history |name= |historyType= |contact= |unlock= }}
- The "name" field should display any label under which the call/message is stored in the phone object. For Video Calls this is typically the card name (when the call is attached to a card). For Text Messages, this is the "topic" tab.
- The "historyType" field should be one of the following if you'd like the call/message to go through to the Phone page:
- Text Message
- Video Call
- Voice Call
- Voice Message
- The "contact" field is the male lead involved in the call or message.
- The "unlock" field is optional and should contain any information about how to unlock the call or message other than the name of the card or story.
- An optional "icon" field exists to override the default icon filename if needed (applies to video calls only).
Example
{{Phone history |name=Sweet and Sour Pork |historyType=Text Message |contact=Artem |unlock=After Story 3 }}
Text Message |
Artem: Sweet and Sour Pork
|
---|
The above documentation is transcluded from Template:Phone history/doc. (edit | history)