- 11,066
- 13,825
The New Template
So you're surfing the wiki and stumbled upon a page, say Dragon Ball, and you want to view all the discussion threads related to it. Long ago, this was conveniently possible when we still had our old forum and threads. Then everything changed when the UCP happened. And when we needed it most, the "Discussions" part that was found on the bottom of the page, vanished. A month or so passed and Amelia and I discovered a new template.
Well, mostly Amelia, she made this cool template out of scratch and my contribution was just limited to making a couple changes and applying it to all the verse pages, so all credit goes to her. You can see that on the above linked verse page:
When you click the link, you will be taken here: https://vsbattles.com/tags/vsbattles-Dragon_Ball/
Since searching for tags can be a little bit inconvenient and majority of the people were missing the old way of doing it, this new template will provide our normal visitors easy access to the discussion threads regarding any particular verse or character.
How It Works
1. For pages that have a simple title without any special characters like parenthesis, colon, apostrophe, period etc. all we have to do is add a line of code at the bottom of the page:
This is because the tag link of such a page is similar to the title of the page. For example, the tag link of the page Ben 10 contains the same alphabets as the title of the page: https://vsbattles.com/tags/vsbattles-Ben_10/
2. For pages that contain special characters like (, ), ', :, %, ., !, etc., we have to do a bit more though, because the tag links change these special characters to something else.
For example, Naruto (The Universe) contains ( ) and adding the simple
Notice that the parentheses are ignored/omitted in the URL so we need to modify our code to match that:
Another example would be 100% Orange Juice. The tag URL for it is: https://vsbattles.com/tags/vsbattles-10025_Orange_Juice/
Notice how the "%" symbol in the verse page has been converted to "25" in the URL, so the code for it would be:
The Next Step
1. Like I stated earlier, that I added the template to all verse pages, but I used my bot and only added the simple
For this we need volunteers so that once we have enough, the verses can be divided among them. For example, I could handle the verses starting with A and B, and so on.
2. We also need to add the template gradually to character pages starting with the most popular and important characters.
3. This will be a standard practice going forward so we need to include this in our Standard Format for Verse Pages and Standard Format for Character Profiles.
Help from all our members is needed and will be very appreciated.
Volunteers: AKM sama, Mr. Bambu, Celestial Pegasus, Colonel Krukov, Starter Pack, Duedate8898, Sir Ovens, Elizhaa, Tllmbrg
So you're surfing the wiki and stumbled upon a page, say Dragon Ball, and you want to view all the discussion threads related to it. Long ago, this was conveniently possible when we still had our old forum and threads. Then everything changed when the UCP happened. And when we needed it most, the "Discussions" part that was found on the bottom of the page, vanished. A month or so passed and Amelia and I discovered a new template.
Well, mostly Amelia, she made this cool template out of scratch and my contribution was just limited to making a couple changes and applying it to all the verse pages, so all credit goes to her. You can see that on the above linked verse page:
When you click the link, you will be taken here: https://vsbattles.com/tags/vsbattles-Dragon_Ball/
Since searching for tags can be a little bit inconvenient and majority of the people were missing the old way of doing it, this new template will provide our normal visitors easy access to the discussion threads regarding any particular verse or character.
How It Works
1. For pages that have a simple title without any special characters like parenthesis, colon, apostrophe, period etc. all we have to do is add a line of code at the bottom of the page:
{{discussions}}
This is because the tag link of such a page is similar to the title of the page. For example, the tag link of the page Ben 10 contains the same alphabets as the title of the page: https://vsbattles.com/tags/vsbattles-Ben_10/
2. For pages that contain special characters like (, ), ', :, %, ., !, etc., we have to do a bit more though, because the tag links change these special characters to something else.
For example, Naruto (The Universe) contains ( ) and adding the simple
{{discussions}}
template will take you to a broken link. For such pages, you need to search the relevant tags from here and check the tag URL for that page, which in this case is: https://vsbattles.com/tags/vsbattles-Naruto_The_Universe/Notice that the parentheses are ignored/omitted in the URL so we need to modify our code to match that:
{{discussions|the text as written in the URL|the text that is to be displayed}}
Another example would be 100% Orange Juice. The tag URL for it is: https://vsbattles.com/tags/vsbattles-10025_Orange_Juice/
Notice how the "%" symbol in the verse page has been converted to "25" in the URL, so the code for it would be:
The Next Step
1. Like I stated earlier, that I added the template to all verse pages, but I used my bot and only added the simple
{{discussions}}
template to all verse pages. So for many verse pages that contain any kind of special character i.e. anything other than alphabets, numbers and spaces, their discussions template will have to be modified after checking the tag URLs accordingly.For this we need volunteers so that once we have enough, the verses can be divided among them. For example, I could handle the verses starting with A and B, and so on.
2. We also need to add the template gradually to character pages starting with the most popular and important characters.
3. This will be a standard practice going forward so we need to include this in our Standard Format for Verse Pages and Standard Format for Character Profiles.
Help from all our members is needed and will be very appreciated.
Volunteers: AKM sama, Mr. Bambu, Celestial Pegasus, Colonel Krukov, Starter Pack, Duedate8898, Sir Ovens, Elizhaa, Tllmbrg
Attachments
Last edited: