Template:Upgrade/doc: Difference between revisions

Template page
(create documentation)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:


<pre>
<pre>
{{Upgrade|Mecha Core|Mecha Core Upgrade}}
{{Upgrade|Mecha Core|icon=yes}}
</pre>
</pre>


<div>
<div>
{{Upgrade|Mecha Core|Mecha Core Upgrade}}
{{Upgrade|Mecha Core|icon=yes}}
</div>
</div>


<pre>
<pre>
{{Upgrade|Mecha Core|icon=yes}}
{{Upgrade|Mecha Core|||Mecha Core 1|icon=yes}}
</pre>
</pre>


<div>
<div>
{{Upgrade|Mecha Core|icon=yes}}
{{Upgrade|Mecha Core|||Mecha Core 1|icon=yes}}
</div>
</div>


<pre>
<pre>
{{Upgrade|Mecha Core||Mecha Core 1|icon=yes}}
{{Upgrade|Mecha Core|5|icon=yes}}
</pre>
</pre>


<div>
<div>
{{Upgrade|Mecha Core||Mecha Core 1|icon=yes}}
{{Upgrade|Mecha Core|5|icon=yes}}
</div>
</div>


Line 37: Line 37:
* ''1'' - Upgrade name (the page to link to)
* ''1'' - Upgrade name (the page to link to)
* ''2'' - Shown text (if differs)
* ''2'' - Shown text (if differs)
* ''3'' - Level of the upgrade (if needed; added to the shown text; also affects icon choice)
* ''icon'' - specify a value to show small (15px) icon
* ''icon'' - specify a value to show small (15px) icon
* ''3'' - specify name for icon (as passed to {[[:Template:TechIcon|TechIcon]] template
* ''4'' - specify name for icon (as passed to the [[:Template:TechIcon|TechIcon]] template
 
== See also ==
* [[:Template:Tech|Tech]] template


<noinclude>
<noinclude>
[[Category:Template documentation]]
[[Category:Template documentation]]
</noinclude>
</noinclude>

Latest revision as of 13:17, 23 December 2023

This template sets up a link to an article describing a particular upgrade, with an option to show the upgrade icon as well.

Usage

{{Upgrade|Mecha Core}}
{{Upgrade|Mecha Core|icon=yes}}
Tech Mecha Core.png
Mecha Core
{{Upgrade|Mecha Core|||Mecha Core 1|icon=yes}}
{{Upgrade|Mecha Core|5|icon=yes}}

Parameters

  • 1 - Upgrade name (the page to link to)
  • 2 - Shown text (if differs)
  • 3 - Level of the upgrade (if needed; added to the shown text; also affects icon choice)
  • icon - specify a value to show small (15px) icon
  • 4 - specify name for icon (as passed to the TechIcon template

See also

🍪 We use cookies to keep session information to provide you a better experience.