Difference between revisions of "Template:NavigationBox"

From BTAWiki
Jump to navigation Jump to search
Line 8: Line 8:
 
{{#if:{{{box1link1|}}}|
 
{{#if:{{{box1link1|}}}|
 
<tr>
 
<tr>
<th><a href="{{{box1link1url}}}">{{{box1link1text}}}</a></th>
+
<th><a href={{{box1link1url}}}>{{{box1link1text}}}</a></th>
 
<td>{{{box1description1}}}</td>
 
<td>{{{box1description1}}}</td>
 
</tr>
 
</tr>
Line 15: Line 15:
 
{{#if:{{{box1link2|}}}|
 
{{#if:{{{box1link2|}}}|
 
<tr>
 
<tr>
<th><a href="{{{box1link2url}}}">{{{box1link2text}}}</a></th>
+
<th><a href={{{box1link2url}}}>{{{box1link2text}}}</a></th>
 
<td>{{{box1description2}}}</td>
 
<td>{{{box1description2}}}</td>
 
</tr>
 
</tr>
Line 107: Line 107:
 
|box1link10 =
 
|box1link10 =
 
|box1description10 =  
 
|box1description10 =  
 
[https://www.bta3062.com/index.php/Full_List_of_Mechs 'Mech List]
 
 
}}
 
}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 22:19, 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. 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
|box1link1url = https://www.nexusmods.com/battletech/mods/452
|box1link1text = BTA3062 Installer Download
|box1description1 = Download the installer for BTA3062 hosted on NexusMods
|box1link2url = https://www.youtube.com/watch?v=cvkJpD11lHU
|box1link2text = BTA3062 Installation Video
|box1description2 = YouTube video by MangaMaD that explains installation and configuration of BTA3062
|box1link3 = 
|box1description3 = 
|box1link4 =
|box1description4 = 
|box1link5 =
|box1description5 = 
|box1link6 =
|box1description6 = 
|box1link7 =
|box1description7 = 
|box1link8 =
|box1description8 = 
|box1link9 =
|box1description9 = 
|box1link10 =
|box1description10 = 
}}