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: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 class="resloc-box resloc-box-normal">
{{#tag: h{{{level|3}}} |
'''This {{{type|resource}}} is found at'''
{{#if: {{{archive|}}} |{{archiveicon}}|{{fileicon}}}} {{{prefix|}}}[[{{{1}}}|{{{1|{{{text}}}}}}]]}}
 
{{#ifexist: {{{1}}} |{{:{{{1}}}}}|}}<div style="clear: both;"></div><noinclude><templatedata>
{{{locations}}}
</div>
{{#if:{{{path|}}}|
<div class="resloc-box resloc-box-normal">
 
'''Its [[canonical resource path|RSTB path]] is'''
"{{{path}}}"
</div>|
}}
{{#if:{{{aoc_locations|}}}|
<div class="resloc-box resloc-box-aoc">
''In the [[Add-on content|DLC]], its found at''
 
{{{aoc_locations}}}
</div>
{{#if:{{{path|}}}|
{{#ifeq:{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=false}}|{{{path}}}||
<div class="resloc-box resloc-box-aoc">
 
'''Its DLC RSTB path is'''
"{{#invoke:AocUtils|get_aoc_canonical_path|path={{{path}}}|aoc_only=false}}"
</div>}}}}}}
<noinclude>
<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"
"label": "Canonical path (with no prefix)",
        },
"example": "Actor/Pack/Armor_001_Upper.bactorpack",
        "text": {
"description": "The canonical path of the resource but WITHOUT any path prefixes (e.g. Aoc/0010/)",
"label": "Repalcement display text",
"suggested": true
"type": "string"
},
        },
"locations": {
        "level": {
"type": "string",
"label": "Heading level",
"default": "the unpacked content files",
"type": "number",
"label": "Locations",
            "description": "Defaults to 3"
"example": "the base content files, [[Bootup.pack]], and various [[bactorpack]] archives",
        },
"description": "Where the resource can be found (in base content)",
        "archive": {
"suggested": true
"label": "Is archive?",
},
"aoc_locations": {
"label": "Locations (add-on content)",
"description": "Where the resource can be found in add-on content. Leave this empty for non-DLC files",
"type": "string",
"default": "the unpacked content files",
"suggested": true
},
"aoc_replaces_base": {
"label": "AoC replaces base content?",
"description": "Whether the AoC version replaces the base content",
"type": "boolean",
"type": "boolean",
"default": "false",
            "description": "Uses archive icon if true"
"suggested": true
        }
}
}
},
"description": "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