Jump to content

Template:Infobox RP: Difference between revisions

From BadWolfMC Wiki
No edit summary
No edit summary
Line 1: Line 1:
<!-- Wrapper around Module:Infobox so we inherit native styles/dark mode -->
<includeonly>{{Infobox
{{#invoke:Infobox|infobox
|name        =
| name   = {{#if:{{{title|}}}|{{{title}}}|BadWolfMC Resource Pack}}
|bodystyle   =
| image   = {{{image|}}}
|title        = {{#if:{{{title|}}}|{{{title}}}|BadWolfMC Resource Pack}}
| caption = {{{image_caption|}}}
|titlestyle   =  


| above =  
<!-- Optional image -->
{{#if:{{{download_url|}}}|
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|alt={{{image_alt|}}}]]|}}
  <span class="plainlinks">
|imagestyle  =
    [{{{download_url}}} <span class="mw-ui-button mw-ui-progressive"> {{#if:{{{download_label|}}}|{{{download_label}}}|Download}} </span>]
|caption      = {{{image_caption|}}}
  </span>
|captionstyle =
|}}
 
|datastyle    =
 
<!-- Download button (optional); uses native mw-ui button classes -->
|above = {{#if:{{{download_url|}}}|
  <span class="plainlinks">[{{{download_url}}}
    <span class="mw-ui-button mw-ui-progressive">
      {{#if:{{{download_label|}}}|{{{download_label}}}|Download}}
    </span>]
  </span>
}}
}}


{{#if:{{{rp_version|}}}|{{Infobox/row|label=RP Version|data={{{rp_version}}}}}|}}
|header1 = Resource Pack
{{#if:{{{sha1|}}}|{{Infobox/row|label=SHA1|data=<code>{{{sha1}}}</code>}}|}}
 
{{#if:{{{mc_version|}}}|{{Infobox/row|label=Native MC|data={{{mc_version}}}}}|}}
|label2  = {{#if:{{{rp_version|}}}|RP Version|}}
{{#if:{{{pack_format_current|}}}|{{Infobox/row|label=Pack format|data={{{pack_format_current}}}}}|}}
|data2  = {{{rp_version|}}}
{{#if:{{{pack_formats_supported|}}}|{{Infobox/row|label=Supported formats|data={{{pack_formats_supported}}}}}|}}
 
{{#if:{{{contributors|}}}|{{Infobox/row|label=Contributors|data={{{contributors}}}}}|}}
|label3  = {{#if:{{{sha1|}}}|SHA1|}}
|data3  = {{#if:{{{sha1|}}}|<code>{{{sha1}}}</code>|}}
 
|label4  = {{#if:{{{mc_version|}}}|Native MC|}}
|data4  = {{{mc_version|}}}
 
|label5  = {{#if:{{{pack_format_current|}}}|Pack format|}}
|data5  = {{{pack_format_current|}}}
 
|label6  = {{#if:{{{pack_formats_supported|}}}|Supported formats|}}
|data6  = {{{pack_formats_supported|}}}
 
|header7 = {{#if:{{{contributors|}}}|Contributors|}}
|data7  = {{{contributors|}}}
}}
</includeonly>
<noinclude>{{documentation}}
[[Category:Infobox_templates]]</noinclude>

Revision as of 08:15, 1 November 2025