Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

NOTICE: Seems like daily VIP shadow missions may be wrong occasionally!!

Difference between revisions of "Template:RenderSemanticMonster"

From Mabinogi World Wiki
Jump to: navigation, search
(Added query property "Monster missions list" to difficulty)
(Tweaked raid layout)
 
Line 23: Line 23:
 
}} {{#hashvalue:Data|Name}}</h3>
 
}} {{#hashvalue:Data|Name}}</h3>
 
{| class="mabitable" style="max-width: 1000px; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:12px;" <!-- Start monster table -->
 
{| class="mabitable" style="max-width: 1000px; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:12px;" <!-- Start monster table -->
| {{#ifeq:{{#hashvalue:Data|Type}}|Normal|rowspan="3"|rowspan="4"}} class="image" | [[Image:{{#hashvalue:Data|Image|{{#ifexist:Media:{{#hashvalue:Data|Name}}.{{#hashvalue:Data|Ext|jpg}}|{{#hashvalue:Data|Name}}.{{#hashvalue:Data|Ext|jpg}}{{!}}Picture of {{#hashvalue:Data|Name}}|No File.png{{!}}link=http://wiki.mabinogiworld.com/index.php?title=Special:Upload&wpDestFile={{urlencode|{{#hashvalue:Data|Name}}}}.{{#hashvalue:Data|Ext|jpg}}{{!}}Upload a picture for {{#hashvalue:Data|Name}}}}}}{{#if:{{#hashvalue:Data|Image}}|.{{#hashvalue:Data|Ext|jpg}}|}}|160px]]<br><span class="editsection plainlinks">[[Special:FormEdit/Monster/{{urlencode|{{#hashvalue:Data|Name}}}}|Edit]] {{#ifeq:{{#hashvalue:Data|Name}}|{{PAGENAME}}||[[{{#hashvalue:Data|Name}}|Link]]}}</span>
+
| {{#switch:{{#hashvalue:Data|Type}}|Raid|Normal=rowspan="3"|#default=rowspan="4"}} class="image" | [[Image:{{#hashvalue:Data|Image|{{#ifexist:Media:{{#hashvalue:Data|Name}}.{{#hashvalue:Data|Ext|jpg}}|{{#hashvalue:Data|Name}}.{{#hashvalue:Data|Ext|jpg}}{{!}}Picture of {{#hashvalue:Data|Name}}|No File.png{{!}}link=http://wiki.mabinogiworld.com/index.php?title=Special:Upload&wpDestFile={{urlencode|{{#hashvalue:Data|Name}}}}.{{#hashvalue:Data|Ext|jpg}}{{!}}Upload a picture for {{#hashvalue:Data|Name}}}}}}{{#if:{{#hashvalue:Data|Image}}|.{{#hashvalue:Data|Ext|jpg}}|}}|160px]]<br><span class="editsection plainlinks">[[Special:FormEdit/Monster/{{urlencode|{{#hashvalue:Data|Name}}}}|Edit]] {{#ifeq:{{#hashvalue:Data|Name}}|{{PAGENAME}}||[[{{#hashvalue:Data|Name}}|Link]]}}</span>
{{#ifeq:{{#hashvalue:Data|Type}}|Normal|<!-- Create new row for missions if not a normal monster -->
+
{{#switch:{{#hashvalue:Data|Type}}|Normal=|Raid=|#default=! colspan="2" {{!}}{{#switch:{{#hashvalue:Data|Type}}<!-- Create new row for missions if not a normal monster -->
|! colspan="2" {{!}}{{#switch:{{#hashvalue:Data|Type}}
 
 
   |Shadow=[[Shadow Mission]]
 
   |Shadow=[[Shadow Mission]]
 
   |Lord=[[Lord Mission]]
 
   |Lord=[[Lord Mission]]

Latest revision as of 19:57, 7 August 2019

[edit]Template Documentation

Please read before editing

Tips

  • Avoid cleaning up the code to avoid unintended bugs. (unless you're very familiar with mediawiki)
    • Especially newlines and indenting.
  • There is a lot of conditional statements mixed into the tables.
    • It's recommended to copy and edit in a third party code editor to help with highlighting.
  • #css is used to resize the images.
  • Rows and columns are changed depending on {{#hashvalue:Data|Type}}.
    • Normal and Raid omit the top "location" field.
  • Monster categories are handled at the bottom.
  • Please take into account {{#hashvalue:Data|Type}} (the different monster types) when making any edits.