Template:Card rewards page: Difference between revisions

From Tears of Themis Wiki
imported>Harmonea
m (typo)
(fix again)
 
(24 intermediate revisions by 3 users not shown)
Line 2: Line 2:


### Variable Define
### Variable Define
 
-->{{#switch:{{{cardContact|}}}
-->{{#vardefine:You|Main Character}}{{#vardefine:Luke|Luke Pearce}}{{#vardefine:Artem|Artem Wing}}{{#vardefine:Vyn|Vyn Richter}}{{#vardefine:Marius|Marius von Hagen}}{{#if:{{{extraCharLinks|}}} | {{#invoke:Loops|parseList|list={{{extraCharLinks|}}}|delimiter=,|template=Script character link}} }}<!--
|Luke={{#vardefine:scriptChars|You!Main Character,Luke!Luke Pearce}}
|Artem={{#vardefine:scriptChars|You!Main Character,Artem!Artem Wing}}
|Vyn={{#vardefine:scriptChars|You!Main Character,Vyn!Vyn Richter}}
|Marius={{#vardefine:scriptChars|You!Main Character,Marius!Marius von Hagen}}
|#default={{#vardefine:scriptChars|{{{scriptChars|You!Main Character}}}}}
}}<!--


### Template Display
### Template Display


-->{{#if: {{{story1Summary|}}} | ===Story Summary===
-->{{#if: {{{story1Summary|}}} | ===Story Summary===
{{#spoiler:show=Story 1 Spoiler|{{{story1Summary|}}} }} {{#if: {{{story2Summary|}}} |
{{#switch: {{{storyYear|None}}}
|1= This story takes place in '''Year 1'''. {{{cardContact|}}} is not yet in a relationship with the MC.
|2= This story takes place in '''Year 2'''. {{{cardContact|}}} has confessed to the MC, and the two are a romantic couple.
|3= This story takes place in '''Year 3'''. {{{cardContact|}}} is engaged to the MC.
|4= This story takes place in '''Year 4'''. {{{cardContact|}}} is engaged to the MC, and the two have moved in together.
|AU = This story takes place in an '''Alternate Universe''' (AU) or possible past life. Its events do not affect the main timeline.
|#default=[[Category:Card stories with missing timeline info]] }}
{{#spoiler:show=Story 1 Spoiler|{{{story1Summary|}}} }}
{{#if: {{{story2Summary|}}} | {{#spoiler:show=Story 2 Spoiler|{{{story2Summary|}}} }} }}
{{#if: {{{story3Summary|}}} | {{#spoiler:show=Story 3 Spoiler|{{{story3Summary|}}} }} }}
{{#if: {{{story4Summary|}}} | {{#spoiler:show=Story 4 Spoiler|{{{story4Summary|}}} }} }}
{{#if: {{{story5Summary|}}} | {{#spoiler:show=Story 5 Spoiler|{{{story5Summary|}}} }} }}
{{#if: {{{story6Summary|}}} | {{#spoiler:show=Story 6 Spoiler|{{{story6Summary|}}} }} }}


{{#spoiler:show=Story 2 Spoiler|{{{story2Summary|}}} }} }} {{#if: {{{story3Summary|}}} |
}}<!--
 
{{#spoiler:show=Story 3 Spoiler|{{{story3Summary|}}} }} }} {{#if: {{{story4Summary|}}} |
 
{{#spoiler:show=Story 4 Spoiler|{{{story4Summary|}}} }} }} {{#if: {{{story5Summary|}}} |
 
{{#spoiler:show=Story 5 Spoiler|{{{story5Summary|}}} }} }} {{#if: {{{story6Summary|}}} |
 
{{#spoiler:show=Story 6 Spoiler|{{{story6Summary|}}} }} }} }}<!--


-->{{#if: {{{privateMessage1Title|}}} | ===Private Messages===
-->{{#if: {{{privateMessage1Title|}}} | <nowiki />
===Private Messages===
{{Tab/start}}
{{Tab/start}}
{{Tab/header|{{Private Message header
{{Tab/header|{{Private Message header
Line 48: Line 47:
{{{privateMessage2Script|}}}
{{{privateMessage2Script|}}}
}}
}}
{{Tab/end}} }}<!--
{{Tab/end}}
| <nowiki />
===Illustrations===
{{NotableWrap
|notables=
{{#invoke:CargoQuery|main
|q?tables=Illustration
|q?fields=CONCAT('{{Tooltip|',name,'|',description,'}}')=location,CONCAT('{{Tooltip|',name,'|',description,'}}')=name,image=image
|q?where=obtain LIKE '%{{EscQ|{{#titleparts:{{{name|{{ROOTPAGENAME}}}}}}}}}%'
|template=Background location
|default=None
}}}}{{#if: {{{story1Summary|}}} | | [[Category:Card stories with missing summaries]] }}
 
}}<!--
 
-->{{#if: {{{videoCallTitle|}}} | <nowiki />
===Video Call===
{{Phone history
|name={{{videoCallTitle|}}}
|historyType=Video Call
|contact={{{cardContact|}}}
|unlock={{{videoCallUnlock|After Story 6}}}
}}
{{Script
|scriptHeader=Video Call script
|script=
{{{videoCallScript|}}}
}}
 
}}<!--


-->{{#if: {{{textMessage1Title|}}} | ===Text Messages===
-->{{#if: {{{textMessage1Title|}}} | <nowiki />
===Text Messages===
{{Tab/start}}
{{Tab/start}}
{{Tab/header|{{Phone history
{{Tab/header|{{Phone history
Line 60: Line 89:
{{Script
{{Script
|scriptHeader=Text Message script
|scriptHeader=Text Message script
|characterLinks={{#var:scriptChars}}
|script=
|script=
{{{textMessage1Script|}}}
{{{textMessage1Script|}}}
}}
}}{{#if: {{{textMessage2Title|}}} | <nowiki />
{{Tab/header|{{Phone history
{{Tab/header|{{Phone history
|name={{{textMessage2Title|}}}
|name={{{textMessage2Title|}}}
Line 72: Line 100:
{{Script
{{Script
|scriptHeader=Text Message script
|scriptHeader=Text Message script
|characterLinks={{#var:scriptChars}}
|script=
|script=
{{{textMessage2Script|}}}
{{{textMessage2Script|}}}
}}
}}{{#if: {{{textMessage3Title|}}} | <nowiki />
{{Tab/end}} }}<!--
{{Tab/header|{{Phone history
 
|name={{{textMessage3Title|}}}
-->{{#if: {{{videoCallTitle|}}} | ===Video Call===
|historyType=Text Message
{{Phone history
|name={{{videoCallTitle|}}}
|historyType=Video Call
|contact={{{cardContact|}}}
|contact={{{cardContact|}}}
|unlock={{{videoCallUnlock|After Story 6}}}
|unlock={{{textMessage3Unlock|In-Story}}}
}}
}}}}
{{Script
{{Script
|scriptHeader=Video Call script
|scriptHeader=Text Message script
|characterLinks={{#var:scriptChars}}
|script=
|script=
{{{videoCallScript|}}}
{{{textMessage3Script|}}}
}} }}<!--
}}
}} }} {{Tab/end}} }}<!--


-->{{#if: {{{afterStoryScript|}}} | ===After Story===
-->{{#if: {{{afterStoryScript|}}} | <nowiki />
===After Story===
{{Script
{{Script
|scriptHeader=After Story script
|scriptHeader=After Story script
|characterLinks={{#var:scriptChars}}
|script=
|script=
{{{afterStoryScript|}}}
{{{afterStoryScript|}}}
}}
}}<!--
-->{{#if: {{{tokenScript|}}} | <nowiki />
===Token===
{{Script
|scriptHeader=Token examination
|script=
{{Float|[[File:{{{tokenImage|}}}|{{{tokenImageSize|}}}]]}}
{{{tokenScript|}}}
}}
}}<!--
-->{{#if: {{{storyLocations|}}} | <nowiki />
===Story Locations===
{{NotableWrap
|notables=
{{{storyLocations|}}}
}} }}<!--
}} }}<!--


-->{{#if: {{{storyLocations|}}} | ===Story Locations===
-->{{#if: {{{storyCharacters|}}} | <nowiki />
===Story Characters===
{{NotableWrap
{{NotableWrap
|notables=
|notables=
{{{storyLocations|}}}
{{{storyCharacters|}}}
}} }}<!--
}} }}<!--


--></includeonly>
-->{{#if: {{{storyReferences|}}} | <nowiki />
===Story References===
The '''{{ROOTPAGENAME}}''' story contains brief mentions or references of events that took place in the following:
{{#vardefine:i|0}}{{#while:
| {{#if: {{#explode:{{{storyReferences|}}}|,|{{#var:i}}}} | true }}
| <nowiki/>
* {{#explode:{{{storyReferences|}}}|,|{{#var:i}}}}
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}} }}
{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}} | | [[Category:Card rewards]] }}</includeonly>

Latest revision as of 15:34, 16 April 2024

Template-info.png Documentation

Description[edit source]

Used to standardize the format of Card Reward pages. Includes options for many types of card rewards; typically the various sections will show or hide based on the presence or absence of the first variable in their section.

Usage[edit source]

{{Card rewards page
|cardContact=

|story1Summary=
|story2Summary=
|story3Summary=
|story4Summary=
|story5Summary=
|story6Summary=
|storyLocations=
|storyCharacters=
|storyReferences=
|storyYear=

|privateMessage1Title=
|privateMessage1Script=
|privateMessage2Title=
|privateMessage2Script=

|textMessage1Title=
|textMessage1Script=
|textMessage2Title=
|textMessage2Script=

|videoCallTitle=
|videoCallScript=

|afterStoryScript=

|tokenScript=
|tokenImage=
}}

Example[edit source]

{{Card rewards page
|cardContact=Marius

|story1Summary=This is an example summary for card story 1. Use them like you would a stage page's summary section.
|story2Summary=If present, each story up to 6 will show a new spoiler button.
|story3Summary=Use the storyLocations and storyCharacters headers the way you would a stage page's locations/characters section
|story4Summary=(not demonstrated here to avoid storing extra BackgroundLocations into cargo)

|afterStoryScript=
{{SL|Marius|The script headers and character links on ALL script sections are automatically created.}}
{{SL|You|So for every script shown, editors can just jump straight to inputting raw script lines without worrying about the container.}}

|storyReferences=[[Tears of Themis Wiki]],[[Cards]],[[Character Stories]]
|storyYear=AU
}}

Story Summary

This story takes place in an Alternate Universe (AU) or possible past life. Its events do not affect the main timeline.

Illustrations

None

After Story

After Story script

Marius: The script headers and character links on all script sections are automatically created.

You: So for every script shown, editors can just jump straight to inputting raw script lines without worrying about the container.

Story References

The Card rewards page story contains brief mentions or references of events that took place in the following: