Heroes of the Storm Forums

New Template: Guide Table of Contents

Please review our General Rules & Guidelines before posting or commenting anywhere on HeroesFire.
Quote | PM | +Rep by Mowen » December 3, 2014 2:19pm | Report
1. Welcome to the Jungle
1.1 goto and anchor
1.2 Are You Ready?
1.3 I'm Ready Just Show Me The Template!

I'm back with a snazzy new template that should make guide author's lives a LOT easier, at least if they want to make a nice looking Table of Contents for their guide. :)


[goto] and [anchor]

First, I am going to explain to you how [goto] and [anchor] works.

[goto] makes the clickable link that will direct you to the matching [anchor] tag.

So, if you want your chapter "Introduction" to be linked in your table of contents, you would need to make a [goto=Introduction]Text goes here...[/goto] link, similar to a [url] link. Now, this link will take you to the closest anchor tag with a matching name. So, you would put [anchor=Introduction] at the start of your Introduction chapter.

NOW YOU MAY FORGET EVERYTHING BUT THE ANCHOR LINK!

My template will automatically make a goto link for your table of contents chapters with the same name as you put for the chapter. So, above if my chapter name is "Are You Ready?" then the anchor will have to be [anchor=Are You Ready?]. Beware it IS case sensitive!

I've gone ahead and attached a [anchor=Are You Ready?] anchor to the box below. Go ahead, try clicking on the "So I herd..." chapter in the table of contents at the top!


Are You Ready?


How To Use the Template

The template requires input for every big chapter / chapter you want. It has a simple naming convention, just remember:
  • template="Guide Table of Contents"
  • big-chapter-x="Big chapter title here"
  • chapter-x-y="chapter title here"
Just repeat for every big chapter and subchapter you want. Numbers only go up to 9 for both big and little chapters. So, if you want big chapter 1 to be "Introduction" and chapter 1.1 to be "Who am I?" you would write...

[template="Guide Table of Contents" big-chapter-1="Introduction" chapter-1-1="Who am I?"]

which would make...

1. Introduction
1.1 Who am I?


As your table of contents gets longer it will become a pretty long string of code, however, let me promise you this is 1000 times easier than writing the actual table of contents code every time. Let me show you an example from a guide I recently coded:


"Hand-written" ToC

1. Introduction
1.1 Why Mecha Wonder Woman?

2. Amplifiers
2.1 Mods
2.2 Augments

3. Abilities

4. Stolen Powers

5. Items
5.1 Starting Items
5.2 Core Items
5.3 Late Game Items
5.4 Optional Items
5.5 Item Build Order
5.6 Complete Build

6. Gameplay
6.1 Early Game
6.2 Mid Game
6.3 Late Game
6.4 Kiting and how to play teamfights correctly

7. The End

CODE
Template ToC

1. Introduction
1.1 Why Mecha Wonder Woman?

2. Amplifiers
2.1 Mods
2.2 Augments

3. Abilities

4. Stolen Powers

5. Items
5.1 Starting Items
5.2 Core Items
5.3 Late Game Items
5.4 Optional Items
5.5 Item Build Order
5.6 Complete Build

6. Gameplay
6.1 Early Game
6.2 Mid Game
6.3 Late Game
6.4 Kiting and how to play teamfights correctly

7. The End

CODE


That being said, this also served as a tutorial on how to make table of contents yourself. So, if you feel like making your own custom one, knock yourself out. Personally, I will be sticking to the template from now on! >:D

After you make your table of contents you just have to put the anchor links (read above) in the proper places throughout your guide. The anchor name will be the same as the chapter name!

I hope you guys enjoy this template, I thought it would make your lives a lot easier! :)

If you have any questions just post them below. I know this one is more complicated than the last so, I'll be here to help you out!

Awards Showcase
Show more awards
Mowen
<Community Manager>
Memorable (51)
Posts: 617
Quote | PM | +Rep by Crs Grim » December 3, 2014 3:21pm | Report
thanks man! this really helps:)

Grim is a top rank Heroes player and guide creator. He has over 5600games played with Tassadar. So you can be sure you are getting quality content and info. Today, he is currently a free-agent looking for a pro team. Before he was a former member of TeamCurse Gaming and ZDK gaming.

Feel free to check out the guide:

Awards Showcase
Show more awards
Crs Grim
Remarkable (33)
Posts: 420
BattleTag:
twitch.tv/cozybison
Quote | PM | +Rep by Severage » December 3, 2014 3:24pm | Report
Sick, a ToC! I'll definitely be using this.

Thanks mate.

Awards Showcase
Show more awards
Severage
<Beta Tester>
Remarkable (29)
Posts: 276
Quote | PM | +Rep by Mowen » December 3, 2014 4:51pm | Report
I look forward to seeing it in your guides! ^_^

Awards Showcase
Show more awards
Mowen
<Community Manager>
Memorable (51)
Posts: 617
Quote | PM | +Rep by Severage » December 3, 2014 10:01pm | Report
Epic nice, added it to my guide and this was really streamlined from the original code. Just looking at it hurts my head.

Thanks for including the original code by the way, the "goto" tags are great for non-Tabled quick-links!

Awards Showcase
Show more awards
Severage
<Beta Tester>
Remarkable (29)
Posts: 276
Quote | PM | +Rep by Mowen » December 4, 2014 12:23pm | Report
Yeah, I know what you mean, they even give me headaches haha.

Your guide is looking great! ^_^

Awards Showcase
Show more awards
Mowen
<Community Manager>
Memorable (51)
Posts: 617

Quick Reply

Please log in or sign up to post!

HeroesFire is the place to find the perfect build guide to take your game to the next level. Learn how to play a new hero, or fine tune your favorite HotS hero’s build and strategy.

Copyright © 2019 HeroesFire | All Rights Reserved