Template:Infobox level: Difference between revisions

Template page
m (Fixing table layout)
(Added nocategory)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Truthtable/styles.css"/>
{| class="wikitable infobox" style="float:right;"
{| class="wikitable infobox" style="float:right;"
|+ {{{level|{{{Level|}}}}}}
|+ {{{level|{{{Level|}}}}}}
|-
|-
! Section
! Section
| {{{section|}}} {{#if:{{{section|}}}|[[Category:{{{section}}} level]]}}
| {{{section|}}} {{#if:{{{section|}}}|{{#if:{{{nocategory|}}}||[[Category:{{{section}}} level]]}}}}
|-
|-
! Type
! Type
| {{#if:{{{architechture|}}}|{{{architechture}}} [[Category:{{{architechture}}} level]] &nbsp; }}{{{type|}}} {{#if:{{{type|}}}|[[Category:{{{type}}} level]]}}
| {{#if:{{{architechture|}}}|{{{architechture}}} {{#if:{{{nocategory|}}}||[[Category:{{{architechture}}} level]]}} &nbsp; }}{{{type|}}} {{#if:{{{type|}}}|{{#if:{{{nocategory|}}}||[[Category:{{{type}}} level]]}}}}
|-
{{ifnotempty|{{{prerequisite1|}}}|{{!}}-
{{#if:{{{prerequisite1|}}}|
! {{#if:{{{prerequisite2|}}}|Prerequisites|Prerequisite}}  
! {{#if:{{{prerequisite2|}}}|Prerequisites|Prerequisite}}  
{{!}} {{#if:{{{prerequisite1|}}}|{{Level|{{{prerequisite1}}}}}|First level}} {{#if:{{{prerequisite2|}}}|<br />{{Level|{{{prerequisite2}}}}}}} {{#if:{{{prerequisite3|}}}|<br />{{Level|{{{prerequisite3}}}}}}}
{{!}} {{#if:{{{prerequisite1|}}}|{{Level|{{{prerequisite1}}}}}|First level}} {{#if:{{{prerequisite2|}}}|<br />{{Level|{{{prerequisite2}}}}}}} {{#if:{{{prerequisite3|}}}|<br />{{Level|{{{prerequisite3}}}}}}}
|}}
|-
{{#if: {{{unlocks-level1|}}}{{{unlocks-component1|}}}{{{unlocks-page1|}}}{{{unlocks-feature1|}}}{{{unlock-notes|}}} |
! rowspan="{{#expr: {{#if:{{{unlocks-level1|}}}|1|0}} + {{#if:{{{unlocks-component1|}}}|1|0}} + {{#if:{{{unlocks-page1|}}}|1|0}} + {{#if:{{{unlocks-feature1|}}}|1|0}} + {{#if:{{{unlocks-notes|}}}|1|0}} }}" {{!}}Unlocks
{{ifnotempty|{{{unlocks-level1|}}}
|{{!}} {{Level|{{{unlocks-level1|}}}}} {{#if:{{{unlocks-level2|}}}|<br />{{Level|{{{unlocks-level2}}}}}}} {{#if:{{{unlocks-level3|}}}|<br />{{Level|{{{unlocks-level3}}}}}}}
{{!}}-
|}}{{ifnotempty|{{{unlocks-component1|}}}
|{{!}} {{Component|{{{unlocks-component1}}}}} {{#if:{{{unlocks-component2|}}}|<br />{{Component|{{{unlocks-component2}}}}}}} {{#if:{{{unlocks-component3|}}}|<br />{{Component|{{{unlocks-component3}}}}}}} {{#if:{{{unlocks-component4|}}}|<br />{{Component|{{{unlocks-component4}}}}}}} {{#if:{{{unlocks-component5|}}}|<br />{{Component|{{{unlocks-component5}}}}}}}
{{!}}-
|}}{{ifnotempty|{{{unlocks-page1|}}}
|{{!}} {{Page|{{{unlocks-page1}}}}}
{{!}}-
{{!}}-
}}
|}}{{ifnotempty|{{{unlocks-feature1|}}}
{{#if:{{{unlocks-level1|}}}{{{unlocks-component1|}}}{{{unlocks-page1|}}}{{{unlocks-feature1|}}}{{{unlock-notes|}}}|
|{{!}} {{Feature|{{{unlocks-feature1}}}}}
! rowspan="{{#expr: {{#if:{{{unlocks-level1|}}}|1|0}} + {{#if:{{{unlocks-component1|}}}|1|0}} + {{#if:{{{unlocks-page1|}}}|1|0}} + {{#if:{{{unlocks-feature1|}}}|1|0}} + {{#if:{{{unlock-notes|}}}|1|0}} }}" {{!}} Unlocks
{{!}}-
{{#if:{{{unlocks-level1|}}}|
|}}{{ifnotempty|{{{unlock-notes|}}}
{{!}} {{Level|{{{unlocks-level1}}}}} {{#if:{{{unlocks-level2|}}}|<br />{{Level|{{{unlocks-level2}}}}}}} {{#if:{{{unlocks-level3|}}}|<br />{{Level|{{{unlocks-level3}}}}}}}
|{{!}} {{{unlock-notes}}}
{{!}}-}}
{{!}}-
{{#if:{{{unlocks-component1|}}}|
|}}
{{!}} {{Component|{{{unlocks-component1}}}}} {{#if:{{{unlocks-component2|}}}|<br />{{Component|{{{unlocks-component2}}}}}}} {{#if:{{{unlocks-component3|}}}|<br />{{Component|{{{unlocks-component3}}}}}}} {{#if:{{{unlocks-component4|}}}|<br />{{Component|{{{unlocks-component4}}}}}}} {{#if:{{{unlocks-component5|}}}|<br />{{Component|{{{unlocks-component5}}}}}}}
|}}
{{!}}-}}
{{#if:{{{unlocks-page1|}}}|
{{!}} {{Page|{{{unlocks-page1}}}}}
{{!}}-}}
{{#if:{{{unlocks-feature1|}}}|
{{!}} {{Feature|{{{unlocks-feature1}}}}}
{{!}}-}}
{{#if:{{{unlock-notes|}}}|
{{!}} {{{unlock-notes}}}
{{!}}-}}
}}
! Scored
! Scored
|{{{scored|No}}}
|{{{scored|No}}}
|-
{{ifnotempty|{{{highscore|}}}|{{!}}-
{{#if:{{{highscore|}}}|
! [[High score]]
! [[High score]]
{{!}} {{{highscore}}}
{{!}} {{{highscore}}}
{{!}}-
}}
}}
|-
! API
! API
| {{{api-enum-id}}}&nbsp;({{{api-enum-number}}})
| {{{api-enum-id}}}&nbsp;({{{api-enum-number}}})
|-
|-
|}<includeonly>[[Category:level]]</includeonly><noinclude>
|}
<includeonly>{{#if:{{{nocategory|}}}||[[Category:level]]}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 12:38, 22 November 2023

Section
Type
Scored No
API {{{api-enum-id}}} ({{{api-enum-number}}})

This page has been transcluded from Template:Infobox level/Documentation.


Usage[edit source]

{{Infobox level
| section             = <!-- One of Basic Logic; Arithmetic; Memory; CPU Architecture; Programming; CPU Architecture 2; Functions; Assembly Challenges -->
| type                = <!-- One of Component; Architechture; Other -->
| architechture       = <!-- Optional: One of Overture; Leg -->
| prerequisite1       = <!-- Immediate prequesite level 1/3 -->
| prerequisite2       = 
| prerequisite3       = 
| unlocks-level1      = <!-- Which levels are opened on completion of this one 1/3 -->
| unlocks-level2      = 
| unlocks-level3      = 
| unlocks-component1  = <!-- Which components are unlocked by this level 1/5 -->
| unlocks-component2  = 
| unlocks-component3  = 
| unlocks-component4  = 
| unlocks-component5  = <!-- If more than 5 components unlocked describe them in unlock-notes -->
| unlocks-page1       = <!-- Which manual page is unlocked -->
| unlocks-feature1    = <!-- Which feature is unlocked -->
| unlock-notes        = <!-- Additional text -->
| scored              = <!-- Either Yes or No, defaults to No -->
| highscore           = <!-- Best known Sum-score, no cheese, Optional -->
| api-enum-id         = <!-- Internal ID string, see [https://turingcomplete.game/player_projects] -->
| api-enum-number     = <!-- Internal ID number, see [https://turingcomplete.game/player_projects] -->
| nocategory          = Set to 1, or any value, to prevent the page from being included in the Level Category
}}

See also[edit source]

Skeleton[edit source]

{{Infobox level
| section             = <!-- One of Basic Logic; Arithmetic; Memory; CPU Architecture; Programming; CPU Architecture 2; Functions; Assembly Challenges -->
| type                = <!-- One of Component; Architechture; Other -->
| architechture       = <!-- Optional: One of Overture; Leg -->
| prerequisite1       = <!-- Immediate prequesite level 1/3 -->
| prerequisite2       = 
| prerequisite3       = 
| unlocks-level1      = <!-- Which levels are opened on completion of this one 1/3 -->
| unlocks-level2      = 
| unlocks-level3      = 
| unlocks-component1  = <!-- Which components are unlocked by this level 1/5 -->
| unlocks-component2  = 
| unlocks-component3  = 
| unlocks-component4  = 
| unlocks-component5  = <!-- If more than 5 components unlocked describe them in unlock-notes -->
| unlocks-page1       = <!-- Which manual page is unlocked -->
| unlocks-feature1    = <!-- Which feature is unlocked -->
| unlock-note         = <!-- Additional text -->
| scored              = <!-- Either Yes or No, defaults to No -->
| highscore           = <!-- Best known Sum-score, no cheese, Optional -->
| api-enum-id         = <!-- Internal ID string, see [https://turingcomplete.game/player_projects] -->
| api-enum-number     = <!-- Internal ID number, see [https://turingcomplete.game/player_projects] -->
| nocategory          = Set to 1, or any value, to prevent the page from being included in the Level Category
}}