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 and Template:Archive heading: Difference between pages

From ZeldaMods (Breath of the Wild)
(Difference between pages)
Jump to navigation Jump to search
imported>BravelyPeculiar
No edit summary
 
imported>BravelyPeculiar
No edit summary
 
Line 1: Line 1:
<div style="border: 1px solid #d2d2d2; padding: 2px 5px; font-size: 85%; border-left: 5px solid {{#if:{{{aoc_code}}}|#36c|#90c;}}">{{#if:{{{aoc_code}}}|{{#if:{{{aoc_exception}}}|This {{{type|resource}}} appears in the game's [[add-on content]] under '''{{{aoc_code}}}''', but uses a [[canonical resource path|canonical path]] of "'''{{{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>
<h2>{{#vardefine: path_middle |{{#titleparts: {{PAGENAME}} | -1 | 2 }}}}
{{#vardefine: link_text |{{{archive|Content}}}/{{#var: path_middle}}}}
{{#if: {{#var: path_middle}} | [[Content/{{#var: path_middle}}#{{#var: link_text}}|{{#var: link_text}}]]|[[{{{archive|Content}}}]]}}/{{SUBPAGENAME}}</h2>
<noinclude>
<noinclude>
<!-- Make sure the </div> is on the same line as the text to avoid extra spacing -->
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"type": {
         "1": {
"type": "string",
"label": "Archive",
"default": "resource",
             "description": "Don't include for unpacked files",
"label": "Item type",
"type": "string"
"example": "file"
        }
},
}
"path": {
"type": "string",
"required": true,
"label": "Canonical path",
"example": "Actor/Pack/Armor_001_Upper.bactorpack"
},
        "aoc_code": {
"type": "string",
"label": "Aoc code",
            "example": "0010",
            "aliases": ["aoc"]
},
         "aoc_exception": {
"type": "boolean",
"label": "Aoc path exception?",
             "description": "Does this resource use a canonical path with no 'Aoc/XXXX' prefix, despite being an aoc file?"
        },
"locations": {
"type": "string",
"default": "the base content files",
"label": "location of file",
"example": "the base content files, [[Bootup.pack]], and various [[bactorpack]] archives"
}
},
"description": "Notice template that shows the location of a resource",
"format": "inline"
}
}
</templatedata>
</templatedata>
[[Category:ZeldaMods templates]]
[[Category: ZeldaMods templates]]
</noinclude>
</noinclude>

Revision as of 17:30, 4 April 2019

Content/Archive heading

No description.

Template parameters

ParameterDescriptionTypeStatus
Archive1

Don't include for unpacked files

Stringoptional