Difference between revisions of "Template:Quest Stage"

From sureai
Jump to: navigation, search
(Remove header from example)
(Improve padding for long journal entries)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly><tr>
 
<onlyinclude><includeonly><tr>
 
<td style="background-color: var(--primary-color); color: white; text-align: center; padding: .5em .25em; ">{{{1}}}</td>
 
<td style="background-color: var(--primary-color); color: white; text-align: center; padding: .5em .25em; ">{{{1}}}</td>
<td style="text-align: center; ">{{#switch: {{{finishes|}}}
+
<td style="border-bottom: 1px solid var(--light-color);  text-align: center; ">{{#switch: {{{finishes|}}}
| complete = [[File:Quest Complete.svg|20px|link=]]
+
| complete = [[File:Quest Complete.svg|23px|link=]]
 
| fail = [[File:Quest Fail.svg|20px|link=]]
 
| fail = [[File:Quest Fail.svg|20px|link=]]
 
}}</td>
 
}}</td>
<td>{{{2|}}}</td>
+
<td style="border-bottom: 1px solid var(--light-color); border-right: 1px solid var(--light-color); padding: .25em 1em .25em 0; ">{{{2|}}}</td>
 
</tr></includeonly></onlyinclude>
 
</tr></includeonly></onlyinclude>
 
This template is to be used in conjunction with [[Template:Quest Stages-Start|Quest Stages-Start]], [[Template:Quest Stages-End|Quest Stages-End]], and [[Template:Quest Objective|Quest Objective]] to make a Quest Stages table.
 
This template is to be used in conjunction with [[Template:Quest Stages-Start|Quest Stages-Start]], [[Template:Quest Stages-End|Quest Stages-End]], and [[Template:Quest Objective|Quest Objective]] to make a Quest Stages table.
Line 25: Line 25:
 
=== Quest Stages End ===
 
=== Quest Stages End ===
 
* '''empty''' (Optional): A comma-separated list of quest stages, in increasing order, that were ommited from the table for being empty.
 
* '''empty''' (Optional): A comma-separated list of quest stages, in increasing order, that were ommited from the table for being empty.
 +
* '''globals''' (Optional): If set to 1, creates a notice explaining objects that start with <code><nowiki><Global=</nowiki></code>
  
 
== Examples ==
 
== Examples ==
Line 43: Line 44:
 
{{Quest Stage|30|finishes=complete|I have contributed to the wiki.}}
 
{{Quest Stage|30|finishes=complete|I have contributed to the wiki.}}
 
{{Quest Stage|40|finishes=fail|I vandalized the wiki.}}
 
{{Quest Stage|40|finishes=fail|I vandalized the wiki.}}
{{Quest Stages-End|empty = 5, 25, 35, 45.}}
+
{{Quest Stages-End
 +
|empty = 5, 25, 35, 45
 +
|globals = 1
 +
}}
 
</pre>
 
</pre>
  
Line 61: Line 65:
 
{{Quest Stage|30|finishes=complete|I have contributed to the wiki.}}
 
{{Quest Stage|30|finishes=complete|I have contributed to the wiki.}}
 
{{Quest Stage|40|finishes=fail|I vandalized the wiki.}}
 
{{Quest Stage|40|finishes=fail|I vandalized the wiki.}}
{{Quest Stages-End|empty = 5, 25, 35, 45.}}
+
{{Quest Stages-End
 +
|empty = 5, 25, 35, 45
 +
|globals = 1
 +
}}}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 12:28, 24 December 2018

This template is to be used in conjunction with Quest Stages-Start, Quest Stages-End, and Quest Objective to make a Quest Stages table.

Parameters

Quest Stages Start

  • header (Optional): If set to 0, doesn't generate the default header before the table

Quest Stage

  • 1: The index of the stage
  • 2 (Optional): The journal entry of the stage
  • finishes (Optional): complete if the stage completes the quest, fail if it fails the quest

Quest Objective

  • 1: The index of the stage
  • 2: The description of the stage

Quest Stages End

  • empty (Optional): A comma-separated list of quest stages, in increasing order, that were ommited from the table for being empty.
  • globals (Optional): If set to 1, creates a notice explaining objects that start with <Global=

Examples

{{Quest Stages-Start|header=0}}
{{Quest Stage|10|
I have found a website. I should investigate it.
{{Quest Objective|5|Investigate the website}}
}}
{{Quest Stage|15|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae libero metus. Pellentesque eu ex elementum leo interdum vulputate eu et nisi. Quisque suscipit ipsum vitae ipsum facilisis, quis pharetra dui imperdiet. Etiam id lectus lacinia, varius leo sit amet, rutrum tortor. Morbi ornare neque in venenatis accumsan. Duis non nisi vitae arcu sagittis fringilla id in nulla. Fusce tortor magna, cursus a est sed, tincidunt finibus mauris. Nullam non felis mi. Suspendisse nulla lorem, convallis non nunc nec, mattis consequat lectus. Cras aliquet molestie dolor, ac sollicitudin eros vestibulum at. Sed egestas orci augue, vitae varius orci aliquet ac. 
}}
{{Quest Stage|20|
The website appears to be a wiki. I should contribute to it.
{{Quest Objective|10|Contribute to the wiki}}
{{Quest Objective|15|Vandalize the wiki}}
}}
{{Quest Stage|30|finishes=complete|I have contributed to the wiki.}}
{{Quest Stage|40|finishes=fail|I vandalized the wiki.}}
{{Quest Stages-End
|empty = 5, 25, 35, 45
|globals = 1
}}
Stage Finishes
Quest
Journal Entry
10

I have found a website. I should investigate it.

Objective 5: Investigate the website
15

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae libero metus. Pellentesque eu ex elementum leo interdum vulputate eu et nisi. Quisque suscipit ipsum vitae ipsum facilisis, quis pharetra dui imperdiet. Etiam id lectus lacinia, varius leo sit amet, rutrum tortor. Morbi ornare neque in venenatis accumsan. Duis non nisi vitae arcu sagittis fringilla id in nulla. Fusce tortor magna, cursus a est sed, tincidunt finibus mauris. Nullam non felis mi. Suspendisse nulla lorem, convallis non nunc nec, mattis consequat lectus. Cras aliquet molestie dolor, ac sollicitudin eros vestibulum at. Sed egestas orci augue, vitae varius orci aliquet ac.

20

The website appears to be a wiki. I should contribute to it.

Objective 10: Contribute to the wiki
Objective 15: Vandalize the wiki
30 Quest Complete.svg I have contributed to the wiki.
40 Quest Fail.svg I vandalized the wiki.
  • The following empty quest stages were omitted from the table: 5, 25, 35, 45
  • Text containing <Global= will be replaced with the value of the appropriate variables at runtime}}