Template:Moddb/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
|-
|-
| style="text-align:center" | {{Code| {{param}} }}
| style="text-align:center" | {{Code| {{param}} }}
| Creates a link to a mod*, game, or other pages on '''ModDB'''.<br>* - Default for compatibility reasons.
| Creates a link to a mod, game, or other pages on '''ModDB'''.<br> By default it was set to {{Code|other}}, allowing any ModDB links to be used, one downsides is that some older pages (and even some newer one) with old ModDB links will stops working, but it will be eventually fixed.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb|black-mesa}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb|mods/black-mesa}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{Moddb|black-mesa}} }}
| style="padding:.2em .5em" | {{Capsule| {{Moddb|mods/black-mesa}} }}
|-
|-
| style="text-align:center" | {{Code| {{param|2}} }}
| style="text-align:center" | {{Code| {{param|2}} }}
| Alternative name of the link.
| Alternative name of the link.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb||ModDB Home page}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|black-mesa|Black Mesa on ModDB}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb||ModDB Home page}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|mods/black-mesa|Black Mesa on ModDB}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule|{{Moddb||ModDB Home page}}<br>{{Moddb|black-mesa|Black Mesa on ModDB}} }}
| style="padding:.2em .5em" | {{Capsule|{{Moddb||ModDB Home page}}<br>{{Moddb|mods/black-mesa|Black Mesa on ModDB}} }}
|-
|-
| style="text-align:center" | {{Code| {{param|page}} }}
| style="text-align:center" | {{Code| {{param|page}} }}
| Changes the page URL from {{code|mod}} (default) to {{code|games}}, {{code|rtx}} or {{code|other}} to allow input other ModDB pages.<br>For backward compatibility with pages that didn't have this template update, {{param|page}} parameters was defaulted to {{code|mod}} in order to avoid breaking links using the template prior to it being updated.
| Changes the page URL from {{code|other}} (default) to {{code|mods}}, {{code|games}} or {{code|rtx}}. We recommend using the default {{code|other}} settings as this will allow any ModDB links to be used, without requiring another parameters.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb|black-mesa|Black Mesa on ModDB}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=games|half-life-2|Half-Life 2 on ModDB}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=rtx|1=/|2=RTX Remix Compatible Games}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=other|about|About ModDB}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{Moddb|page=mod|black-mesa|Black Mesa on ModDB}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=games|half-life-2|Half-Life 2 on ModDB}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=rtx|1=/|2=RTX Remix Compatible Games}}</nowiki>}}{{CodeBlock|<nowiki>{{Moddb|page=other|about|About ModDB}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{Moddb|page=mod|black-mesa|Black Mesa on ModDB}}<br>{{Moddb|page=games|half-life-2|Half-Life 2 on ModDB}}<br>{{Moddb|page=rtx|1=/|2=RTX Remix Compatible Games}}<br>{{Moddb|page=other|about|About ModDB}} }}
| style="padding:.2em .5em" | {{Capsule| {{Moddb|page=mod|black-mesa|Black Mesa on ModDB}}<br>{{Moddb|page=games|half-life-2|Half-Life 2 on ModDB}}<br>{{Moddb|page=rtx|1=/|2=RTX Remix Compatible Games}}<br>{{Moddb|page=other|about|About ModDB}} }}
|-
|-

Revision as of 00:08, 25 June 2024

Edit-copy.png
This is a documentation subpage for Template:Moddb.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Todo: Edit all pages and change all ModDB links to temporarily uses the page=other parameters, before updating this template to use that parameters by default, allowing users to use any ModDB links without page=other for backward compatibility. This major change will remove backward compatibility with older ModDB links prior to this template being updated.

Link to ModDB ModDB.

Parameters and Examples

Parameter Description Example Preview
No Parameters Creates a link to ModDB home page.
{{Moddb}}
{{{1}}} Creates a link to a mod, game, or other pages on ModDB.
By default it was set to other, allowing any ModDB links to be used, one downsides is that some older pages (and even some newer one) with old ModDB links will stops working, but it will be eventually fixed.
{{Moddb|mods/black-mesa}}
{{{2}}} Alternative name of the link.
{{Moddb||ModDB Home page}}
{{Moddb|mods/black-mesa|Black Mesa on ModDB}}
{{{page}}} Changes the page URL from other (default) to mods, games or rtx. We recommend using the default other settings as this will allow any ModDB links to be used, without requiring another parameters.
{{Moddb|page=mod|black-mesa|Black Mesa on ModDB}}
{{Moddb|page=games|half-life-2|Half-Life 2 on ModDB}}
{{Moddb|page=rtx|1=/|2=RTX Remix Compatible Games}}
{{Moddb|page=other|about|About ModDB}}
{{{icon}}} Hide/shows the icon.
Values: show (default), hide
{{Moddb|icon=hide}}

See also

Cross-wiki link templates
Template Preview
{{wikipedia}}
{{wiki}}
{{w}}
Wikipedia icon Wikipedia
{{cow}} Combine overwiki icon.png Combine OverWiki
{{l4dwiki}} Left 4 Dead Wiki Left 4 Dead Wiki
{{pcgw}} Pcgw icon.png PCGamingWiki
{{portalwiki}} Portalwiki icon.png Portal Wiki
{{sboxwiki}} S&box icon.png S&Box Wiki
{{tfwiki}} Tfwiki favicon.png Team Fortress Wiki
{{twhl}} Twhl hammer emote.png TWHL Wiki
{{quakewiki}} Quake1-16px.png Quake Wiki
{{cswiki}} Counter-Strike Wiki Counter-Strike Wiki
Social media link templates
Template Preview
{{bluesky}} Bluesky Bluesky
{{discord}} Discord logo Discord
{{reddit}} Reddit logo Reddit
{{steam community}} Steam Community Steam Community
{{twitch}} Twitch logo Twitch
{{twitter}}
{{x}}
Logo for X X (Twitter)
{{youtube}} YouTube logo YouTube
Storefront link templates
Template Preview
{{steam store}} Steam Store Steam Store
{{epic}}
{{egs}}
Epic Games Store Epic Games Store
{{gplay}} Google Play Google Play
{{gog}} GOG.com GOG.com
{{ms store}}
(PC, Xbox One Xbox One, Xbox Series X/S)
Microsoft Store Microsoft Store
{{xbox store}}
(Xbox 360 Xbox 360)
Xbox Marketplace Xbox Marketplace
{{nintendo store}} Nintendo Store Nintendo Store
Other link templates
Template Preview
{{steam}} Steam Protocol
{{email}}
{{e}}
gaben@valvesoftware.com
{{github}} GitHub GitHub
{{gamebanana}} ModDB GameBanana
{{moddb}} ModDB ModDB
{{rtsl}} rtsl RTSL
{{protondb}} ProtonDB ProtonDB
{{steamdb}}
{{sdb}}
SteamDB SteamDB
{{gdrive}}
{{gd}}
Google Drive Google Drive
{{fragnet}}
{{fn}}
Frag-Net Frag-Net

ViewDiscussEdit templatePurge