• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Rules & Requests Site & Forum Feedback Discovery Wiki
« Previous 1 … 6 7 8 9 10 … 14 Next »
Faction Infobox2

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Pages (2): 1 2 Next »
Faction Infobox2
Offline Gemini893
04-25-2011, 04:03 PM,
#1
Member
Posts: 219
Threads: 19
Joined: Mar 2008

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.)
  • LAWFUL
  • UNLAWFUL
  • QUASI-LEGAL
  • CORPORATION
  • INDEPENDENT
"Type" can be
(This variable is used in this version)
  • NPC - NPC faction
  • GROUP - Unofficial Player Group
  • OFFICIAL - Official Player Faction
  • Leave this variable blank if you wish to use the long Player Group or Player Faction templates.
"Recruitment" can be
(New variable)
  • CLOSED - will display "CLOSED"
  • INVITE - will display "By invitation ONLY" (new)
  • A link - will display "Click to join" linked to the address provided
  • Leave blank - the recruitment line will not appear.
New variables:
  • base2 - for those factions that use a secondary base of operations. Examples: "Public base of operations" or "Forward command post"
  • primaryID
  • secondaryID
  • IFF
  • tag - show off your in game faction tag, this variable should display special characters since it uses the nowiki command.
  • recruitment - link to your recruitment thread! Or tell everyone recruitment is closed!
NOTE: The "Server" variable was removed from this version because this wiki does not host pages for other servers.

[Image: Ocm_siggy.jpg]
  Reply  
Offline Pancakes
04-25-2011, 04:49 PM,
#2
Member
Posts: 3,395
Threads: 151
Joined: Jul 2010

look nice, but in your example, OC and OC guard are considered the same ID and not ID and secondery ID.

[Image: p2SKLap.jpg?1]
BLOOD FOR THE BLOOD GOD
Reply  
Offline Blodo
04-25-2011, 09:40 PM,
#3
No Pilot
Posts: 2,852
Threads: 128
Joined: Jan 2008

I vote we should merge this into the original template and start using it immediately. These changes are quite helpful.
  Reply  
Offline Chrysalis
04-25-2011, 10:13 PM,
#4
Member
Posts: 866
Threads: 82
Joined: Sep 2010

Looks most useful, good job. Already using it on one of my pages. Cheers.

The Commune || My Characters || Recruitment
Reply  
Offline Gemini893
04-26-2011, 04:00 AM,
#5
Member
Posts: 219
Threads: 19
Joined: Mar 2008

' 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.

[Image: Ocm_siggy.jpg]
  Reply  
Offline Blodo
04-26-2011, 09:23 AM, (This post was last modified: 04-26-2011, 09:25 AM by Blodo.)
#6
No Pilot
Posts: 2,852
Threads: 128
Joined: Jan 2008

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 }}
What this does is it evaluates one variable which has a default set to null, then evaluates the second variable which default is also set to null. This is denoted by the pipe in the variable declaration (no text after the pipe means default is null). If both variables are null, then the expression returns false and the #if statement doesn't proceed. Remember, #if always evaluates to true if the string is not empty. So you can put as many variables as you want in it and adjust behaviour accordingly. Hope that helped.
  Reply  
Offline Not Espi
04-26-2011, 09:28 AM,
#7
Member
Posts: 3,830
Threads: 130
Joined: Sep 2009

' 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
Reply  
Offline Gemini893
04-26-2011, 09:22 PM,
#8
Member
Posts: 219
Threads: 19
Joined: Mar 2008

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.

[Image: Ocm_siggy.jpg]
  Reply  
Offline Gemini893
04-26-2011, 11:47 PM,
#9
Member
Posts: 219
Threads: 19
Joined: Mar 2008

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.

[Image: Ocm_siggy.jpg]
  Reply  
Offline Gemini893
07-11-2011, 09:57 PM,
#10
Member
Posts: 219
Threads: 19
Joined: Mar 2008

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:
  1. When NPC is used in the "Type" variable the Secondary ID output will change to display "Guard ID". This is so both the regular and Guard IDs (if there is one for the faction) can be easily linked from the NPC faction pages. If the secondaryID variable is not used then the line will not show, just like before.
  2. Added the option to display the TOC at the bottom, only because someone seemed to like the idea enough to make a separate infobox for it. If the toc variable is not used then the Table of Contents will display, or not display, like normal.
I have started to convert NPC pages on DUSA, here is one that is finished so you can see the results: Liberty Police Incorporated

[Image: Ocm_siggy.jpg]
  Reply  
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode