Template:ZRuneBox: Difference between revisions

From Runecraft Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(44 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 -->
<!-- Title Block -->
<div class="rune-name3" style="grid-column: 1 / span 2; grid-row: 1;">
<div class="rune-name3" style="grid-column: 1; grid-row: 1;">
<h1>{{{title|Rune Title Missing}}}</h1>
<h1>{{{title|Rune Title Missing}}}</h1>
</div>
</div>
<!-- Title Block Ends -->


<!-- Info Block -->
<!-- Info Block -->
Line 22: Line 28:
<p>{{{instructions|}}}</p>
<p>{{{instructions|}}}</p>
}}
}}
{{#if: {{{videotitle|}}}  
{{#if: {{{tools|}}}  
|
|
<p class="rune-box-header">'''Video(s)'''</p>
<p class="rune-box-header">'''Tools'''</p>
[{{{video}}} {{{videotitle|}}}]
<p>{{{tools|}}}</p>
}}
}}


<!-- ---------------------- -->
<!-- Videos -->
<div class="rune-pattern">
{{#if: {{{videotitle|}}} |<p class="rune-box-header">'''Video(s)'''</p>
{{LoadBox|page={{FULLPAGENAME}}/Pattern3|title=Rune Pattern|float=none}}{{-}}
[{{{video}}} {{{videotitle|}}}]}}
</div>
{{#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 -->


<h3>Admin Information</h3>
<div class="mw-collapsible">
<div class="rune-box-content">
{{#if: {{{permissions|}}} |<p class="rune-box-header">'''Permissions'''</p>
{{{permissions|}}}}}
{{#if: {{{disabledrunestxt|}}} |<p class="rune-box-header">'''disabled-runes.txt'''</p>
{{{disabledrunestxt|}}}}}
</div>
</div>
</div>
</div>
<!-- Info Block Ends-->


 
<!-- Display Block Starts-->
<!-- Display Block -->
<div class="rune-display3" style="padding-top:10px;grid-column:2; grid-row:2;">
<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;">
<div class="display-container3" style="margin-left:auto;margin-right:auto;padding:2px;border-style:solid;border-color:black;">
Line 76: Line 81:
<p><strong>Size</strong></p>
<p><strong>Size</strong></p>
<p>{{{size|}}}</p>
<p>{{{size|}}}</p>
</div>
<div class="rune-info-line">
<p><strong>Tool</strong></p>
<p>{{{tool|}}}</p>
</div>
</div>
{{#if: {{{uses|}}}  
{{#if: {{{uses|}}}  
Line 101: Line 102:
</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>
</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