Difference between revisions of "Template:Button"

From Nookipedia, the Animal Crossing wiki
(Creating button template)
 
m (Fix)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="plainlinks">[{{{link|https://nookipedia.com/wiki/Main_Page}}} <div style="padding: 10px 20px; background-color: {{{background-color|#67AD42}}}; color: {{{font-color|white}}}; width: {{{width|max-content}}};">{{{text|Button}}}</div>]</span><noinclude>{{clear}}
+
<span class="plainlinks" style="display: inline-block;">[{{{link|https://nookipedia.com/wiki/Main_Page}}} <div class="np-button" style="padding: 10px 20px; border-radius: 10px; background-color: {{{background-color|#67AD42}}}; color: {{{font-color|white}}}; width: {{{width|max-content}}};">{{{text|Button}}}{{#if:{{{arrow|}}}|&nbsp;&nbsp;➔|}}</div>]</span><noinclude>{{clear}}
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 03:53, August 21, 2021

Button

Template documentation (view)


Parameters
  • link
  • text
  • background-color (default is #67AD42)
  • font-color (default is white)
  • width (default is max-content)
  • arrow (set to any value to add an arrow ➔ after the text)