Template:UpdateBox: Difference between revisions
From Paw Borough Wiki
mNo edit summary |
(Adjusting title size.) |
||
| Line 2: | Line 2: | ||
<div style="overflow:hidden;border-radius: 0px 0px 10px 10px;"> | <div style="overflow:hidden;border-radius: 0px 0px 10px 10px;"> | ||
<div style="display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;"> | <div style="display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;"> | ||
<div style="font-size:1. | <div style="font-size:1.4em;">[{{{link}}} '''{{#switch:{{{type}}}|discord=Discord Post|#default={{{title}}}}}''']</div> | ||
<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> | ||
Latest revision as of 10:57, 28 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 |
