imported>BravelyPeculiar |
imported>BravelyPeculiar |
Line 1: |
Line 1: |
| <div class="resloc-box resloc-box-normal">
| | {{#tag: h{{{level|3}}} | |
| This {{{type|resource}}} is found at
| | {{#if: {{{archive|}}} |{{archiveicon}}|{{fileicon}}}} {{{prefix|}}}[[{{{1}}}|{{{1|{{{text}}}}}}]]}} |
| | | {{#ifexist: {{{1}}} |{{:{{{1}}}}}|}}<div style="clear: both;"></div><noinclude><templatedata> |
| ''{{{locations|the unpacked content files}}}''
| |
| {{#if:{{{path|}}}|{{#ifeq:{{{type}}}|directory|| | |
| | |
| Its [[canonical resource path|RSTB path]] is
| |
| | |
| "'''{{{path}}}'''"
| |
| | |
| }}}} | |
| </div>{{#if:{{{aoc_locations|}}}|<div class="resloc-box resloc-box-aoc">
| |
| If the [[Add-on content|DLC]] is installed, it
| |
| {{#if: {{{aoc_replaces_base|}}}
| |
| |is '''instead''' loaded from | |
| | |
| ''{{{aoc_locations}}}''
| |
| | |
| }} in the aoc directory
| |
| |is also found at | |
| | |
| | |
| ''{{{aoc_locations|}}}''
| |
| | |
| in the aoc directory}}.
| |
| {{#if:{{{path|}}}| | |
| | |
| Its canonical path is "'''{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=false}}'''".}}
| |
| </div>}}<noinclude> | |
| <templatedata> | |
| { | | { |
| "params": { | | "params": { |
| "type": {
| | "1": { |
| "type": "string", | | "label": "Target page", |
| "default": "resource", | | "type": "wiki-page-name", |
| "label": "Item type",
| | "required": true |
| "example": "file"
| | }, |
| },
| | "prefix": { |
| "path": {
| | "label": "Non-link prefix", |
| "type": "string",
| | "type": "string" |
| "label": "Canonical path (with no prefix)", | | }, |
| "example": "Actor/Pack/Armor_001_Upper.bactorpack", | | "text": { |
| "description": "The canonical path of the resource but WITHOUT any path prefixes (e.g. Aoc/0010/)",
| | "label": "Repalcement display text", |
| "suggested": true
| | "type": "string" |
| },
| | }, |
| "locations": {
| | "level": { |
| "type": "string",
| | "label": "Heading level", |
| "default": "the unpacked content files",
| | "type": "number", |
| "label": "Locations", | | "description": "Defaults to 3" |
| "example": "the base content files, [[Bootup.pack]], and various [[bactorpack]] archives", | | }, |
| "description": "Where the resource can be found (in base content)",
| | "archive": { |
| "suggested": true
| | "label": "Is archive?", |
| },
| |
| "aoc_locations": {
| |
| "label": "Locations (add-on content)", | |
| "description": "Where the resource can be found in add-on content. Leave this empty for non-DLC files",
| |
| "type": "string", | |
| "default": "the unpacked content files",
| |
| "suggested": true
| |
| },
| |
| "aoc_replaces_base": {
| |
| "label": "AoC replaces base content?", | |
| "description": "Whether the AoC version replaces the base content",
| |
| "type": "boolean", | | "type": "boolean", |
| "default": "false",
| | "description": "Uses archive icon if true" |
| "suggested": true
| | } |
| }
| | } |
| }, | |
| "description": "Template that shows the location of a resource",
| |
| "format": "inline"
| |
| } | | } |
| </templatedata> | | </templatedata> |
| [[Category:ZeldaMods templates]] | | [[Category: ZeldaMods templates]] |
| </noinclude> | | </noinclude> |