Template:Changelog: Difference between revisions

From The TF2 Sourcemod Wiki
Jump to navigation Jump to search
m Fixed formatting issue caused by <br> touching placeholder.
m Added information to manually fix the broken fix
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|80%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;"><br> {{{text}}}</div></td><td style="width:8px;"></td></tr></table>
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|80%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:{{{height|230px}}}; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">{{{text}}}</div></td><td style="width:8px;"></td></tr></table>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 15: Line 15:
"text": {
"text": {
"label": "Changelog",
"label": "Changelog",
"description": "Spaces and returns will also be passed"
"description": "(Add a <br> with a space after it otherwise first header wont work.) Spaces and returns will also be passed",
"example": "for changelog dates do ==== for sub categories use ====="
},
},
"height": {
"height": {

Latest revision as of 00:44, 5 February 2025

{{{text}}}

Usage: {{Scroll box |width = //width of the box in pixel or percent (default = 100%) |height = //height of the box in pixel (default = 230px) |text = //text that should be displayed inside this frame. Note: the scroll bar will appear only if the text is long enough to overflow the given height (required field) }}

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Widthwidth

Size of the box horizontally

Suggested values
80%
Auto value
80%
Numberoptional
Changelogtext

(Add a <br> with a space after it otherwise first header wont work.) Spaces and returns will also be passed

Example
for changelog dates do ==== for sub categories use =====
Unknownoptional
Heightheight

Height of the box (Recommend to leave default)

Unknownoptional