Changes

Jump to navigation Jump to search
471 bytes removed ,  13:47, 9 August 2022
m
Fix nbsp still allow breaking by removing a preceding normal space
Line 1: Line 1: −
<includeonly><p>[[File:{{{1|}}}_Icon.png|link={{{1|}}}]] [[{{{1|}}}]]{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}</p></includeonly>
+
<includeonly>{{#ifeq:{{{placement|}}}|inline||<p>}}[[File:{{{1|}}}_Icon.png|{{#if:{{{size|}}}|{{{size|}}}|32}}px|link=]] [[{{#if: {{{link|}}}|{{{link}}}|{{#switch: {{{1}}}|{{{1}}}}}}}]]{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}{{#ifeq:{{{placement|}}}|inline||</p>}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
<noinclude>This template places the picture of an npc next to their name, resizes the image to 32px wide, makes the npc name a link, and lastly places the third parameter in parenthesis to signify relationship or any other secondary detail.
  −
 
  −
The corresponding template for items and objects is named [[:Template:name]].
  −
== Use ==
  −
<pre>
  −
{{name|Pierre|Father}}
  −
</pre>
  −
When used the parameters are not identified by name, but by order.  Example use of this template;
  −
<pre>{{npc|Jodi|Mother}}</pre>
  −
Result: {{npc|Jodi|Mother}}
  −
<pre>{{npc|Pierre|30G}}</pre>
  −
Result: {{npc|Pierre|30G}}
  −
<pre>{{npc|Sebastian}}</pre>
  −
Result: {{npc|Sebastian}}
  −
[[Category:Template]]</noinclude>
 
413

edits

Navigation menu