imported>BravelyPeculiar |
imported>BravelyPeculiar |
Line 1: |
Line 1: |
| <div class="resloc-box resloc-box-normal">
| | {{#tag: h{{{level|3}}} | |
| '''This {{{type|resource}}} is found in'''
| | {{#if: {{{archive|}}} |{{archiveicon}}|{{fileicon}}}} {{{prefix|}}}[[{{{1}}}|{{{1|{{{text}}}}}}]]}} |
| {{{locations|the [[Content|unpacked content files]]}}}. | | {{#ifexist: {{{1}}} |{{:{{{1}}}}}|}}<div style="clear: both;"></div><noinclude><templatedata> |
| </div>
| |
| {{#if:{{{path|}}}| | |
| <div class="resloc-box resloc-box-normal">
| |
| '''Its [[canonical resource path|canonical path]] is'''
| |
| "{{{path}}}".
| |
| </div>}}{{#if:{{{aoc_locations|}}}|
| |
| <div class="resloc-box resloc-box-aoc">
| |
| '''In the [[Add-on content|add-on content]], it is found in'''
| |
| {{{aoc_locations}}}. | |
| </div>
| |
| {{#if:{{{path|}}}| | |
| {{#ifeq:{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=false}}|{{{path}}}|
| |
| <div class="resloc-box resloc-box-aoc"> | |
| '''Its DLC 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> |