User:Headquarter8302/sandbox/Template:Button/doc: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Created page with "This template is used to implement button to a page. == Example == '''Input:''' <pre>Main Page|<span class="mw-ui-button mw-ui-progressive mw-ui-block" style="margin:auto;"...")
 
m (testin)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
== Example ==
== Example ==
'''Input:'''
'''Input:'''
<pre>[[Main Page|<span class="mw-ui-button mw-ui-progressive mw-ui-block" style="margin:auto;"> Go to Main Page</span>]]</pre>
<pre>{{Button|Main Page|Go to Main Page}}</pre>
<br>
<br>
'''Output:'''
'''Output:'''
[[Main Page|<span class="mw-ui-button mw-ui-progressive mw-ui-block" style="margin:auto;"> Go to Main Page</span>]]
{{User:Headquarter8302/sandbox/Template:Button|Main Page|Go to Main Page}}
----
----
'''Input:'''
'''Input:'''
<pre>[[Portal 2|<span class="mw-ui-button mw-ui-progressive mw-ui-block" style="margin:auto;"> Click here to be redirected to Portal 2</span>]]</pre>
<pre>{{Button|Portal 2|Click here to be redirected to Portal 2}}</pre>
<br>
<br>
'''Output:'''
'''Output:'''
[[Portal 2|<span class="mw-ui-button mw-ui-progressive mw-ui-block" style="margin:auto;"> Click here to be redirected to Portal 2</span>]]
{{User:Headquarter8302/sandbox/Template:Button|Portal 2|Click here to be redirected to Portal 2}}

Latest revision as of 02:01, 2 September 2020

This template is used to implement button to a page.

Example

Input:

{{Button|Main Page|Go to Main Page}}


Output: Go to Main Page


Input:

{{Button|Portal 2|Click here to be redirected to Portal 2}}


Output: Click here to be redirected to Portal 2