Template:WildStar/patch: Difference between revisions

no edit summary
(Created page with "Places a complete link to a game Patch on a wiki page. ;Example: <pre> {{patch|6600}} </pre> {{patch|6600}} Category:Templates ---- ;Template <onlyinclude><includeonly><...")
 
No edit summary
 
Line 1: Line 1:
Places a complete link to a game Patch on a wiki page.
Place a patch (ultradrop) line on the page.


;Usage
Format:
:1= [number] - patch build number, like 6600 of 1.0.6.6600.
:full= [0,1] (Optional) - show the full version in link text. Default is 0.
:cap= [0,1] (Optional) - show the link text capitalized. Default is 0.


;Example:
<nowiki>
<pre>
== Patch changes ==</nowiki><br>
{{patch|6600}}
<nowiki>*{{Patch|Ultradrop name from this site|Comments about official changes, taken from patch notes.}}</nowiki>
</pre>
{{patch|6600}}
<pre>
{{patch|6600|full=1|cap=1}}
</pre>
{{patch|6600|full=1|cap=1}}


[[Category:Templates]][[Category:Link helper templates]]
<onlyinclude><includeonly>[[File:IconPatch.png|20px|link=]]&nbsp;'''[[{{{1|}}}]]'''<nowiki>:</nowiki>{{{2|}}}</includeonly></onlyinclude>
----
;Template
<onlyinclude><includeonly><!--
 
-->{{#vardefine:tMIN|{{#sub:{{{1|}}}|-4|1}}}}<!--
 
-->{{#vardefine:tVER|{{#ifexpr:{{{1|0}}} > 6692|1.0.8|{{#ifexpr:{{{1|0}}} > 6653|1.0.7|1.0.{{#var:tMIN}}}}}}}}<!--
 
-->{{#vardefine:tVER|{{#var:tVER}}.{{{1|}}}}}<!--
-->{{#vardefine:tTEXT|{{#ifeq:{{{full|}}}|1|{{#var:tVER}}|{{{1|}}}}}}}<!--
 
-->{{tooltip|nocolor=1|patch {{#var:tVER}}|{{#ifeq:{{{cap|}}}|1|P|p}}atch {{#var:tTEXT}}}}<!--
 
--></includeonly></onlyinclude>
Anonymous user