Template:Mod infobox main: Difference between revisions

From War.app Wiki
Jump to navigation Jump to search
DanWL60 (talk | contribs)
changed default category from Experimental to Deleted
DanWL60 (talk | contribs)
→‎Usage: details for appversion
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">{{Mod infobox/row|Mod name|<strong>{{{name|{{FULLPAGENAME}}}}}</strong>}}{{Mod infobox/row|Creator|{{{1|[https://www.warzone.com/Profile?p={{{creatorToken|creatorToken}}} {{{creatorName|creatorName}}}]}}}}}{{Mod infobox/row|[[:Category:Mods made public by year|Made public on]]|[[:Category:Mods made public during {{{madePublicOnYear|????}}}|{{{madePublicOnYear|????}}}]]-{{{madePublicOnMonth|??}}}-{{{madePublicOnDay|??}}} {{{madePublicOnRef|}}}}}{{Mod infobox/row|[[Mod Categories|Category]]|[[:Category:{{{category|Deleted}}} Mods|{{{category|Deleted}}}]]}}{{Mod infobox/row|[[:Category:Mods by tag|Tags]]|{{{tags|tags}}}}}{{Mod infobox/row|Runs on Warzone version|{{{appversion|4.14.2}}}+}}{{Mod infobox/row|Source code|[{{{source|}}} GitHub]}}</div><noinclude>
<div class="infobox">{{Mod infobox/row|Mod name|<strong>{{{name|{{FULLPAGENAME}}}}}</strong>}}{{{icon|}}}{{Mod infobox/row|Mod creator|{{{1|[https://www.war.app/Profile?p={{{creatorToken|creatorToken}}} {{{creatorName|creatorName}}}]}}}}}{{Mod infobox/row|[[:Category:Mods made public by year|Made public on]]|{{Mod infobox/date|{{{madePublicOnYear|????}}}|{{{madePublicOnMonth|??}}}|{{{madePublicOnDay|??}}}|{{{madePublicOnRef|}}}}}{{{madePublicOnAlt|}}}}}{{Mod infobox/row|[[Mod Categories|Category]]|[[:Category:{{{category|Deleted}}} Mods|{{{category|Deleted}}}]]}}{{Mod infobox/row|[[:Category:Mods by tag|Tags]]|{{{tags|tags}}}}}{{Mod infobox/row|Requires War.app version|{{{appversion|4.14.2}}}+}}{{Mod infobox/row|Source code|[{{{source|https://example.com}}} {{{sourcehost|GitHub}}}]}}{{{aiAssetUse|}}}{{Mod infobox/row|[[Mods and AI#In code|AI code use]]|{{{aiCodeUse|None or hand coded}}}}}</div><noinclude>
== Usage ==
== Usage ==
This template should only be used by [[Template:Mod infobox]] or [[:Category:Deleted Mods|deleted mods]].
This template should only be used by [[Template:Mod infobox]] or [[:Category:Deleted Mods|deleted mods]]. [[Template:Deleted Mod]] should be used at the top of the page, before the template is included: <code><nowiki>{{Deleted Mod}}</nowiki></code>.
<pre>
<pre>
<nowiki>
<nowiki>
Line 12: Line 12:
|madePublicOnDay=dd (defaults to ??)
|madePublicOnDay=dd (defaults to ??)
|madePublicOnRef=(optional)
|madePublicOnRef=(optional)
|madePublicOnAlt=(optional)
|category=(one of Promoted, Standard, Experimental or Deleted, defaults to Deleted)
|category=(one of Promoted, Standard, Experimental or Deleted, defaults to Deleted)
|tags={{ModtagMain|Tag1}}<br>{{ModtagMain|Tag2}}<br>{{ModtagMain|Tag3}}
|tags={{ModtagMain|Tag1}}<br>{{ModtagMain|Tag2}}<br>{{ModtagMain|Tag3}}
|appversion=(optional, defaults to 4.14.2)
|appversion=(optional, defaults to 4.14.2)
|source=(GitHub url)
|source=url
|sourcehost=(optional, defaults to GitHub)
|aiCodeUse=(defaults to None or hand coded)
}}
}}
</nowiki>
</nowiki>
</pre></noinclude><noinclude>[[Category:Infobox Templates]]</noinclude>
</pre>
 
For <code><nowiki>appversion</nowiki></code>, check against [[Mod API Reference#Newer API features]].
 
There is an optional <code><nowiki>icon</nowiki></code> field that appears underneath <code><nowiki>name</nowiki></code>. See [[Template:Mod infobox/row/icon]] for details.
 
There is an optional <code><nowiki>aiAssetUse</nowiki></code> field that appears underneath <code><nowiki>sourcehost</nowiki></code>. If a mod supplies front-facing (such as icons, card images or special unit images), use one of:
* [[Template:Mod infobox/row/AIAssetUse/none]]
* [[Template:Mod infobox/row/AIAssetUse/assist]]
* [[Template:Mod infobox/row/AIAssetUse/ai]]
 
For <code><nowiki>aiCodeUse</nowiki></code>, use one of:
* [[Template:Mod infobox/AICodeUse/none]]
* [[Template:Mod infobox/AICodeUse/handcoded]]
* [[Template:Mod infobox/AICodeUse/assist]]
* [[Template:Mod infobox/AICodeUse/vibes]]
 
</noinclude><noinclude>[[Category:Infobox Templates]]</noinclude>

Latest revision as of 15:49, 30 November 2026

Mod nameTemplate:Mod infobox main
Mod creatorcreatorName
Made public on????-??-??
CategoryDeleted
Tagstags
Requires War.app version4.14.2+
Source codeGitHub
AI code useNone or hand coded

Usage

This template should only be used by Template:Mod infobox or deleted mods. Template:Deleted Mod should be used at the top of the page, before the template is included: {{Deleted Mod}}.


{{Mod infobox main
|name=(name of mod, defaults to page name)
|creatorToken=(the ?p=<numbers> on a player URL)
|creatorName=(name of player who created the mod)
|madePublicOnYear=yyyy (forced)
|madePublicOnMonth=mm (defaults to ??)
|madePublicOnDay=dd (defaults to ??)
|madePublicOnRef=(optional)
|madePublicOnAlt=(optional)
|category=(one of Promoted, Standard, Experimental or Deleted, defaults to Deleted)
|tags={{ModtagMain|Tag1}}<br>{{ModtagMain|Tag2}}<br>{{ModtagMain|Tag3}}
|appversion=(optional, defaults to 4.14.2)
|source=url
|sourcehost=(optional, defaults to GitHub)
|aiCodeUse=(defaults to None or hand coded)
}}

For appversion, check against Mod API Reference#Newer API features.

There is an optional icon field that appears underneath name. See Template:Mod infobox/row/icon for details.

There is an optional aiAssetUse field that appears underneath sourcehost. If a mod supplies front-facing (such as icons, card images or special unit images), use one of:

For aiCodeUse, use one of: