Template:Infobox npc: Difference between revisions

From Ultimate Dragon Ball Online Wiki

Ollix (talk | contribs)
No edit summary
Ollix (talk | contribs)
No edit summary
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="border: 1px solid #ccc; width: 300px; background-color: #f9f9f9; font-family: Arial, sans-serif; margin: 0 auto; border-radius: 10px;"
{| class="infobox" style="border: 1px solid #ccc; width: 280px; background-color: #f9f9f9; font-family: Arial, sans-serif; margin: 0 auto; border-radius: 10px;"
! colspan="2" style="background-color: #2161c0; color: white; text-align: center; font-size: 1.25em; font-weight: bold; padding: 5px 0; border-top-left-radius: 10px; border-top-right-radius: 10px;" | <span style="font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; text-align: center;">{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>{{#if: {{{race|Unknown Race}}} | <br /><span style="font-size: 0.9em; font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; color: {{#switch: {{{rarity}}}
! colspan="2" style="background-color: #2161c0; color: white; text-align: center; font-size: 1.25em; font-weight: bold; padding: 5px 0; border-top-left-radius: 10px; border-top-right-radius: 10px;" | <span style="font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; text-align: center;">{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>
  | Human    = #ffffff  <!-- White -->
  | Namek    = #ffffff  <!-- White -->
  | Majin    = #ffffff  <!-- White -->
  | Beast    = #ffffff  <!-- White -->
  | Humanoid = #ffffff  <!-- White -->
  | Soldier  = #ffffff  <!-- White -->
  | Dino    = #ffffff  <!-- White -->
  | Alien    = #ffffff  <!-- White -->
  | Android  = #ffffff  <!-- White -->
  | Robot    = #ffffff  <!-- White -->
  | Dragon  = #ffffff  <!-- White -->
  | Demon    = #ffffff  <!-- White -->
  | Ghost    = #ffffff  <!-- White -->
  | Saibaman = #ffffff  <!-- White -->
  | Bug      = #ffffff  <!-- White -->
  | Saiyan  = #ffffff  <!-- White -->
  | default  = #ffffff }}">{{{race|<span style="font-size: 0.9em; font-weight: bold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; color: #bbbbbb;>Unknown Race</span>}}}</span>}}
|-
|-
| colspan="2" style="text-align: center; padding: 10px;" | [[File:{{#if: {{{image|}}} | {{{image}}} | npc_no_image.png }}|200px]]
! colspan="2" style="background-color: #dcdcdc; color: white; text-align: center; font-size: 1.25em; font-weight: bold; padding: 5px; border-top-left-radius: 0px; border-top-right-radius: 0px;" | {{#if: {{{race|}}} | [[File:Race_icon_{{{race}}}.png|24px]] <span style="font-size: 0.9em;">{{RaceText|{{{race}}}}}</span>
| <span style="font-size: 0.9em;">{{RaceText|Unknown Race}}</span>
}}
|-
| colspan="2" style="text-align: center; padding: 10px;" | [[File:{{#if: {{{image|}}} | {{{image}}} | npc_no_image.png }}|250px]]
|-
|-
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | General Information
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | General Information
|-
{{#if: {{{type|}}} |
! <span style="display: inline-block; text-align: left; padding-left: 10px; width: 100%;">Type</span>
{{!}}<span style="display: inline-block; width: 100%;">{{{type}}}</span>
}}
|-
|-
{{#if: {{{level|}}} |
{{#if: {{{level|}}} |
Line 32: Line 24:
{{!}}<span style="display: inline-block; width: 100%;">{{{power}}}</span>
{{!}}<span style="display: inline-block; width: 100%;">{{{power}}}</span>
}}
}}
|-
! colspan="2" style="background-color: #dcdcdc; color: black; text-align: center; font-size: 1.1em; font-weight: bold; padding: 5px;" | Location
|-
! colspan="2" | <span class="material-button">[{{{location}}} View Location in Map]</span> <!-- Here you insert the map link URL -->
|-
|-
| colspan="2" style="padding-bottom: 5px;" | <!-- This row adds space at the bottom -->
| colspan="2" style="padding-bottom: 5px;" | <!-- This row adds space at the bottom -->
Line 47: Line 43:
  | image      = Infobox_npc_example.png
  | image      = Infobox_npc_example.png
  | race        = Saiyan
  | race        = Saiyan
  | level      = 20
| type        = Quest
  | power      = 367
  | level      = 1
  | power      = 9000+
| location    = https://ultimatedbo.com/tools/world-map/?tool=Map&map=world&filter=100&coord=1009&markers=00114302773
}}
}}
</pre>
</pre>
Line 55: Line 53:
  | image      = Infobox_npc_example.png
  | image      = Infobox_npc_example.png
  | race        = Saiyan
  | race        = Saiyan
  | level      = 20
| type        = Quest
  | power      = 367
  | level      = 1
  | power      = 9000+
| location    = https://ultimatedbo.com/tools/world-map/?tool=Map&map=world&filter=100&coord=1009&markers=00114302773
}}
}}
|}
|}
== Available Races ==
<table style="width: 100%; font-size: 1.4em; text-align: center; margin: auto; border: none; border-collapse: collapse;">
  <tr>
    <td>[[File:Race_icon_Human.png|24px]] {{RaceText|Human}} / {{RaceText|Saiyan}}</td>
    <td>[[File:Race_icon_Namek.png|24px]] {{RaceText|Namek}}</td>
    <td>[[File:Race_icon_Majin.png|24px]] {{RaceText|Majin}}</td>
    <td>[[File:Race_icon_Animal.png|24px]] {{RaceText|Animal}} / {{RaceText|Beast}}</td>
  </tr>
  <tr>
    <td>[[File:Race_icon_Humanoid.png|24px]] {{RaceText|Humanoid}} / {{RaceText|Soldier}}</td>
    <td>[[File:Race_icon_Dino.png|24px]] {{RaceText|Dino}}</td>
    <td>[[File:Race_icon_Alien.png|24px]] {{RaceText|Alien}}</td>
    <td>[[File:Race_icon_Android.png|24px]] {{RaceText|Android}}</td>
  </tr>
  <tr>
    <td>[[File:Race_icon_Robot.png|24px]] {{RaceText|Robot}}</td>
    <td>[[File:Race_icon_Dragon.png|24px]] {{RaceText|Dragon}}</td>
    <td>[[File:Race_icon_Demon.png|24px]] {{RaceText|Demon}}</td>
    <td>[[File:Race_icon_Ghost.png|24px]] {{RaceText|Ghost}}</td>
  </tr>
  <tr>
    <td>[[File:Race_icon_Plant.png|24px]] {{RaceText|Plant}} / {{RaceText|Saibaman}}</td>
    <td>[[File:Race_icon_Insect.png|24px]] {{RaceText|Insect}} / {{RaceText|Bug}}</td>
    <td>[[File:Race_icon_Item Box.png|24px]] {{RaceText|Item Box}}</td>
    <td>{{RaceText|Unknown Race}}</td>
  </tr>
</table>
</noinclude>
</noinclude>

Latest revision as of 22:00, 20 March 2025

Infobox npc
Unknown Race
General Information
Location
[{{{location}}} View Location in Map]


Infobox Usage Guide

Example Code Example Result
{{Infobox_npc
 | title       = Goku
 | image       = Infobox_npc_example.png
 | race        = Saiyan
 | type        = Quest
 | level       = 1
 | power       = 9000+
 | location    = https://ultimatedbo.com/tools/world-map/?tool=Map&map=world&filter=100&coord=1009&markers=00114302773
}}
Goku
Saiyan
General Information
Type Quest
Level 1
Power 9000+
Location
View Location in Map


Available Races

Human / Saiyan Namek Majin Animal / Beast
Humanoid / Soldier Dino Alien Android
Robot Dragon Demon Ghost
Plant / Saibaman Insect / Bug Item Box Unknown Race