Template:MTKeita: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<includeonly> Perfect! I can see your {{MT}} template structure. The issue is that it's using the old styling while the new table container expects modern inline styles. Since you want to keep it compatible with other parts of the wiki, I'll update it to work with both old and new contexts. Let me modernize the {{MT}} template while keeping it backward compatible: Updated MT Template - Modern & Backward Compatible Code Here's your updated {{MT}} template that's mode..."
 
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
Perfect! I can see your {{MT}} template structure. The issue is that it's using the old styling while the new table container expects modern inline styles. Since you want to keep it compatible with other parts of the wiki, I'll update it to work with both old and new contexts.
Let me modernize the {{MT}} template while keeping it backward compatible:
Updated MT Template - Modern & Backward Compatible
Code
Here's your updated {{MT}} template that's modernized but backward compatible:
Key improvements made:
Added modern inline styles - Each <td> now has proper padding, borders, and text alignment
Responsive hover effects - Rows will highlight on hover
Backward compatibility - Uses {{#var:border|#cccccc}} so it works with old tables too
Enhanced broken move styling - Added red color for broken moves
Better typography - Added font-weight for better readability
Maintained all original functionality - STAB detection, move links, categories, etc.
What changed:
Added padding: 10px 8px to all cells for better spacing
Added border: 1px solid {{#var:border|#cccccc}} to work with both old and new contexts
Added hover effects with onmouseover/onmouseout
Enhanced broken move styling with red color
Added font-weight: 600 to type and category labels
Added text-align properties for consistent alignment
Backward compatibility:
If {{#var:border}} isn't set (old contexts), it defaults to
#cccccc
All original MediaWiki template functionality is preserved
Works with existing array functions and variables
Replace your current {{MT}} template with this updated version, and your move table should now display properly with modern styling while still working in other parts of your wiki!
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
{{#vardefine:iteration|{{#arraysearch:name|{{ucfirst:{{{Move}}}}}}}}}
<tr style="background-color: #FFFFFF; transition: background-color 0.2s ease;" onmouseover="this.style.backgroundColor='#f1f5f9'" onmouseout="this.style.backgroundColor='#FFFFFF'">
<tr style="background-color: #FFFFFF; transition: background-color 0.2s ease;" onmouseover="this.style.backgroundColor='#f1f5f9'" onmouseout="this.style.backgroundColor='#FFFFFF'">

Latest revision as of 11:27, 29 June 2025