Template:ZRuneBox: Difference between revisions

From Runecraft Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(75 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- For runebox3 only -->
<!-- Doc -->
<noinclude>{{ZRuneBox/doc}}</noinclude>
<!-- Doc End -->


<!-- Template Block -->
<includeonly>
<includeonly>
<div class="rune-box" style="display: grid;grid-template-columns: 2fr 1fr; grid-template-rows: 50px auto">
<div class="rune-box" style="display: grid;grid-template-columns: 2fr 1fr; grid-template-rows: 50px auto">


<!-- Title Block -->
 
<div class="rune-name3" style="grid-column: 1 / span 2; grid-row: 1;">
<!-- Title Block -->
<h1>{{{title|Rune Title Missing}}}</h1>
<div class="rune-name3" style="grid-column: 1; grid-row: 1;">
<h1>{{{title|Rune Title Missing}}}</h1>
</div>
<!-- Title Block Ends -->
 
 
<!-- Info Block -->
<div class="rune-content3" style="grid-column:1; grid-row:2;">
<h3>User Information</h3>
 
{{#if: {{{effect|}}}
|
<p>{{{effect|}}}</p>
}}
{{#if: {{{instructions|}}}
|
<p class="rune-box-header">'''Instructions'''</p>
<p>{{{instructions|}}}</p>
}}
{{#if: {{{tools|}}}
|
<p class="rune-box-header">'''Tools'''</p>
<p>{{{tools|}}}</p>
}}
 
<!-- Videos -->
{{#if: {{{videotitle|}}} |<p class="rune-box-header">'''Video(s)'''</p>
[{{{video}}} {{{videotitle|}}}]}}
{{#if: {{{videotitle2|}}} |<p class="rune-box-header"></p>
[{{{video2}}} {{{videotitle2|}}}]}}
{{#if: {{{videotitle3|}}} |<p class="rune-box-header"></p>
[{{{video3}}} {{{videotitle3|}}}]}}
{{#if: {{{videotitle4|}}} |<p class="rune-box-header"></p>
[{{{video4}}} {{{videotitle4|}}}]}}
{{#if: {{{videotitle5|}}} |<p class="rune-box-header"></p>
[{{{video5}}} {{{videotitle5|}}}]}}
{{#if: {{{videotitle6|}}} |<p class="rune-box-header"></p>
[{{{video6}}} {{{videotitle6|}}}]}}
{{#if: {{{videotitle7|}}} |<p class="rune-box-header"></p>
[{{{video7}}} {{{videotitle7|}}}]}}
<!-- Videos End -->
 
</div>
<!-- Info Block Ends-->
 
<!-- Display Block Starts-->
<div class="rune-display3" style="padding-top:10px;grid-column:2; grid-row:2;">
<div class="display-container3" style="margin-left:auto;margin-right:auto;padding:2px;border-style:solid;border-color:black;">
<!-- Title Box for Display -->
<p class="rune-box-title" style="text-align:center">
<b>Rune Info</b>
</p>
 
<!-- Check for display widget presence... -->
{{#if:{{{disp_widget|}}}
|
<div class="display-container" style="margin:0 auto;">
<div id="bg_box" style="height:fit-content;width:fit-content;padding:5px;background-color:aliceblue;border-color:black;border-style:solid;margin:0 auto"></div>{{{disp_widget|}}}
</div>
|
<div class="rune-display" style="height: fit-content;width: fit-content;margin-left: auto; margin-right:auto; background-color: aliceblue;border-color: black;border-style: solid;">
[[File:Coming_Soon.png]]
</div>
</div>


<!-- Info Block -->
}}
<div class="rune-content3" style="grid-column:1; grid-row:2;">
<h3>User Information</h3>
{{#if: {{{effect|}}}
|
<p>{{{effect|}}}</p>
}}
{{#if: {{{instructions|}}}
|
<p class="rune-box-header">'''Instructions'''</p>
<p>{{{instructions|}}}</p>
}}
{{#if: {{{videotitle|}}}
|
<p class="rune-box-header">'''Video(s)'''</p>
[{{{video}}} {{{videotitle|}}}]
}}
<!-- ---------------------- -->
<div class="rune-pattern">
{{LoadBox|page={{FULLPAGENAME}}/Pattern3|title=Rune Pattern|float=none}}{{-}}
</div>


        <!-- --------------------------------------------------- ---------------------- -->
<hr>
<h3>Admin Information</h3>
 
{{#if: {{{permissions|}}}
<!-- Put rune info here for easier access -->
|
<div class="rune-info-line">
<p class="rune-box-header">Permissions</p>
<p><strong>Size</strong></p>
<p>{{{permissions|}}}</p>
<p>{{{size|}}}</p>
}}
</div>
{{#if: {{{disabledrunestxt|}}}  
{{#if: {{{uses|}}}  
|
|
<p class="rune-box-header">Disabled-runes.txt</p>
<div class="rune-info-line">
<p>{{{disabledrunestxt|}}}}}</p>
<p><strong>Uses</strong></p>
            <p class="rune-box-header">Changelog</p>
<p>{{{uses|}}}</p>
        }}
        {{#if: {{{changelog|}}}  
        |
            {{LoadBox|page={{FULLPAGENAMEE}}/Changelog|title=Rune Changelog|float=none}}{{-}}
</div>
</div>
}}
{{#if: {{{energy|}}}
<!-- Display Block -->
|
<div class="rune-display3" style="padding-top:10px;grid-column:2; grid-row:2;">
<div class="rune-info-line">
<div class="display-container3" style="margin-left:auto;margin-right:auto;padding:2px;border-style:solid;border-color:black;">
<p><strong>Energy Cost</strong></p>
<!-- Title Box for Display -->
<p>{{{energy|}}}</p>
<p class="rune-box-title" style="text-align:center">
<b>Rune Info</b>
</p>
<!-- Check for display widget presence... -->
{{#if:{{{disp_widget|}}}
|
<div class="display-container" style="margin:0 auto;">
<div id="bg_box" style="height:fit-content;width:fit-content;padding:5px;background-color:aliceblue;border-color:black;border-style:solid;margin:0 auto"></div>{{{disp_widget|}}}
</div>
|
<div class="rune-display" style="height: fit-content;width: fit-content;margin-left: auto; margin-right:auto; background-color: aliceblue;border-color: black;border-style: solid;">
[[File:Coming_Soon.png]]
</div>
}}
<hr>
<!-- Put rune info here for easier access -->
<div class="rune-info-line">
<p><strong>Size</strong></p>
<p>{{{size|}}}</p>
</div>
<div class="rune-info-line">
<p><strong>Tool</strong></p>
<p>{{{tool|}}}</p>
</div>
{{#if: {{{uses|}}}
|
<div class="rune-info-line">
<p><strong>Uses</strong></p>
<p>{{{uses|}}}</p>
</div>
}}
{{#if: {{{energy|}}}
|
<div class="rune-info-line">
<p><strong>Energy Cost</strong></p>
<p>{{{energy|}}}</p>
</div>
}}
<div class="rune-info-line">
<p><strong>Materials</strong></p>
<p>{{{materials|}}}</p>
</div>
</div>
</div>
</div>
}}
<div class="rune-info-line">
<p><strong>Materials</strong></p>
<p>{{{materials|}}}</p>
</div>
</div>
</div>
</div>
<!-- Display Block Ends-->


<!-- Rune Patterns Start -->
<div class="rune-pattern" style="grid-column: 1 / span 2; grid-row: 3;">
{{#ifeq: {{{pattern_version|}}} | 3
|{{LoadBox|page={{FULLPAGENAME}}/Pattern3|title=Rune Pattern|float=none}}{{-}}
|
}}
{{#ifeq: {{{pattern_version|}}} | 4
|{{LoadBox|page={{FULLPAGENAME}}/Pattern4|title=Rune Pattern|float=none}}{{-}}
|
}}
</div>
<!-- Rune Patterns End -->


<hr style="grid-column: 1 / span 2; grid-row: 4;">


<!-- Admin Info -->
<div style="grid-column: 1 / span 2; grid-row: 5;">
<h3>Admin Information</h3>


{{#if: {{{permissions|}}} |<p class="rune-box-header">'''Permissions'''</p>
{{{permissions|}}}}}


{{#if: {{{disabledrunestxt|}}} |<p class="rune-box-header">'''disabled-runes.txt'''</p>
{{{disabledrunestxt|}}}}}


{{#ifeq: {{{pattern_version|}}} | 3
|{{LoadBox|page={{FULLPAGENAME}}/Changelog3|title=Changelog|float=none}}{{-}}
|
}}
{{#ifeq: {{{pattern_version|}}} | 4
|{{LoadBox|page={{FULLPAGENAME}}/Changelog4|title=Changelog|float=none}}{{-}}
|
}}
</div>
<!-- Admin Info Ends -->


</div>
</includeonly>
</includeonly>
<noinclude>{{Documentation}}</noinclude>
<!-- Template Block Ends -->

Latest revision as of 14:40, 16 September 2024

Modified Version of the currently used Template:RuneBox

You can see an example on the Runes/Beginning/ZRuneBoxExample Page

The point of version is to allow pages to be made quickly just by filling in a few parameters

Parameter Description Example
title Name of the Rune the page is for Initiation
materials The materials/blocks needed to create this rune 20 cobblestone, 1 fire
size The dimensions of the rune 7x7x1
tools The tools required to activate the rune Use with empty hand
uses Whether the rune is one use only or reusable Once
disp_widget Widget that displays 3D render
pattern_version Version of runecraft this is for (3 or 4) 4
effect Description of what this rune does This rune initiates a player into Runecrafting
instructions How to activate the rune After lighting the fire, right click the block under the fire with your hand
videotitle Title of video to add. You can add more videos by appending numbers 2-7 to the end of the parameter name. Runecraft 101: Initiation Rune
video Link to the video of the above. You can add more videos by appending numbers 2-7 to the end of the parameter name. https://www.youtube.com/watch?v=SXNhNgbEwJo
permissions List of permissions for the rune separated by
<br>
with no spaces
-runecraft.runes.initiation
-runecraft.runes.initiation.use
disabledrunestxt name that you need to add to disabledrunes.txt to disable the rune initiation