Difference between revisions of "Template:E+ icon"

From Nookipedia, the Animal Crossing wiki
(Creating template to display E+ icons, can be used to visually list villagers from that game and prior)
 
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:{{{1|Bob}}} DnMe+ Minigame.png|{{{size|14px}}}]]&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:DnMe+ Logo Cutout.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.
+
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==
 
<pre>{{E+ icon|Carmen|link=Carmen (mouse)|name=This is a link to Carmen's page}}</pre>
 
<pre>{{E+ icon|Carmen|link=Carmen (mouse)|name=This is a link to Carmen's page}}</pre>
  
Produces: {{E+ icon|Carmen|link=Carmen (mouse)|name=This is a link to Carmen's page}}</noinclude>
+
Produces: {{E+ icon|Carmen|link=Carmen (mouse)|name=This is a link to Carmen's page}}
 +
[[Category:Formatting templates]]
 +
</noinclude>

Latest revision as of 00:45, November 16, 2022

DnMe+ Logo Cutout.png

Usage

{{E+ icon}}

Template generates an DnMe+ Logo Cutout.png 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