Template:Forums: Difference between revisions
Template page
More actions
m Support a third unnamed parameter for on= (e.g. {{Forums|3550|Web & Art Role|no}}) |
m Replace reader-visible prose double hyphens with a proper em dash entity |
||
| Line 6: | Line 6: | ||
Renders as: "Thread" on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]] | Renders as: "Thread" on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]] | ||
The first unnamed parameter (or <code>id</code>) is the thread's numeric ID | The first unnamed parameter (or <code>id</code>) is the thread's numeric ID — the number at the end of its forums URL, e.g. <code>292</code> for <code>https://forums.lokamc.com/threads/official-update-thread.292/</code>. The plain numeric URL (<code>https://forums.lokamc.com/threads/292</code>) resolves the same way, so the slug isn't needed. | ||
== Parameters == | == Parameters == | ||
| Line 21: | Line 21: | ||
|- | |- | ||
| <code>on</code> | | <code>on</code> | ||
| Set to <code>no</code> to omit the trailing "on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]]" | | Set to <code>no</code> to omit the trailing "on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]]" — shown by default. The third unnamed parameter also works. | ||
|} | |} | ||
Latest revision as of 14:18, 23 August 2026
Usage
{{Forums|292}}
Renders as: "Thread" on the
Loka Forums
The first unnamed parameter (or id) is the thread's numeric ID — the number at the end of its forums URL, e.g. 292 for https://forums.lokamc.com/threads/official-update-thread.292/. The plain numeric URL (https://forums.lokamc.com/threads/292) resolves the same way, so the slug isn't needed.
Parameters
| Parameter | Description |
|---|---|
id
|
The thread's numeric ID. Required. The first unnamed parameter also works. |
label
|
Text shown in quotes as the link. Defaults to "Thread". The second unnamed parameter also works. |
on
|
Set to no to omit the trailing "on the |
{{Forums|id=292|label=the official updates thread|on=no}}
or, using unnamed parameters throughout:
{{Forums|292|the official updates thread|no}}