Template:ReslocAoc: Difference between revisions

make path param optional
imported>Leoetlino
mNo edit summary
imported>Leoetlino
(make path param optional)
Line 1: Line 1:
<div class="resloc-box resloc-box-aoc">
<div class="resloc-box resloc-box-aoc">
If the [[DLC]] is installed, this {{{type|resource}}} can be found in {{{locations|the add-on content files}}}. Its [[canonical resource path|canonical path]] is "'''{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=true}}'''".
If the [[DLC]] is installed, this {{{type|resource}}} can be found in {{{locations|the add-on content files}}}.{{#if:{{{path|}}}| Its [[canonical resource path|canonical path]] is "'''{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=true}}'''".}}
</div>
</div>
<noinclude>
<noinclude>
Line 14: Line 14:
"path": {
"path": {
"type": "string",
"type": "string",
"required": true,
"label": "Canonical path (with no prefix)",
"label": "Canonical path (with no prefix)",
"example": "Actor/Pack/Armor_001_Upper.bactorpack",
"example": "Actor/Pack/Armor_001_Upper.bactorpack",
"description": "The canonical path of the resource but WITHOUT any path prefixes (e.g. Aoc/0010/)"
"description": "The canonical path of the resource but WITHOUT any path prefixes (e.g. Aoc/0010/)",
"suggested": true
},
},
"locations": {
"locations": {
Anonymous user