Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Button"

Jump to: navigation, search
Revision as of 17:18, 19 August 2016Latest revision as of 15:39, 10 April 2019
Undo revision 283157 by keep_on_trying:ru (talk)
 
9 intermediate revisions by 2 users not shown
Line 1:Line 1:
?<includeonly>+<includeonly><div title="{{{Description}}}" class="l-button" style="margin:0px"><span class="b-button {{#ifeq:{{{2|}}}|gray|b-button__gray}}">
?{{#ifeq:{{{1|}}}|new+{{#switch: {{{1|}}}|external=<span class="b-button_right" id="gw-button"> [{{{Link}}} {{{Title}}}]</span>|internal=<span class="b-button_right" id="gw-button">[[{{{Link}}}|{{{Title}}}]]</span>}}</span></div></includeonly><noinclude>{{doc}}</noinclude>
? +
?|<div class="gw-frame-1" style="margin: 0px">+
?<p style="margin: 0px"> <span class="personal-new-ico"> New!</span></p>+
?<h1 style="margin-bottom: 10px"> [[Ship:Update {{{Update|}}} | Update {{{Update|}}}]] </h1>+
?<h3 style = "margin: 0px 0px 10px 0px">Release Date: {{{Release Date|}}}</h3>+
?{{{Contents|}}}+
?{{Button|interior+
?| Description =+
?| Link = Ship:Update {{{Update|}}}+
?| Title = +
?}}</div>+
? +
?<div title="{{{Description}}}" class="l-button l-button__wide" style="margin: 0px"> +
?<span class="b-button {{#ifeq:{{{2|}}}|gray|b-button__gray}}"> +
?{{#switch: {{{1|}}} +
?| external=<span class="b-button_right" id="gw-button"> [{{{Link}}} {{{Title}}}]</span>+
?| internal=<span class="b-button_right" id="gw-button"> [[{{{Link}}} | {{{Title}}}]] </span>}} +
?</span>+
?</div>+
?</includeonly>+
? +
?<noinclude>{{doc}}</noinclude>+

Latest revision as of 15:39, 10 April 2019

Documentation‎

Usage

{{Button | Internal / External
| Description
| Link
| Title
}}


  • Use "internal" if given the link directs to any page within Wargaming.net Wiki; use "external" if the page is not.
  • "Description" can be used to specify the description of the link that will be displayed in a mouseover window.
  • "Link" directs to the page desired. If the link is internal (inside the wiki), simply write the full name of the page. If the link is external, use the https:// address.
  • "Title" is the text that will display within the button. This defaults to all capitals.

Examples of use

Example of an internal reference

{{Button | internal
| Description =
| Link = User:SeaRaptor00:na
| Title = see the template creator page
}}


Result:



Example of an external reference

{{Button | external
| Description = Don't say I didn't warn you.
| Link = https://www.youtube.com/watch?v=dQw4w9WgXcQ
| Title = DO NOT CLICK
}}


Result: