![]() |
|
Faction Infobox2 - Printable Version +- Discovery Gaming Community (https://discoverygc.com/forums) +-- Forum: Rules & Requests (https://discoverygc.com/forums/forumdisplay.php?fid=6) +--- Forum: Site & Forum Feedback (https://discoverygc.com/forums/forumdisplay.php?fid=14) +---- Forum: Discovery Wiki (https://discoverygc.com/forums/forumdisplay.php?fid=40) +---- Thread: Faction Infobox2 (/showthread.php?tid=58996) Pages:
1
2
|
Faction Infobox2 - Gemini893 - 04-25-2011 I used the original faction infobox template and expanded it to make faction infobox2. Since the original code was not mine I am not claiming full credit for this template. However, I felt it was time for certain changes to the template and I will highlight those changes here. Variables: "Alignment" can be one of these: (this variable has not changed.)
(This variable is used in this version)
(New variable)
Faction Infobox2 - Pancakes - 04-25-2011 look nice, but in your example, OC and OC guard are considered the same ID and not ID and secondery ID. Faction Infobox2 - Blodo - 04-25-2011 I vote we should merge this into the original template and start using it immediately. These changes are quite helpful. Faction Infobox2 - Chrysalis - 04-25-2011 Looks most useful, good job. Already using it on one of my pages. Cheers. Faction Infobox2 - Gemini893 - 04-26-2011 ' Wrote:look nice, but in your example, OC and OC guard are considered the same ID and not ID and secondery ID. Yes, that is true, but I put it in the example to show how it looks. I'd actually like Blodo to change example 2 to reflect a faction on this server so it looks more relevant. The code I'm still trying to work out is making the Identification and Primary ID lines hide when no variables in that section are used. I know I'm close to figuring it out but it's been a challenge. Faction Infobox2 - Blodo - 04-26-2011 I added a second example based on a GC server faction to the test page. We can later amend the template with it if we need to once everything is done. As for hiding the whole Identification section, basically what you will need to do is wrap the whole thing up in an #if statement, the start of which should probably look roughly like this: Code: {{#if: {{{primaryID|}}}{{{IFF|}}} | your code }}Faction Infobox2 - Not Espi - 04-26-2011 ' Wrote:look nice, but in your example, OC and OC guard are considered the same ID and not ID and secondery ID. with the 86 release in mind, probably, guard id's are obsolete Faction Infobox2 - Gemini893 - 04-26-2011 Blodo, you are GENIUS!!! Special thanks to you for helping me finish this template! I think this is finally finished, it does everything I wanted it to do. Faction Infobox2 - Gemini893 - 04-26-2011 I did do one more update, and I think I'm finally calling this template finished. "Origin" can be: Use a House Link. example: "{{House Link | Rheinland}}" shows: (flag) Rheinland Just use the house name. example: "Rheinland" shows: (flag) Federal Republic of Rheinland In other words, if you enter the name of your house then the template will default to the long version of the house name just like using {{House Link | Rheinland | long}}. If you want to display the short version of the house name, continue using the ordinary House Link template on the origin line. The template will also auto correct simple typos like using "Nomad" instead of "Nomads" while setting it into the long house link template. Faction Infobox2 - Gemini893 - 07-11-2011 I have found that one more update is warranted due to changes I'm making on the DUSA wiki. If the GC wiki team wishes to do similar changes I can import the new version. New changes:
|