Template:Card rewards page: Difference between revisions

From Tears of Themis Wiki
imported>Harmonea
m (spacing (final, I think))
(fix again)
 
(18 intermediate revisions by 2 users not shown)
Line 3: Line 3:
### Variable Define
### Variable Define
 
 
-->{{#vardefine:You|Main Character}}{{#vardefine:Luke|Luke Pearce}}{{#vardefine:Artem|Artem Wing}}{{#vardefine:Vyn|Vyn Richter}}{{#vardefine:Marius|Marius von Hagen}}<!--
-->{{#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}} }}<!--


### Template Display
### Template Display


-->{{#if: {{{story1Summary|}}} | ===Story Summary===
-->{{#if: {{{story1Summary|}}} | ===Story Summary===
{{#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|}}} }}
{{#spoiler:show=Story 1 Spoiler|{{{story1Summary|}}} }}
{{#if: {{{story2Summary|}}} | {{#spoiler:show=Story 2 Spoiler|{{{story2Summary|}}} }} }}
{{#if: {{{story2Summary|}}} | {{#spoiler:show=Story 2 Spoiler|{{{story2Summary|}}} }} }}
Line 17: Line 24:
}}<!--
}}<!--


-->{{#if: {{{privateMessage1Title|}}} | &#32;
-->{{#if: {{{privateMessage1Title|}}} | <nowiki />
===Private Messages===
===Private Messages===
{{Tab/start}}
{{Tab/start}}
Line 41: Line 48:
}}
}}
{{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|}}} | &#32;
-->{{#if: {{{textMessage1Title|}}} | <nowiki />
===Text Messages===
===Text Messages===
{{Tab/start}}
{{Tab/start}}
Line 57: Line 91:
|script=
|script=
{{{textMessage1Script|}}}
{{{textMessage1Script|}}}
}}
}}{{#if: {{{textMessage2Title|}}} | <nowiki />
{{Tab/header|{{Phone history
{{Tab/header|{{Phone history
|name={{{textMessage2Title|}}}
|name={{{textMessage2Title|}}}
Line 68: Line 102:
|script=
|script=
{{{textMessage2Script|}}}
{{{textMessage2Script|}}}
}}{{#if: {{{textMessage3Title|}}} | <nowiki />
{{Tab/header|{{Phone history
|name={{{textMessage3Title|}}}
|historyType=Text Message
|contact={{{cardContact|}}}
|unlock={{{textMessage3Unlock|In-Story}}}
}}}}
{{Script
|scriptHeader=Text Message script
|script=
{{{textMessage3Script|}}}
}}
}}
{{Tab/end}}
}} }} {{Tab/end}} }}<!--


}}<!--
-->{{#if: {{{afterStoryScript|}}} | <nowiki />
 
===After Story===
-->{{#if: {{{videoCallTitle|}}} | &#32;
===Video Call===
{{Phone history
|name={{{videoCallTitle|}}}
|historyType=Video Call
|contact={{{cardContact|}}}
|unlock={{{videoCallUnlock|After Story 6}}}
}}
{{Script
{{Script
|scriptHeader=Video Call script
|scriptHeader=After Story script
|script=
|script=
{{{videoCallScript|}}}
{{{afterStoryScript|}}}
}}
}}


}}<!--
}}<!--


-->{{#if: {{{afterStoryScript|}}} | &#32;
-->{{#if: {{{tokenScript|}}} | <nowiki />
===After Story===
===Token===
{{Script
{{Script
|scriptHeader=After Story script
|scriptHeader=Token examination
|script=
|script=
{{{afterStoryScript|}}}
{{Float|[[File:{{{tokenImage|}}}|{{{tokenImageSize|}}}]]}}
{{{tokenScript|}}}
}}
}}


}}<!--
}}<!--


-->{{#if: {{{storyLocations|}}} | &#32;
-->{{#if: {{{storyLocations|}}} | <nowiki />
===Story Locations===
===Story Locations===
{{NotableWrap
{{NotableWrap
|notables=
|notables=
{{{storyLocations|}}}
{{{storyLocations|}}}
}} }}</includeonly>
}} }}<!--
 
-->{{#if: {{{storyCharacters|}}} | <nowiki />
===Story Characters===
{{NotableWrap
|notables=
{{{storyCharacters|}}}
}} }}<!--
 
-->{{#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: