Scheduled system upgrade on Sunday 21 April 2024 15:00-16:00 UTC - On that day, the wiki and other services might go down for 5-15 minutes.

Template:Resloc: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>BravelyPeculiar
No edit summary
imported>Leoetlino
m (hide resource in templatedata)
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="border: 1px solid #d2d2d2; padding: 2px 5px; font-size: 85%; border-left: 5px solid {{#if:{{{aoc_code|}}}|#90c;|#36c}}">{{#if:{{{aoc_code|}}}|{{#if:{{{aoc_exception|}}}|This {{{type|resource}}} appears in the game's [[add-on content]] under '''{{{aoc_code}}}''', but for some reason it uses the [[canonical resource path|canonical path]] "'''{{{path}}}'''" (without the ''Aoc/{{{aoc_code}}}/'' prefix).|This {{{type|resource}}} appears in the game's [[add-on content]], with a [[canonical resource path|canonical path]] of "'''Aoc/{{{aoc_code}}}/{{{path}}}'''".}}|This {{{type|resource}}}'s [[canonical resource path|canonical path]] is "'''{{{path}}}'''".}} It is found in {{{locations|the unpacked content files}}}</div>
<templatestyles src="Resloc/styles.css" />
<div class="resloc-box resloc-box-{{#if:{{{aoc_code|}}}|aoc|normal}}">{{#if:{{{aoc_code|}}}|{{#if:{{{aoc_exception|}}}|This {{{type|resource}}} appears in the game's [[add-on content]] under '''{{{aoc_code}}}''', but it uses the [[canonical resource path|canonical path]] "'''{{{path}}}'''" (without the ''Aoc/{{{aoc_code}}}/'' prefix).|This {{{type|resource}}} appears in the game's [[add-on content]] with the [[canonical resource path|canonical path]] "'''Aoc/{{{aoc_code}}}/{{{path}}}'''".}}|This {{{type|resource}}}'s [[canonical resource path|canonical path]] is "'''{{{path}}}'''".}} It is found in {{{locations|the unpacked content files}}}.</div>
<noinclude>
<noinclude>
<!-- Make sure the </div> is on the same line as the text to avoid extra spacing -->
<!-- Make sure the </div> is on the same line as the text to avoid extra spacing -->
Line 17: Line 18:
"example": "Actor/Pack/Armor_001_Upper.bactorpack"
"example": "Actor/Pack/Armor_001_Upper.bactorpack"
},
},
        "aoc_code": {
"aoc_code": {
"type": "string",
"type": "string",
"label": "Aoc code",
"label": "Add-on content code",
            "example": "0010",
"example": "0010",
            "aliases": ["aoc"]
"description": "Ignore for non-aoc resources"
},
},
        "aoc_exception": {
"aoc_exception": {
"type": "boolean",
"type": "boolean",
"label": "Aoc path exception?",
"label": "AoC path exception?",
            "description": "Does this resource use a canonical path with no 'Aoc/XXXX' prefix, despite being an aoc file?"
"description": "Does this resource use a canonical path with no 'Aoc/XXXX' prefix, despite being an aoc file?"
        },
},
"locations": {
"locations": {
"type": "string",
"type": "string",

Revision as of 13:24, 8 September 2018

Page Template:Resloc/styles.css has no content.

This resource's canonical path is "{{{path}}}". It is found in the unpacked content files.

Notice template that shows the location of a resource

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item typetype

no description

Default
resource
Example
file
Stringoptional
Canonical pathpath

no description

Example
Actor/Pack/Armor_001_Upper.bactorpack
Stringrequired
Add-on content codeaoc_code

Ignore for non-aoc resources

Example
0010
Stringoptional
AoC path exception?aoc_exception

Does this resource use a canonical path with no 'Aoc/XXXX' prefix, despite being an aoc file?

Booleanoptional
location of filelocations

no description

Default
the base content files
Example
the base content files, [[Bootup.pack]], and various [[bactorpack]] archives
Stringoptional