Template:Resloc and Template:Content file: 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>
{{#tag: h{{{level|3}}} |
<noinclude>
{{#if: {{{archive|}}} |{{archiveicon}}|{{fileicon}}}} {{{prefix|}}}[[{{{1}}}|{{{1|{{{text}}}}}}]]}}
<!-- Make sure the </div> is on the same line as the text to avoid extra spacing -->
{{#ifexist: {{{1}}} |{{:{{{1}}}}}|}}<div style="clear: both;"></div><noinclude><templatedata>
<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"
"required": true,
        },
"label": "Canonical path",
        "text": {
"example": "Actor/Pack/Armor_001_Upper.bactorpack"
"label": "Repalcement display text",
},
"type": "string"
         "aoc_code": {
        },
"type": "string",
         "level": {
"label": "Aoc code",
"label": "Heading level",
             "example": "0010",
"type": "number",
            "aliases": ["aoc"]
             "description": "Defaults to 3"
},
        },
        "aoc_exception": {
        "archive": {
"label": "Is archive?",
"type": "boolean",
"type": "boolean",
"label": "Aoc path exception?",
             "description": "Uses archive icon if true"
             "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 18:03, 4 April 2019

[[{{{1}}}|{{{text}}}]]

No description.

Template parameters

ParameterDescriptionTypeStatus
Target page1

no description

Page namerequired
Non-link prefixprefix

no description

Stringoptional
Repalcement display texttext

no description

Stringoptional
Heading levellevel

Defaults to 3

Numberoptional
Is archive?archive

Uses archive icon if true

Booleanoptional