Template talk:Keyboard: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (the example loads the template from "front" page... also the problem is still there, the template "devoures" several lines under it in the same amount of his height... to avoid this is needed to add several "<br />")
mNo edit summary
Line 1: Line 1:
<table width="100%" align="left"><tr>
== Problems ==
  <td align="left" style="width: 70px;">[[image:64px-Keyboard.png|Type This|64x64px|left]]</td>
 
  <td align="left" style="width: 90%;"><pre<noinclude></noinclude>>{{{content|}}}</pre<noinclude></noinclude>></div>
=== Double margin at top and bottom ===
</td></tr></table><noinclude>
This template is doing a <nowiki><pre></nowiki> automatically (with his own margin-top:12px; margin-bottom:12px;)<br>
<br /><br /><br /><br />
If we call the template with another <nowiki><pre> or <syntaxhighlight></nowiki> (with his own margin-top:12px; margin-bottom:12px;)... it resuts in a double vertical margin of around 24px<br>
==Usage==
There are a bunch of wiki pages using this template affected by this double-margin problem
<nowiki>{{Keyboard|content=some content}}</nowiki>

Revision as of 14:09, 9 September 2021

Problems

Double margin at top and bottom

This template is doing a <pre> automatically (with his own margin-top:12px; margin-bottom:12px;)
If we call the template with another <pre> or <syntaxhighlight> (with his own margin-top:12px; margin-bottom:12px;)... it resuts in a double vertical margin of around 24px
There are a bunch of wiki pages using this template affected by this double-margin problem