Jump to content

Template:Infobox RP: Difference between revisions

From BadWolfMC Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Infobox_RP/styles.css" />
<includeonly>{{Infobox
<includeonly>{{Infobox
|name      =  
|name      =  
Line 5: Line 6:
|titlestyle =  
|titlestyle =  


|image      = {{#if:{{{image|}}}|[[File:{{{image}}}|alt={{{image_alt|}}}]]|}}
|image      = [[File:{{{image|}}}|250px]]
|imagestyle =  
|imagestyle =  
|caption    = {{{image_caption|}}}
|caption    = {{{image_caption|}}}
Line 14: Line 15:
<!-- DOWNLOAD (robust to either a bare URL or prebuilt link) -->
<!-- DOWNLOAD (robust to either a bare URL or prebuilt link) -->
|above = {{#if:{{{download_url|}}}|
|above = {{#if:{{{download_url|}}}|
   <!-- Case A: looks like a bare URL (http/https and no opening bracket) -->
   <div style="text-align:center; margin:6px 0 0;">
  {{#if:{{#ifexpr: {{#pos:{{{download_url}}}|[}} < 0 |1|}}
     <span class="plainlinks bwmc-btn">[{{{download_url}}} {{#if:{{{download_label|}}}|{{{download_label}}}|Download}}]</span>
     | <span class="plainlinks">[{{{download_url}}} <span class="mw-ui-button mw-ui-progressive">{{#if:{{{download_label|}}}|{{{download_label}}}|Download}}</span>]</span>
  </div>
    | <!-- Case B: already a wikitext link (e.g., from {{ext-link}}) — render as-is to avoid double-wrapping -->
      <span class="plainlinks mw-ui-button mw-ui-progressive">{{{download_url}}}</span>
  }}
}}
}}


|header1 = Resource Pack
 
 
|header1 = Resource Pack Information


|label2  = {{#if:{{{rp_version|}}}|Version|}}
|label2  = {{#if:{{{rp_version|}}}|Version|}}
Line 28: Line 28:


|label3  = {{#if:{{{sha1|}}}|SHA1|}}
|label3  = {{#if:{{{sha1|}}}|SHA1|}}
|data3  = {{#if:{{{sha1|}}}|<code>{{{sha1}}}</code>|}}
|data3  = {{#if:{{{sha1|}}}|<code class="bwmc-wrap">{{{sha1}}}</code>|}}
 
|label4  = {{#if:{{{sha256|}}}|SHA256|}}
|data4  = {{#if:{{{sha256|}}}|<code class="bwmc-wrap">{{{sha256}}}</code>|}}
 
|label5  = {{#if:{{{mc_version|}}}|Native MC|}}
|data5  = {{{mc_version|}}}


|label4 = {{#if:{{{mc_version|}}}|Native MC|}}
|label6 = {{#if:{{{pack_format_current|}}}|Pack format|}}
|data4   = {{{mc_version|}}}
|data6   = {{{pack_format_current|}}}


|label5 = {{#if:{{{pack_format_current|}}}|Pack format|}}
|label7 = {{#if:{{{pack_formats_supported|}}}|Supported formats|}}
|data5   = {{{pack_format_current|}}}
|data7   = {{{pack_formats_supported|}}}


|label6  = {{#if:{{{pack_formats_supported|}}}|Supported formats|}}
|label8 = {{#if:{{{contributors|}}}|Contributors|}}
|data6  = {{{pack_formats_supported|}}}
|data8  = {{{contributors|}}}


|header7 = {{#if:{{{contributors|}}}|Contributors|}}
|data7  = {{{contributors|}}}
}}
}}
</includeonly>
</includeonly>
<noinclude>{{documentation}}
<noinclude>{{documentation}}
[[Category:Infobox_templates]]</noinclude>
[[Category:Infobox_templates]]</noinclude>

Latest revision as of 10:39, 4 November 2025