No edit summary |
(make unlock_conditions set Conditional attribute and place icon, LockedCondition no longer needed) |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly>{{#if: {{{1|}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}} | ||
|Connection/Origin = {{NAMESPACE}}:{{PAGENAME}} | |||
|Connection/Location = {{NAMESPACE}}:{{{1}}} | |Connection/Location = {{NAMESPACE}}:{{{1}}} | ||
|Is subobject type = connection}} | |Is subobject type = connection | ||
|Connection/Is removed = {{{is_removed|false}}} | |||
|Connection/Directions = {{{directions|}}} | |||
|Connection/Primary image = {{#if: {{{primary_image|}}}|Media:{{{primary_image}}}}} | |||
|Connection/Secondary image = {{#if: {{{secondary_image|}}}|Media:{{{secondary_image}}}|{{#if: {{{primary_image|}}}|Media:{{{primary_image}}}}}}} }} | |||
{{#if: {{{unlock_type|}}}| | {{#if: {{{unlock_type|}}}| | ||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch:{{{unlock_type|}}}|Locked = Locked|Unlock = Unlockable| | {{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#if:{{{unlock_conditions|}}}|Conditional,}}{{#switch:{{{unlock_type|}}}|Locked = Locked|Unlock = Unlockable}}|+sep=,}} | ||
}} | |||
{{#if: {{{unlock_conditions|}}}| | |||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Unlock conditions = {{{unlock_conditions}}} }} | |||
}} | }} | ||
{{#if: {{{effects_needed||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Needs Effect|Connection/Effects needed = {{{effects_needed}}}|+sep=,}} }} | {{#if: {{{effects_needed||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Needs Effect|Connection/Effects needed = {{{effects_needed}}}|+sep=,}} }} | ||
{{#if: {{{season||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Seasonal|Connection/Season available = {{{season}}}}} }} | {{#if: {{{season||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Seasonal|Connection/Season available = {{{season}}}}} }} | ||
{{#if: {{{chance_description||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Chance }} }} | {{#if: {{{chance_description||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Chance|Connection/Chance percentage = {{{chance_percentage|0%}}}|Connection/Chance description={{#if: {{{chance_percentage|}}}|{{{chance_description}}}|Connection only available sometimes}} }} }} | ||
{{#if: {{{phonebooth_type}}}| | {{#if: {{{phonebooth_type}}}| | ||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{phonebooth_type|}}} | {{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{phonebooth_type|}}} | ||
Line 18: | Line 26: | ||
|Return = Return }}}} | |Return = Return }}}} | ||
}} | }} | ||
{{#if: {{{one_way_type|}}}| | |||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch:{{{one_way_type|}}} | |||
|NoReturn = No Return | |||
|NoEntry = No Entry}}}} | |||
}} | |||
{{#ifeq: {{{chaser_type|}}}|Trap| | |||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = No Entry}}{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Dead End}} | |||
}} | |||
{{#ifeq: {{{chaser_type|}}}|Catch| | |||
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = No Return}}{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Return}} | |||
}} | |||
[[{{NAMESPACE}}:{{#if:a| {{{1}}} }}|{{#if:a| {{{alias| {{{1}}} }}} }}]] {{#switch: {{{unlock_type|}}} | |||
|Locked | |Locked | ||
|Unlock = {{Unlockable|{{{unlock_type}}}}} | |Unlock = {{Unlockable|{{{unlock_type}}}}} | ||
}} {{#if:{{{unlock_conditions|}}}|{{Unlockable|LockedCondition|{{{unlock_conditions}}}|{{{unlock_instruction_link|}}}}} | |||
}} {{#if: {{{ | }} {{#if: {{{chance_description|}}}|{{Chance|{{{chance_description|}}}|{{{chance_percentage|}}}}}}} {{#ifeq: {{{one_way_type}}}|NoEntry||{{#if: {{{effects_needed|}}}|{{NeedsEffect|{{{effects_needed}}}|{{#switch: {{{effect_conjunction|}}}|Or|or= or|#default = and}}}}}} {{#if: {{{season|}}}|{{Seasonal|{{{season}}}}}}} | ||
}} {{#if: {{{ | }} {{#switch: {{{phonebooth_type|}}} | ||
|Shortcut | |Shortcut | ||
|ExitPoint = {{Phonebooth|{{{phonebooth_type}}}}}}} {{#switch:{{{isolation_type|}}} | |ExitPoint = {{Phonebooth|{{{phonebooth_type}}}}}}} {{#switch:{{{isolation_type|}}} | ||
Line 31: | Line 49: | ||
|NoEntry | |NoEntry | ||
|NoReturn = {{OneWay|{{{one_way_type}}}}} | |NoReturn = {{OneWay|{{{one_way_type}}}}} | ||
}}|<span title="Please enter the location as the first parameter." style="font-size:125%; color:#FFFF00; background-color:#000000">⚠</span>}}</ | }} {{#switch:{{{chaser_type|}}} | ||
|Trap = {{Chaser|Trap}} | |||
|Catch = {{Chaser|Catch}} | |||
}}{{#if: {{{misc_label|}}}|({{{misc_label}}})}}|<span title="Please enter the location as the first parameter." style="font-size:125%; color:#FFFF00; background-color:#000000">⚠</span>}}<br /></includeonly> | |||
<noinclude> | <noinclude> | ||
{{Documentation}} | |||
{{ | [[Category:Connection templates]] | ||
[[Category:Location templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 18:50, 29 October 2024
Description
Renders a link (if provided) to an area's connection, along with icons denoting its attributes, and sets a subobject that can be queried.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location | 1 | The connection's target location.
| String | required |
Alias | alias | The alias of the connection. This supersedes the location's name if specified. | String | optional |
Locked Connection Type | unlock_type | Parameter for a locked connection. These connections are unlocked by the opposite side, are the ones unlocking the opposite side, or are accessible only after specific conditions are met.
| String | optional |
Unlock Conditions | unlock_conditions | Description for a conditionally-locked connection. Applicable if Lock Condition is set to LockedCondition. | String | optional |
Unlock Instruction Link | unlock_instruction_link | Link to a page pointing to the instructions on how to unlock an area.
| String | optional |
Chance Description | chance_description | Short description for chance-based connections.
| String | optional |
Chance Percentage | chance_percentage | Numeric probability for a chance-based connection. Applicable if Chance Description is specified.
| String | optional |
Effects Needed | effects_needed | The effects needed to enter the area, separated by commas.
| String | optional |
Effect Conjunction | effect_conjunction | Conjunction for the effects required; applicable if Effects Needed is specified. Defaults to "and", can be changed to "or".
| String | optional |
Season | season | The season at which an area is accessible.
| String | optional |
Phonebooth Type | phonebooth_type | Parameter denoting the side of a connection accessible from a phonebooth; this is applicable for areas in Yume 2kki. Accepted values are Shortcut for connections to the Dream Apartments and ExitPoint for connections on the area's page.
| String | optional |
Isolation Type | isolation_type | Determines what side an isolated connection is. Accepted values are DeadEnd and Return. DeadEnd is used on the page with the isolated section, whereas Return is used on the page that takes you to the isolated section.
| String | optional |
One Way Type | one_way_type | Parameter for a one-way connection. Accepted values are NoReturn and NoEntry.
| String | optional |
Chaser Type | chaser_type | For chasers and chaser traps. Accepted values are Catch and Trap.
| String | optional |
Directions | directions | A short description on the directions to a connection within the area.
| String | optional |
Primary Image | primary_image | File name pointing to the primary image representing a connection. The file in question must have a dimension of 128x128 pixels.
| String | optional |
Secondary Image | secondary_image | File name pointing to the secondary image representing a connection. The file in question must have a dimension of 128x128 pixels.
| String | optional |
Is Removed | is_removed | Indicates whether the connection has been removed. Defaults to false.
| Boolean | optional |
Miscellaneous Label | misc_label | Text indicating some other attribute or description regarding the connection. | String | optional |
Syntax
Connection without attributes; note that the named parameters are optional:
{{Connection|<location name>}}
Sample
{{Connection|Scrambled Egg Zone|unlock_type=LockedCondition|unlock_conditions=Requires breaking the egg in the Guardians' Temple and having the orbs show on each pillar.|one_way_type=NoReturn}}Scrambled Egg Zone 🔐 ➡️