Template:Resloc: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>BravelyPeculiar
No edit summary
imported>BravelyPeculiar
(Revamped to use canonical paths)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="border: 1px solid #d2d2d2; padding: 2px 5px; font-size: 85%; border-left: 5px solid #36c;">This {{{type|resource}}} is located at '''{{{path|the root directory}}}''' in {{{archive|{{{locations|the '''base content files'''}}}}}}.</div>
<div style="border: 1px solid #d2d2d2; padding: 2px 5px; font-size: 85%; border-left: 5px solid #36c;">This {{{type|resource}}}'s [[canonical resource path]] is {{{path}}}.
It is found in {{{locations|the '''base content files'''}}}.</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 8: Line 9:
"default": "resource",
"default": "resource",
"label": "Item type",
"label": "Item type",
"example": "resource"
"example": "file"
},
},
"path": {
"path": {
"type": "string",
"type": "string",
             "default": "the root directory",
             "required": true,
"label": "Filepath to item",
"label": "Canonical path",
"example": "Actor/Pack/"
"example": "Actor/Pack/Armor_001_Upper.bactorpack"
},
},
"locations": {
"locations": {
Line 21: Line 22:
"label": "location of file",
"label": "location of file",
"example": "the '''base content files''', [[Bootup.pack]], and various [[bactorpack]] archives"
"example": "the '''base content files''', [[Bootup.pack]], and various [[bactorpack]] archives"
},
"archive": {
"type": "string",
"label": "Archive name",
"description": "If provided, the locations parameter will be ignored",
"example": "TitleBG.pack"
}
}
},
},

Revision as of 23:00, 6 September 2018

This resource's canonical resource path is {{{path}}}. It is found in the base 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
location of filelocations

no description

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