Difference between revisions of "Template:Mod"

From Wildermyth Wiki
(Modded content banner)
 
(Support for coremods and external links)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><p style="filter: hue-rotate(340deg) saturate(3); padding: 10px 20px; margin: 0px -50px; border: 12px solid transparent; border-image-source: url(/w/images/buttonRip_192x1_over_lessSaturated.png); border-image-slice: 19 fill; border-image-repeat: repeat;">'''Modded Content:''' This content is part of the '''[[{{{1}}}|{{{2}}}]]''' mod</p></includeonly><noinclude>
<includeonly><big><p id="moddedContentBanner">
[[File:Modded Content Icon.png|80px|middle|link=]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'''Modded Content:''' This content is part of the '''{{#if:{{{2|}}}|{{#if:{{{external|}}}|[{{{2}}} {{{1}}}]|[[{{{2}}}|{{{1}}}]]}}|{{{1}}}}}''' {{#if:{{{coremod|}}}|coremod|mod}}</p></big></includeonly><noinclude>
{{Mod/doc}}
{{Mod/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 19:37, 17 September 2025

This documentation is transcluded from Template:Mod/doc

Usage

This template should be used at the top of any wiki page about modded content. (Modded content should always be put in a subfolder of the form wildermyth.com/wiki/mods/[myModName]/[pageName])

This template uses the following parameters:

mod name
Name of the mod
link
If external is not set, tame of the root wiki page for this mod, e.g. "mods/myCoolMod". Otherwise the link to an external page.
external
If set, link will be treated as an external link.
coremod
If set, the text will say 'coremod' instead of 'mod'

Examples

{{Mod|My Cool Mod|mods/myCoolMod}}

Modded Content Icon.png      Modded Content: This content is part of the My Cool Mod mod

{{Mod|Example|https://example.com|external=true|coremod=true}}

Modded Content Icon.png      Modded Content: This content is part of the Example coremod