Difference between revisions of "Template:Login button"
From Venlo Samenwerkingswijzer
(Created page with "a") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude> | |
+ | Login and logout button | ||
+ | |||
+ | |||
+ | ==Demo== | ||
+ | {{Login button}} | ||
+ | |||
+ | {{#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=Inloggen | ||
+ | |buttontext=Inloggen | ||
+ | |style=width:100px; | ||
+ | }} | ||
+ | |||
+ | |||
+ | </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=Uitloggen | ||
+ | |buttontext=Uitloggen | ||
+ | |style=width:100px; | ||
+ | }} | ||
+ | | {{#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=Inloggen | ||
+ | |buttontext=Inloggen | ||
+ | |style=width:100px; | ||
+ | }} | ||
+ | }} | ||
+ | </includeonly> |