Template:Changelog: Difference between revisions

From The TF2 Sourcemod Wiki
Jump to navigation Jump to search
I stole this from fandom, this is a blessing.
 
m Added information to manually fix the broken fix
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; 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>
<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>
<templatedata>
{
"params": {
"width": {
"label": "Width",
"description": "Size of the box horizontally ",
"type": "number",
"suggestedvalues": [
"80%"
],
"autovalue": "80%"
},
"text": {
"label": "Changelog",
"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": {
"label": "Height",
"description": "Height of the box (Recommend to leave default)"
}
},
"description": "Usage: \n{{Scroll box\n|width =      //width of the box in pixel or percent (default = 100%)\n|height =    //height of the box in pixel (default = 230px)\n|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)\n}}",
"paramOrder": [
"width",
"text",
"height"
]
}
</templatedata>
</noinclude>

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