Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Forums: Difference between revisions

Template page
Create Forums link template
 
m Support a third unnamed parameter for on= (e.g. {{Forums|3550|Web & Art Role|no}})
Line 1: Line 1:
<includeonly><templatestyles src="Template:Forums/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-forums-link">[https://forums.lokamc.com/threads/{{{id|{{{1|}}}}}} &quot;{{{label|{{{2|Thread}}}}}}&quot;]{{#ifeq:{{lc:{{{on|}}}}}|no||&#32;on the <span class="loka-forums-icon">[[File:Loka icon.png|14px|link=|alt=Loka]]</span>&#32;[[Loka Forums]]}}</span>}}</includeonly><noinclude>
<includeonly><templatestyles src="Template:Forums/styles.css" />{{#if:{{{id|{{{1|}}}}}}|<span class="loka-forums-link">[https://forums.lokamc.com/threads/{{{id|{{{1|}}}}}} &quot;{{{label|{{{2|Thread}}}}}}&quot;]{{#ifeq:{{lc:{{{on|{{{3|}}}}}}}}|no||&#32;on the <span class="loka-forums-icon">[[File:Loka icon.png|14px|link=|alt=Loka]]</span>&#32;[[Loka Forums]]}}</span>}}</includeonly><noinclude>
== Usage ==
== Usage ==


Line 21: Line 21:
|-
|-
| <code>on</code>
| <code>on</code>
| Set to <code>no</code> to omit the trailing &quot;on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]]&quot; -- shown by default.
| Set to <code>no</code> to omit the trailing &quot;on the [[File:Loka icon.png|14px|link=|alt=Loka]] [[Loka Forums]]&quot; -- shown by default. The third unnamed parameter also works.
|}
|}


<pre>{{Forums|id=292|label=the official updates thread|on=no}}</pre>
<pre>{{Forums|id=292|label=the official updates thread|on=no}}</pre>
or, using unnamed parameters throughout:
<pre>{{Forums|292|the official updates thread|no}}</pre>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 12:25, 23 August 2026

Usage

{{Forums|292}}

Renders as: "Thread" on the Loka 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 Loka Loka Forums" -- shown by default. The third unnamed parameter also works.
{{Forums|id=292|label=the official updates thread|on=no}}

or, using unnamed parameters throughout:

{{Forums|292|the official updates thread|no}}