The Wiki for Tale 8 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.
If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.
Difference between revisions of "Template:Test"
Jump to navigation
Jump to search
m (Tweaking automatic categorization for tests that aren't part of a specific discipline) |
(Updating template to make use of the new Lua-based Infobox) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{Infobox |
− | | ibname | + | | ibclass = {{#switch: {{{discipline|}}} | Architecture = ib-architecture | Art and Music = ib-art-and-music | Harmony = ib-harmony | Leadership = ib-leadership | The Human Body = ib-the-human-body | Thought = ib-thought | Worship = ib-worship }} |
− | | ibtype | + | | ibname = {{{name|{{PAGENAME}}}}} |
− | | image | + | | ibtype = {{#if: {{{discipline|}}} | Discipline of {{{discipline}}} Test }} |
+ | | image = {{#if: {{{image|}}} | {{{image|}}} }} | ||
− | | | + | | content = |
− | + | {{ #if:{{{level|}}} | | |
− | + | {{#invoke:Infobox|stacked|Level Required|Level {{{level|}}} }} | |
− | + | }} | |
− | | | + | {{ #if:{{{requirements|}}} | |
− | | | + | {{#invoke:Infobox|stacked|Other Requirements| |
+ | {{{requirements|}}} | ||
+ | }} | ||
+ | }} | ||
− | + | {{ #if:{{{demonstration|}}} | | |
− | + | {{#invoke:Infobox|stacked|Demonstration|{{{demonstration|}}} }} | |
− | + | }} | |
− | | | ||
− | | | ||
}} | }} | ||
Line 22: | Line 24: | ||
{{#if: {{{discipline|}}} | [[Category:{{{discipline}}}]] }} | {{#if: {{{discipline|}}} | [[Category:{{{discipline}}}]] }} | ||
{{#if: {{{discipline|}}} | [[Category:Tests/{{{discipline}}}]] }} | {{#if: {{{discipline|}}} | [[Category:Tests/{{{discipline}}}]] }} | ||
− | [[Category:Tests/Level {{{level}}}]] | + | [[Category:Tests/Level {{{level}}}]]</includeonly><noinclude> |
− | |||
− | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Infoboxes|Test]] | [[Category:Infoboxes|Test]] | ||
</noinclude> | </noinclude> |
Revision as of 11:41, 21 November 2018
Template documentation (for the above template, sometimes hidden or invisible)
{{Test}} is for use in any article about an in-game "test". The level
parameter is required while all other parameters are optional and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.
Template
{{Test | name = | discipline = | image = | level = | requirements = | demonstration = }}
Usage
- name
- The name of the test.
- discipline (optional)
- The discipline associated with the test (e.g. Architecture, Thought, etc.)
- image (optional)
- File name of an image for the test. Should generally be the official in-game test "icon". The recommended size is 250px but, if larger, the image should scale to fit the template.
- level
- The level required to begin the test at the relevant university.
- requirements (optional)
- Other technology or skill requirements for the test. Should include requirements to unlock the test, as well as to complete the test's principles and to complete the test itself. Best displayed using an unordered list starting immediately below the
requirements =
line (see below example).
- demonstration (optional)
- A description of when, where, and by whom the test was demonstrated (unlocked). This parameter should use the {{Demonstration}} template to reference this information.
Example
Test of the Obelisk |
---|
(Test - Architecture) |
Level Required |
Level 3 |
Other Requirements |
Demonstration |
Demonstrated by Catote on March 12, 2018 |
{{Test | name = Test of the Obelisk | discipline = Architecture | image = Architecture Test Icons_Test Obelisk.png | level = 3 | requirements = * [[Obelisk Construction]] * [[Project Management]] | demonstration = {{Demonstration|demoplayer=Catote|demodate=March 12, 2018}} }}
Visit Template:Test/doc to edit this text! (How does this work?)