Difference between revisions of "Template:E+ icon"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "Category:Formatting Templates" to "Category:Formatting templates")
(Updating template to display the e+ icon by default, rather than Bob. Documentation updated.)
Line 1: Line 1:
[[File:{{{1|Bob}}} DnMe+ Minigame.png|link={{{link|{{{1|Bob}}}}}}]]&nbsp;[[{{#if:{{{link|}}}|{{{link|}}}|{{{1|Bob}}}}}|{{{name|{{{1|Bob}}}}}}]]{{#if:{{{nb|}}}||<br>}}<noinclude>
+
{{#if:{{{1|}}}|[[File:{{{1|}}} DnMe+ Minigame.png|link={{{link|{{{1|}}}}}}]]&nbsp;[[{{#if:{{{link|}}}|{{{link|}}}|{{{1|}}}}}|{{{name|{{{1|}}}}}}]]{{#if:{{{nb|}}}||<br>}}|[[File:E+ logo.png|x{{{size|12}}}px|link=]]}}<noinclude>
 
==Usage==
 
==Usage==
 +
<pre>{{E+ icon}}</pre>
 +
Template generates an {{E+ icon}} icon by default.
 
<pre>{{E+ icon|Bob}}</pre>
 
<pre>{{E+ icon|Bob}}</pre>
Used to generate an icon for villagers that appeared in {{DnMe+}} or prior, followed by their linked name. Displays Bob by default.
+
A villager's name can be passed in as the first parameter to generate their corresponding icon, followed by their linked name. Example: {{E+ icon|Bob}}
  
 
==Notes==
 
==Notes==
* The <code>size</code> parameter can be used to change the icon's size. Default is set to 14px. For reference, the width of the icons vary from 12-16px.
+
* The {{c|size}} parameter can be used to change the e+ icon's size. The default size is x12px. The size of the character icons cannot be changed, and vary in width from 12-16px.
* The <code>link</code> parameter can be used to change the destination link.
+
* The {{c|link}} parameter can be used to change the destination link.
* The <code>name</code> parameter can be used to change the display text for the link.
+
* The {{c|name}} parameter can be used to change the display text for the link.
  
 
==Example==
 
==Example==

Revision as of 22:20, November 3, 2021

x12px

Usage

{{E+ icon}}

Template generates an x12px icon by default.

{{E+ icon|Bob}}

A villager's name can be passed in as the first parameter to generate their corresponding icon, followed by their linked name. Example: Bob DnMe+ Minigame.png Bob

Notes

  • The size parameter can be used to change the e+ icon's size. The default size is x12px. The size of the character icons cannot be changed, and vary in width from 12-16px.
  • The link parameter can be used to change the destination link.
  • The name parameter can be used to change the display text for the link.

Example

{{E+ icon|Carmen|link=Carmen (mouse)|name=This is a link to Carmen's page}}

Produces: Carmen DnMe+ Minigame.png This is a link to Carmen's page