Template:UpdateBox: Difference between revisions
From Paw Borough Wiki
No edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
<div style="font-size:0.75em;">[https://pawborough.net/u/{{{id}}} '''{{{name}}} (#{{{id}}}''')] <span style="color:#453218;">''{{{date}}} {{{time|}}}''</span></div> | <div style="font-size:0.75em;">[https://pawborough.net/u/{{{id}}} '''{{{name}}} (#{{{id}}}''')] <span style="color:#453218;">''{{{date}}} {{{time|}}}''</span></div> | ||
</div> | </div> | ||
<div style="background:#f5ead2;padding:5px;max-height:550px;overflow-y:auto;overflow-x:hidden;border-radius:inherit;">{{trim|{{{content|}}}}}</div> | <div style="background:#f5ead2;padding:5px;max-height:550px;overflow-y:auto;overflow-x:hidden;border-radius:inherit;"> | ||
{{trim|{{{content|}}}}} | |||
</div> | |||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:09, 13 September 2026
| Template documentation follows |
|---|
| Visit Template:UpdateBox/doc to edit this documentation. (How does this work?) |
| Editors can experiment in this template's sandbox and test case pages. |
Usage
This template creates a content box with a max height of 550px to format official PawBorough update posts.
{{UpdateBox
|type=
|title=
|link=
|date=
|time=
|name=
|id=
|content=
}}
Example
{{UpdateBox
|type=type
|title=title
|link=link
|date=date
|time=time
|name=name
|id=id
|content=content
}}
{{UpdateBox
|type=discord
|title=title
|link=link
|date=date
|time=time
|name=name
|id=id
|content=content
}}
Parameters
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| type | type | The type of update, if set to "discord" then the "title" parameter can be omitted.
| String | optional |
| title | title | Applicable only for announcements and pawpatches. The forum title. | Unknown | optional |
| link | link | A direct source link to the post.
| URL | required |
| date | date | The date of when the post was made. Should be formatted as "month day, year". | String | required |
| time | time | The time the post was made, should always be in Eastern Time. | Unknown | suggested |
| name | name | PawBorough username of the original poster. | String | required |
| id | id | PawBorough ID of the original poster. | Number | optional |
| content | content | The full text of the update post. | String | required |
