User:Horblegorble/Sandbox/Template/Infobox npc: Difference between revisions

From Veloren Wiki
Content added Content deleted
No edit summary
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{IfTrue| {{{navbox|1}}}
--><table class="infobox" style="width:fit-content; max-width:300px;">
| {{Navbox}}
|
}}
<table class="infobox {{IfTrue| {{{float|1}}} | floatright }}" style="width:fit-content; max-width:300px;">
<tr>
<tr>
<td class="infobox-image" colspan="3"><!--
<td class="infobox-image" colspan="3"><!--
-->{{IfTrue| {{{linking|0}}}
-->[[Image:Veloren_{{#if: {{{image|}}} | {{{image}}} | {{{name}}}.png }}|class=infobox-image|290px|center|link=]]
| [[Image:Veloren_{{#if: {{{image|}}} | {{{image}}} | {{{name}}}.png }}|class=infobox-image|290px|center|link={{#if: {{{link|}}} | {{{link}}} | [[{{{name}}}]] }} ]]
| [[Image:Veloren_{{#if: {{{image|}}} | {{{image}}} | {{{name}}}.png }}|class=infobox-image|290px|center]]
}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th colspan="3" class="infobox-title" style="font-size: 150%;">{{{name}}}</th>
<th colspan="3" class="infobox-title" style="font-size: 150%;"><!--
-->{{IfTrue| {{{linking|0}}}
</tr>
| {{#if: {{{link|}}} | {{{link}}} | [[{{{name}}}]] }}
<tr>
| {{{name}}}
<th colspan="3" class="infobox-title" style="font-size: 90%;">Details</th>
}}
</th>
</tr>
</tr>
{{#if: {{{type|}}}
{{#if: {{{type|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">[[NPCs|Type]]</td>
<td class="infobox-texttitle" style="padding-right:10px;">[[NPCs|Type]]</td>
<td colspan="2" class="infobox-text">{{{type}}}</td>
<td colspan="2" class="infobox-text">{{{type}}}</td>
</tr>
</tr>
Line 21: Line 30:
{{#if: {{{location|}}}
{{#if: {{{location|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">Location</td>
<td class="infobox-texttitle" style="padding-right:10px;">Location</td>
<td colspan="2" class="infobox-text">{{{location}}}</td>
<td colspan="2" class="infobox-text">{{{location}}}</td>
</tr>
</tr>
Line 28: Line 37:
{{#if: {{{hp|}}}
{{#if: {{{hp|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">HP</td>
<td class="infobox-texttitle" style="padding-right:10px;">HP</td>
<td colspan="2" class="infobox-text">{{formatnum: {{{hp}}} }}</td>
<td colspan="2" class="infobox-text">{{formatnum: {{{hp}}} }}</td>
</tr>
</tr>
Line 35: Line 44:
{{#if: {{{hostile|}}}
{{#if: {{{hostile|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">Hostile</td>
<td class="infobox-texttitle" style="padding-right:10px;">Hostile</td>
<td colspan="2" class="infobox-text"><!--
<td colspan="2" class="infobox-text"><!--
-->{{IfTrue| {{{hostile}}} | Yes | No }}
-->{{IfTrue| {{{hostile}}} | Yes | No }}
Line 42: Line 51:
|
|
}}
}}
{{#ifexpr: {{IsNotEmpty| {{{hostile}}} }} and {{IsNotEmpty| {{{tamable}}} }}
{{#ifexpr: {{IsNotEmpty| {{{hostile|}}} }} and {{IsNotEmpty| {{{tamable|}}} }}
| {{#ifexpr: not {{Bool| {{{hostile}}} }}
| {{#ifeq: {{Bool| {{{hostile}}} }} | 0
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">[[Taming|Tamable]]</td>
<td class="infobox-texttitle" style="padding-right:10px;">[[Taming|Tamable]]</td>
<td colspan="2" class="infobox-text">{{IfTrue| {{{tamable}}} | Yes | No }}</td>
<td colspan="2" class="infobox-text">{{IfTrue| {{{tamable}}} | Yes | No }}</td>
</tr>
</tr>
{{#ifexpr: {{Bool| {{{tamable}}} }}
{{#ifeq: {{Bool| {{{tamable}}} }} | 1
| {{#if: {{{mountspeed|}}}
| {{#if: {{{mountspeed|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">[[Taming#Mount|Mountable]]</td>
<td class="infobox-texttitle" style="padding-right:10px;">[[Taming#Mount|Mountable]]</td>
<td class="infobox-text">Yes</td>
<td class="infobox-text">Yes</td>
<td>
<td>
<table>
<table>
<td class="infobox-texttitle">Speed</td>
<td class="infobox-texttitle" style="padding-right:10px;">Speed</td>
<td class="infobox-text">{{{mountspeed}}}</td>
<td class="infobox-text">{{{mountspeed}}}</td>
</table>
</table>
Line 61: Line 70:
</tr>
</tr>
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">[[Taming#Mount|Mountable]]</td>
<td class="infobox-texttitle" style="padding-right:10px;">[[Taming#Mount|Mountable]]</td>
<td colspan="2" class="infobox-text">No</td>
<td colspan="2" class="infobox-text">No</td>
</tr>
</tr>
Line 71: Line 80:
|
|
}}
}}
{{#ifexpr: {{IsNotEmpty| {{{path|}}} }} or {{IsNotEmpty| {{{voxel|}}} }}
<tr>
| <tr>
<th colspan="3" class="infobox-title" style="font-size: 90%;"><!--
<th colspan="3" class="infobox-title" style="font-size: 100%;"><!--
-->Technical Information
</th>
-->Technical Info
</tr>
</th>
</tr>
|
}}
{{#if: {{{path|}}}
{{#if: {{{path|}}}
| <tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">Config</td>
<td class="infobox-texttitle" style="padding-right:10px;">Config</td>
<td colspan="2" class="infobox-text" style="word-wrap: break-word; word-break: break-all;"><!--
<td colspan="2" class="infobox-text" style="word-wrap: break-word; word-break: break-all;"><!--
-->[{{#invoke:Gitlab|config|{{{path}}}}} {{{path}}}]
-->[{{#invoke:Gitlab|config|{{{path}}}}} {{{path}}}]
</td>
</td>
</tr>
</tr>
|
|
}}
}}
{{#if: {{{voxel|}}}
<tr colspan="3">
| <tr colspan="3">
<td class="infobox-texttitle">Voxel</td>
<td class="infobox-texttitle" style="padding-right:10px;">Voxel</td>
<td colspan="2" class="infobox-text" style="word-wrap:break-word; word-break:break-all;">[https://gitlab.com/veloren/veloren/-/tree/master/assets/voxygen/voxel/npc/troll_cave/male assets/voxygen/voxel/npc/troll_cave/male]
<td colspan="2" class="infobox-text" style="word-wrap: break-word; word-break: break-all;"><!--
</tr>
-->[{{#invoke:Gitlab|voxel|{{{voxel}}}}} voxygen/voxel/{{{voxel}}}]
</table><!--
</td>
</tr>
|
}}
</table><!--
--></includeonly><!--
--></includeonly><!--


--><noinclude>
--><noinclude>
{{User:Horblegorble/Sandbox/Template/Infobox npc
|name=Cave Troll
|linking=0
|link=[[Mountain Troll]]
|type=Wildlife
|location=World, Cave, Dungeon, Other, Another, Yet Another, Oh boy one more
|hp=1000
|hostile=0
|tamable=1
|mountspeed=10
|path=common.entity.wild.aggressive.cave_troll
}}


Example
{{User:Horblegorble/Sandbox/Template/Infobox npc|type=Wildlife|name=Cave Troll|location=World, Cave, Dungeon, Other|hp=1000|path=common.entity.wild.aggressive.troll_cave|hostile=1|tamable=1|mountspeed=10}}


</noinclude>
</noinclude>

Latest revision as of 08:15, 6 January 2024

Cave Troll
Type Wildlife
Location World, Cave, Dungeon, Other, Another, Yet Another, Oh boy one more
HP 1,000
Hostile No
Tamable Yes
Mountable Yes
Speed 10
Technical Info
Config common.entity.wild.aggressive.cave_troll

Example


Cookies help us deliver our services. By using our services, you agree to our use of cookies.