ARK: Survival Evolved Wiki
Seagull-Sid (обсуждение | вклад)
(Отмена правки 8176, сделанной Seagull-Sid (обсуждение))
Метка: отмена
Seagull-Sid (обсуждение | вклад)
Строка 1: Строка 1:
<includeonly>{{#if:{{{species|}}}|{{#if:{{{1|}}}|{{#tag:tabber|{{#if:{{{1|}}}|
+
<includeonly>{{#if:{{{species|}}}|<div style="display:none;">
  +
{{#vardefine:IslandMap|{{Ifpageexists|File:Spawning {{{species}}} The Island.svg|Spawning {{{species}}} The Island.svg}}}}
  +
{{#vardefine:CenterMap|{{Ifpageexists|File:Spawning {{{species}}} The Center.svg|Spawning {{{species}}} The Center.svg}}}}
  +
{{#vardefine:ScorchedEarthMap|{{Ifpageexists|File:Spawning {{{species}}} Scorched Earth.svg|Spawning {{{species}}} Scorched Earth.svg}}}}
  +
{{#vardefine:RagnarokMap|{{Ifpageexists|File:Spawning {{{species}}} Ragnarok.svg|Spawning {{{species}}} Ragnarok.svg}}}}
  +
{{#vardefine:AberrationMap|{{Ifpageexists|File:Spawning {{{species}}} Aberration.svg|Spawning {{{species}}} Aberration.svg}}}}
  +
{{#vardefine:ExtinctionMap|{{Ifpageexists|File:Spawning {{{species}}} Extinction.svg|Spawning {{{species}}} Extinction.svg}}}}
  +
{{#vardefine:ValgueroMap|{{Ifpageexists|File:Spawning {{{species}}} Valguero.svg|Spawning {{{species}}} Valguero.svg}}}}
  +
{{#vardefine:GenesisPart1Map|{{Ifpageexists|File:Spawning {{{species}}} Genesis Part 1.svg|Spawning {{{species}}} Genesis Part 1.svg}}}}
  +
{{#vardefine:CrystalIslesMap|{{Ifpageexists|File:Spawning {{{species}}} Crystal Isles.svg|Spawning {{{species}}} Crystal Isles.svg}}}}
  +
</div>{{#if:{{#var:IslandMap}}{{#var:CenterMap}}{{#var:ScorchedEarthMap}}{{#var:RagnarokMap}}{{#var:AberrationMap}}{{#var:ExtinctionMap}}{{#var:ValgueroMap}}{{#var:GenesisPart1Map}}{{#var:CrystalIslesMap}}|{{#tag:tabber|{{#if:{{#var:IslandMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{1|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{1|}}}_{{#ifeq:{{{1|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{1|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
The Island{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:The_Island_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:IslandMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{2|}}}|
+
-->{{#if:{{#var:CenterMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{2|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{2|}}}_{{#ifeq:{{{2|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{2|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
The Center{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:The_Center_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:CenterMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{3|}}}|
+
-->{{#if:{{#var:ScorchedEarthMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{3|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{3|}}}_{{#ifeq:{{{3|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{3|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
Scorched Earth{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Scorched_Earth_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:ScorchedEarthMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{4|}}}|
+
-->{{#if:{{#var:RagnarokMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{4|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{4|}}}_{{#ifeq:{{{4|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{4|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
Ragnarok{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Ragnarok_Ocean_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:RagnarokMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{5|}}}|
+
-->{{#if:{{#var:AberrationMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{5|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{5|}}}_{{#ifeq:{{{5|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{5|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
Aberration{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Aberration_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:AberrationMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{6|}}}|
+
-->{{#if:{{#var:ExtinctionMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{6|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{6|}}}_{{#ifeq:{{{6|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{6|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}<!--
+
Extinction{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Extinction_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:ExtinctionMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
-->{{#if:{{{7|}}}|
+
-->{{#if:{{#var:ValgueroMap}}|
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{{7|}}}=<div class="noviewer" style="position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style="position:absolute" class="spawningMap-map colorBlindToggleable">[[File:{{{7|}}}_{{#ifeq:{{{7|}}}|Ragnarok|Ocean_}}Topographic_Map.jpg|{{{size|314}}}px]]</div><div style="position:absolute;" class="svgCreatureMap colorBlindToggleable">[[File:Spawning_{{{species}}}_{{{7|}}}.svg|link=|{{{size|314}}}px]]</div></div>}}
+
Valguero{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Valguero_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:ValgueroMap}}|link=|{{{size|314}}}px]]</div></div>}}<!--
  +
-->{{#if:{{#var:GenesisPart1Map}}|
  +
{{!}}-{{!}}
  +
Genesis: Part 1{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Genesis_Part_1_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:GenesisPart1Map}}|link=|{{{size|314}}}px]]</div></div>}}<!--
  +
-->{{#if:{{#var:CrystalIslesMap}}|
  +
{{!}}-{{!}}
  +
Crystal Isles{{=}}<div class{{=}}"noviewer" style{{=}}"position: relative;width:{{{size|314}}}px;height:{{{size|314}}}px"><div style{{=}}"position:absolute" class{{=}}"spawningMap-map colorBlindToggleable">[[File:Crystal_Isles_Topographic_Map.jpg|{{{size|314}}}px]]</div><div style{{=}}"position:absolute;" class{{=}}"svgCreatureMap colorBlindToggleable">[[File:{{#var:CrystalIslesMap}}|link=|{{{size|314}}}px]]</div></div>}}
 
}}
 
}}
{{#if:{{{nolegend|}}}||{{RarityLegend|{{{size|314}}}}}}}<!--
+
{{#if:{{{nolegend|}}}||{{RarityLegend|{{{size|314}}}}}}}}}<!--
  +
-->{{#if:{{#var:IslandMap}}{{#var:CenterMap}}{{#var:ScorchedEarthMap}}{{#var:RagnarokMap}}{{#var:AberrationMap}}{{#var:ExtinctionMap}}{{#var:ValgueroMap}}{{#var:GenesisPart1Map}}{{#var:CrystalIslesMap}}||no MAP available[[Category:Pages with no available spawning map]]}}<!--
-->|no MAP specified}}<!--
 
-->|no SPECIES specified}}</includeonly><noinclude>==Usage==
+
-->|no SPECIES specified}}</includeonly><noinclude>{{doc}}
 
[[Category:Map templates]][[fr:Modèle:SpawningMap]]</noinclude>
Displays spawning-maps for species if the according spawning-map is available as a svg-file. The svg-filename has to have the format <code><nowiki>Spawning [SpeciesName] [MapName].svg</nowiki></code> and should be in the [[:Category:SVG Spawning Maps]].
 
===Parameters===
 
* <code>size</code> the width of the map in px. Default is 314 for the [[Template:infobox creature]].
 
* <code>species</code> the species-name which appears in the svg-filename.
 
* <code>nolegend</code> if set to a non-empty value the legend is not included. It can be added manually using <nowiki>{{RarityLegend|size}}</nowiki>
 
Unnamed parameter-values are the map-names, as they appear in the svg-filename. Possible values are currently
 
* <code>The Island</code>
 
* <code>Scorched Earth</code>
 
* <code>Aberration</code>
 
* <code>Extinction</code>
 
* <code>The Center</code>
 
* <code>Ragnarok</code>
 
* <code>Valguero</code>
 
 
===Example===
 
<nowiki>{{SpawningMap|size=300|species=Pulmonoscorpius|The Island|Aberration}}</nowiki>
 
{{SpawningMap|size=300|species=Pulmonoscorpius|The Island|Aberration}}
 
[[Category:Map templates]]</noinclude>
 

Версия 09:49, 15 сентября 2020

Template-info.png Документация

Usage

Displays spawning-maps for species if the according spawning-map is available as a svg-file. The svg-filename has to have the format Spawning [SpeciesName] [MapName].svg and should be in the Category:SVG Spawning Maps.

Parameters

  • size the width of the map in px. Default is 314 for the Template:infobox creature.
  • species the species-name which appears in the svg-filename.
  • nolegend if set to a non-empty value the legend is not included. It can be added manually using {{RarityLegend|size}}

Example

{{SpawningMap|size=300|species=Gasbags}}





Часто             Редко
  Неприручаемые   В пещерах