Template:Boxcode: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
   {{clear}}
   {{clear}}
   <div style="border:1px dashed #8080b0; height:{{{height|auto}}}; overflow:auto;">
   <div style="border:1px dashed #8080b0; height:{{{height|auto}}}; overflow:auto;">
   <div style="margin-top:-14px; margin-bottom:-14px;">{{{content|content}}}</div>
   <div style="margin-top:-14px; margin-bottom:-14px;">{{{code|code}}}</div>
   </div>
   </div>
  </div>
  </div>
Line 13: Line 13:
<br><br>{{clear}}
<br><br>{{clear}}
== Usage ==
== Usage ==
<nowiki>{{Boxcode|content=Code Sample}}</nowiki>
<nowiki>{{Boxcode|code=Code Sample}}</nowiki>
<br>...or...<br>
<br>...or...<br>
<nowiki>{{Boxcode|title=Custom Title|content=Code Sample}}</nowiki>
<nowiki>{{Boxcode|title=Custom Title|code=Code Sample}}</nowiki>
<br>...or...<br>
<br>...or...<br>
<nowiki>{{Boxcode|width=50%|title=Custom Title|content=Code Sample}}</nowiki>
<nowiki>{{Boxcode|width=50%|title=Custom Title|code=Code Sample}}</nowiki>
<br>...or...<br>
<br>...or...<br>
<nowiki>{{Boxcode|width=50%|float=right|title=Custom Title|content=Code Sample}}</nowiki>
<nowiki>{{Boxcode|width=50%|float=right|title=Custom Title|code=Code Sample}}</nowiki>
<br>...or...<br>
<br>...or...<br>
<nowiki>{{Boxcode|width=500px|height=500px|float=center|title=Custom Title|content=Code Sample}}</nowiki>
<nowiki>{{Boxcode|width=500px|height=500px|float=center|title=Custom Title|code=Code Sample}}</nowiki>


== Examples ==
== Examples ==
{{Boxcode|title=Custom Title|content=<syntaxhighlight lang="xml">
{{Boxcode|title=Custom Title|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 31: Line 31:
</syntaxhighlight>}}
</syntaxhighlight>}}


{{Boxcode|width=50%|float=left|title=width=50% float=left|content=<syntaxhighlight lang="xml">
{{Boxcode|width=50%|float=left|title=width=50% float=left|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 37: Line 37:
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages  
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages  
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=50%|float=right|title=width=50% float=right|content=<syntaxhighlight lang="xml">
{{Boxcode|width=50%|float=right|title=width=50% float=right|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 44: Line 44:
</syntaxhighlight>}}
</syntaxhighlight>}}


{{Boxcode|width=700px|float=left|title=width=700px float=left|content=<syntaxhighlight lang="xml">
{{Boxcode|width=700px|float=left|title=width=700px float=left|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 50: Line 50:
very long lines adds a horizontal scroll bar
very long lines adds a horizontal scroll bar
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=auto|float=right|title=width=auto float=right|content=<syntaxhighlight lang="xml">
{{Boxcode|width=auto|float=right|title=width=auto float=right|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 56: Line 56:
very long lines adds a horizontal scroll bar
very long lines adds a horizontal scroll bar
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=auto|float=right|title=width=auto float=right|content=<syntaxhighlight lang="xml">
{{Boxcode|width=auto|float=right|title=width=auto float=right|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 62: Line 62:
very long lines adds a horizontal scroll bar
very long lines adds a horizontal scroll bar
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=350px|height=200px|float=right|title=width=350px height=200px float=right|content=<syntaxhighlight lang="xml">
{{Boxcode|width=350px|height=200px|float=right|title=width=350px height=200px float=right|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
Line 77: Line 77:
###############################################
###############################################
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=auto|height=auto|float=left|title=width=auto height=auto float=left|content=<syntaxhighlight lang="xml">
{{Boxcode|width=auto|height=auto|float=left|title=width=auto height=auto float=left|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines
<!--here-->
<!--here-->
</syntaxhighlight>}}
</syntaxhighlight>}}
{{Boxcode|width=150px|height=auto|float=left|title=width=150px height=auto float=left|content=<syntaxhighlight lang="xml">
{{Boxcode|width=150px|height=auto|float=left|title=width=150px height=auto float=left|code=<syntaxhighlight lang="xml">
<code>
<code>
lines
lines

Revision as of 03:37, 30 August 2021

Code Sample
Edit-copy purple.svg.png
code



Usage

{{Boxcode|code=Code Sample}}
...or...
{{Boxcode|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=50%|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=50%|float=right|title=Custom Title|code=Code Sample}}
...or...
{{Boxcode|width=500px|height=500px|float=center|title=Custom Title|code=Code Sample}}

Examples

Custom Title
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages ...............................................................................................................................................................................................................................................................................................o/sup
width=50% float=left
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages
width=50% float=right
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar at bottom of the template to preserve the width of the wiki pages
width=700px float=left
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=auto float=right
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=auto float=right
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
width=350px height=200px float=right
Edit-copy purple.svg.png
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
<code>
lines
<!--here-->
very long lines adds a horizontal scroll bar
###############################################
width=auto height=auto float=left
Edit-copy purple.svg.png
<code>
lines
<!--here-->
width=150px height=auto float=left
Edit-copy purple.svg.png
<code>
lines
<!--here-->