Шаблон:Pet infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 11: | Строка 11: | ||
:{{#if: {{{family|}}} | {{#switch: {{lc:{{{family}}}}} | :{{#if: {{{family|}}} | {{#switch: {{lc:{{{family}}}}} | ||
| armored fish | | armored fish | ||
+ | | aether hunter | ||
| fanged iboga | | fanged iboga | ||
| jacaranda | | jacaranda | ||
Строка 16: | Строка 17: | ||
| bristleback | | bristleback | ||
| rock gazelle | | rock gazelle | ||
+ | | phoenix | ||
| shark | | shark | ||
| turtle | | turtle | ||
| wallow = {{#set:Has pet family={{ucfirst:{{{family}}}}}}} Unique | | wallow = {{#set:Has pet family={{ucfirst:{{{family}}}}}}} Unique | ||
− | |||
− | |||
| #default = [[Has pet family::{{ucfirst:{{{family}}}}}]]}} | <nowiki>{{{family}}}</nowiki> }}<!-- avoids SMW bug which corrupts PAGENAME + PRETAG entities --> | | #default = [[Has pet family::{{ucfirst:{{{family}}}}}]]}} | <nowiki>{{{family}}}</nowiki> }}<!-- avoids SMW bug which corrupts PAGENAME + PRETAG entities --> | ||
;[[Region]] | ;[[Region]] | ||
Строка 37: | Строка 37: | ||
{{clear}} | {{clear}} | ||
</div> | </div> | ||
− | {{quotation|Acht|[[Has game description::{{{description|''No description available.''}}}]]}}<!-- | + | {{quotation|[[Acht]]|[[Has game description::{{{description|''No description available.''}}}]]}}<!-- |
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | ||
Строка 66: | Строка 66: | ||
| armored fish | | armored fish | ||
| shark = [[Category:Unique aquatic family pets]] | | shark = [[Category:Unique aquatic family pets]] | ||
+ | | aether hunter = [[Category:Unique terrestrial family pets]] | ||
| #default = [[Category:Pets with unrecognized family]] | | #default = [[Category:Pets with unrecognized family]] | ||
}}{{#arraymap: {{lc:{{{region}}}}} |,|@@@| {{#switch: @@@ | }}{{#arraymap: {{lc:{{{region}}}}} |,|@@@| {{#switch: @@@ | ||
Строка 72: | Строка 73: | ||
| crystal desert = [[Category:Crystal Desert pets]] | | crystal desert = [[Category:Crystal Desert pets]] | ||
| far shiverpeaks = [[Category:Hall of Monuments pets]] | | far shiverpeaks = [[Category:Hall of Monuments pets]] | ||
+ | | horn of maguuma = [[Category:Horn of Maguuma pets]] | ||
| heart of maguuma = [[Category:Heart of Maguuma pets]] | | heart of maguuma = [[Category:Heart of Maguuma pets]] | ||
| kryta = [[Category:Krytan pets]] | | kryta = [[Category:Krytan pets]] | ||
| maguuma jungle = [[Category:Maguuma pets]] | | maguuma jungle = [[Category:Maguuma pets]] | ||
+ | | maguuma wastes = [[Category:Maguuma Wastes pets]] | ||
| ruins of orr = [[Category:Orrian pets]] | | ruins of orr = [[Category:Orrian pets]] | ||
+ | | ring of fire = [[Category:Ring of Fire pets]] | ||
| shiverpeak mountains = [[Category:Shiverpeak pets]] | | shiverpeak mountains = [[Category:Shiverpeak pets]] | ||
| the mists = [[Category:The Mists pets]] | | the mists = [[Category:The Mists pets]] |
Текущая версия на 18:17, 3 января 2024
Usage[править]
{{Pet infobox | name = | icon = | image = | description = | family = | region = }}
Parameters[править]
- name
- Optional. Defaults to the name of the article. (
{{PAGENAME}}
). - icon
- Optional. The pet icon. Do not include the File: namespace prefix or the file extension; the template assumes .png format. Defaults to
name
. - image
- Optional. The pet image. Do not include the File: namespace prefix. Defaults to the page name (
{{PAGENAME}}.jpg
). - description
- Required. The description shown when you charm the pet.
- family
- Required. Pet family name: moa, bear, drake, etc.
- region
- Required. Region where pet is found, not using the parameter will result in Unknown. If pet is found in multiple regions, separate with commas, e.g.: Ascalon, Kryta.
- archetype
- Required. The soulbeast archetype of a given pet. Available options: "deadly", "ferocious", "stout", "supportive", "versatile"
- underwater
- Optional. Defaults to "no", i.e. defaults to stating that a pet is terrestrial. Sets the semantic property Is usable underwater. Options: "yes" (amphibious), "no" (terrestrial), or "only" (aquatic).
- categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- status
- Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "discontinued", "future", "unimplemented", "current" (default).
- status notes
- Optional. Allows provision of additional reason for the given status.
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.
Example[править]
{{Pet infobox | name = Juvenile Armor Fish | image = Juvenile Armor Fish.jpg | description = This durable fish's armor can withstand a tremendous amount of punishment. Armor fish overwhelm their foes with disorienting bash attacks while shrugging off their counterattacks. | family = Armored Fish | region = Ascalon, Kryta, Maguuma Jungle, The Mists | archetype = Stout | underwater = only }}
“This durable fish's armor can withstand a tremendous amount of punishment. Armor fish overwhelm their foes with disorienting bash attacks while shrugging off their counterattacks.
— Acht