Difference between revisions of "Template:NavigationBox"

From BTAWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
<table>
 
<table>
 
<tr>
 
<tr>
<th colspan="2"><div class="boxtitle">{{{box1title}}}</div></th>
+
<th colspan="2">
 +
<div class="boxtitle">
 +
{{{box1title}}}
 +
{{#if:{{{box1titleimage|}}}|
 +
[[File:{{{box1titleimage}}}|x50px|frameless|center]]
 +
}}
 +
</div>
 +
</th>
 
</tr>
 
</tr>
 
 
 
{{#if:{{{box1link1|}}}|
 
{{#if:{{{box1link1|}}}|
 
<tr>
 
<tr>
<th>{{{box1link1}}}</th>
+
<th>
 +
{{#if:{{{box1link1image|}}}|
 +
[[File:{{{box1link1image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link1}}}
 +
</th>
 
<td>{{{box1description1}}}</td>
 
<td>{{{box1description1}}}</td>
 
</tr>
 
</tr>
Line 15: Line 27:
 
{{#if:{{{box1link2|}}}|
 
{{#if:{{{box1link2|}}}|
 
<tr>
 
<tr>
<th>{{{box1link2}}}</th>
+
<th>
 +
{{#if:{{{box1link2image|}}}|
 +
[[File:{{{box1link2image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link2}}}
 +
</th>
 
<td>{{{box1description2}}}</td>
 
<td>{{{box1description2}}}</td>
 
</tr>
 
</tr>
Line 22: Line 39:
 
{{#if:{{{box1link3|}}}|
 
{{#if:{{{box1link3|}}}|
 
<tr>
 
<tr>
<th>{{{box1link3}}}</th>
+
<th>
 +
{{#if:{{{box1link3image|}}}|
 +
[[File:{{{box1link3image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link3}}}
 +
</th>
 
<td>{{{box1description3}}}</td>
 
<td>{{{box1description3}}}</td>
 
</tr>
 
</tr>
Line 29: Line 51:
 
{{#if:{{{box1link4|}}}|
 
{{#if:{{{box1link4|}}}|
 
<tr>
 
<tr>
<th>{{{box1link4}}}</th>
+
<th>
 +
{{#if:{{{box1link4image|}}}|
 +
[[File:{{{box1link4image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link4}}}
 +
</th>
 
<td>{{{box1description4}}}</td>
 
<td>{{{box1description4}}}</td>
 
</tr>
 
</tr>
Line 36: Line 63:
 
{{#if:{{{box1link5|}}}|
 
{{#if:{{{box1link5|}}}|
 
<tr>
 
<tr>
<th>{{{box1link5}}}</th>
+
<th>
 +
{{#if:{{{box1link5image|}}}|
 +
[[File:{{{box1link5image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link5}}}
 +
</th>
 
<td>{{{box1description5}}}</td>
 
<td>{{{box1description5}}}</td>
 
</tr>
 
</tr>
Line 43: Line 75:
 
{{#if:{{{box1link6|}}}|
 
{{#if:{{{box1link6|}}}|
 
<tr>
 
<tr>
<th>{{{box1link6}}}</th>
+
<th>
 +
{{#if:{{{box1link6image|}}}|
 +
[[File:{{{box1link6image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link6}}}
 +
</th>
 
<td>{{{box1description6}}}</td>
 
<td>{{{box1description6}}}</td>
 
</tr>
 
</tr>
Line 50: Line 87:
 
{{#if:{{{box1link7|}}}|
 
{{#if:{{{box1link7|}}}|
 
<tr>
 
<tr>
<th>{{{box1link7}}}</th>
+
<th>
 +
{{#if:{{{box1link7image|}}}|
 +
[[File:{{{box1link7image}}}|x25px|frameless|center]]
 +
}}
 +
{{{box1link7}}}
 +
</th>
 
<td>{{{box1description7}}}</td>
 
<td>{{{box1description7}}}</td>
 
</tr>
 
</tr>
Line 236: Line 278:
 
</div>
 
</div>
 
}}
 
}}
<noinclude>Basic template to create Navigation Boxes primarily used for the "site map" on the Main Page. It creates up to 3 boxes of 33% width that house up to 10 links and descriptions each. Example below. As with other Templates I have created if you do not specify a value for a variable it will not be shown.
+
<noinclude>Basic template to create Navigation Boxes primarily used for the "site map" on the Main Page. It creates up to 3 boxes of 33% width that house up to 10 links and descriptions each. Example below on how to define the variables when using the template.
 +
 
 +
Please note that due to the background coloring in the cells you will want to copy the styling for the links manually into each link or they may be difficult to read.
 +
 
 +
As with other Templates I have created if you do not specify a value for a variable it will not be shown.
 
<pre>
 
<pre>
 
{{NavigationBox
 
{{NavigationBox
Line 243: Line 289:
 
|box3 = yes (delete all data for this if you want it to not be there)
 
|box3 = yes (delete all data for this if you want it to not be there)
 
|box1title = Installation & Tech Support
 
|box1title = Installation & Tech Support
 +
|box1titleimage = .png
 
|box1link1 = [https://www.nexusmods.com/battletech/mods/452 <span style="color:#eeeeee;">BTA3062 Installer Download</span>]
 
|box1link1 = [https://www.nexusmods.com/battletech/mods/452 <span style="color:#eeeeee;">BTA3062 Installer Download</span>]
 +
|box1link1image = .png
 
|box1description1 = Download the installer for BTA3062 hosted on NexusMods. The installer can also install updates when they come out.
 
|box1description1 = Download the installer for BTA3062 hosted on NexusMods. The installer can also install updates when they come out.
|box1link2 = [https://www.youtube.com/watch?v=cvkJpD11lHU <span style="color:#eeeeee;">BTA3062 Installation Video</span>]
+
|box1link2 = [https://www.youtube.com/watch?v=cvkJpD11lHU <span style="color:#eeeeee;">Installation Video</span>]
 
|box1description2 = YouTube video created by MangaMaD that explains installation and configuration of BTA3062.
 
|box1description2 = YouTube video created by MangaMaD that explains installation and configuration of BTA3062.
 
|box1link3 = [https://www.bta3062.com/index.php/Frequently_Asked_Questions <span style="color:#eeeeee;">Frequently Asked Questions</span>]
 
|box1link3 = [https://www.bta3062.com/index.php/Frequently_Asked_Questions <span style="color:#eeeeee;">Frequently Asked Questions</span>]

Revision as of 22:40, 13 January 2021


Basic template to create Navigation Boxes primarily used for the "site map" on the Main Page. It creates up to 3 boxes of 33% width that house up to 10 links and descriptions each. Example below on how to define the variables when using the template.

Please note that due to the background coloring in the cells you will want to copy the styling for the links manually into each link or they may be difficult to read.

As with other Templates I have created if you do not specify a value for a variable it will not be shown.

{{NavigationBox
|box1 = yes (delete all data for this if you want it to not be there)
|box2 = yes (delete all data for this if you want it to not be there)
|box3 = yes (delete all data for this if you want it to not be there)
|box1title = Installation & Tech Support
|box1titleimage = .png
|box1link1 = [https://www.nexusmods.com/battletech/mods/452 <span style="color:#eeeeee;">BTA3062 Installer Download</span>]
|box1link1image = .png
|box1description1 = Download the installer for BTA3062 hosted on NexusMods. The installer can also install updates when they come out.
|box1link2 = [https://www.youtube.com/watch?v=cvkJpD11lHU <span style="color:#eeeeee;">Installation Video</span>]
|box1description2 = YouTube video created by MangaMaD that explains installation and configuration of BTA3062.
|box1link3 = [https://www.bta3062.com/index.php/Frequently_Asked_Questions <span style="color:#eeeeee;">Frequently Asked Questions</span>]
|box1description3 = Answers to common questions including installation, how to get help, game mechanics, and more.
|box1link4 =
|box1description4 = 
|box1link5 =
|box1description5 = 
|box1link6 =
|box1description6 = 
|box1link7 =
|box1description7 = 
|box1link8 =
|box1description8 = 
|box1link9 =
|box1description9 = 
|box1link10 =
|box1description10 = 
|box2title = BTA3062 Community
|box2link1 = [https://discord.com/invite/g5nCYAV <span style="color:#eeeeee;">BTA Discord</span>]
|box2description1 = The official BTA [https://discord.com Discord] server. Chat with the developers, fellow players, and get technical support.
|box3title = Game Information
|box3link1 = [https://www.bta3062.com/index.php/Feature_List <span style="color:#eeeeee;">BTA3062 Feature List</span>]
|box3description1 = BTA3062's feature set. All of the things that make BTA3062 an amazing mod!
|box3link2 = [https://www.bta3062.com/index.php/Full_List_of_Mechs <span style="color:#eeeeee;">BattleMech List</span>]
|box3description2 = A full list of all of the 'Mech chassis and variants in BTA3062, click 'Mech names to view detailed technical information.
|box3link3 = [https://www.bta3062.com/index.php/Weapons <span style="color:#eeeeee;">Weapons List</span>]
|box3description3 = A full list of all of the Weapons available in BTA3062 with detailed technical information
|box3link4 = [https://www.bta3062.com/index.php/Ammunition <span style="color:#eeeeee;">Ammunition List</span>]
|box3description4 = A complete list of ammo types available in BTA3062. Many weapons have specialty ammo to fit your specific need.
}}