Difference between revisions of "Template:Login button"

From Venlo Samenwerkingswijzer
(Created page with "a")
 
Line 1: Line 1:
a
+
<noinclude>
 +
Login and logout button
 +
 
 +
 
 +
==Demo==
 +
{{Login button}}
 +
 
 +
{{#widget: Button
 +
|target=_self
 +
|class=btn ws-btn-lightgreen
 +
|href=https://{{SERVERNAME}}/index.php?title=Special:UserLogin&returnto={{urlencode:{{FULLPAGENAME}}|WIKI}}&returntoquery=action%3{{#urlget:action|}}
 +
|title=Log in
 +
|buttontext=Log in
 +
|style=width:80px; color:#000;
 +
}}
 +
 
 +
 
 +
</noinclude><includeonly>
 +
{{#if:{{CURRENTLOGGEDUSER}}
 +
|{{#widget: Button
 +
|target=_self
 +
|class=btn btn-primary
 +
|href=https://{{SERVERNAME}}/index.php?title=Special:UserLogout&returnto={{urlencode:{{FULLPAGENAME}}|WIKI}}&returntoquery=action%3{{#urlget:action|}}
 +
|title=Log out
 +
|buttontext=Log out
 +
|style=width:80px; color:#000;
 +
}}
 +
| {{#widget: Button
 +
|target=_self
 +
|class=btn btn-primary
 +
|href=https://{{SERVERNAME}}/index.php?title=Special:UserLogin&returnto={{urlencode:{{FULLPAGENAME}}|WIKI}}&returntoquery=action%3{{#urlget:action|}}
 +
|title=Log in
 +
|buttontext=Log in
 +
|style=width:80px; color:#000;
 +
}}
 +
}}
 +
</includeonly>

Revision as of 15:53, 26 October 2016

Login and logout button


Demo

Log in


Log in