Template talk:PersonProfile

From The Urban Dead Wiki
Jump to navigationJump to search

The PersonProfile Template Page

Some Character
Some Image
Nickname: Some Nickname
Group Affiliation: Some Group
Class: Some Class
Level: Some Level
Last Known Location: Some Suburb
Player: Some Player's Name
UrbanDead Profile: Link to UrbanDead Profile

Usage Guide

Usage

In order to place the PersonProfile on your player or character's page, copy the following into your page where you wish the profile to appear. Edit the text to your liking, which appears green here but not in the regular appearance, and presto. Blank image entries do not appear (see example). Some wrapping of subsequent text may occur around the box so you'll have to play around with your layout a bit. The code:

{{PersonProfile|
person_name=YOUR CHARACTER'S NAME|
person_image=A LINK TO AN IMAGE OF YOUR CHARACTER(optional)|
person_nick=YOUR CHARACTER'S NICKNAME|
person_group=YOUR CHARACTER'S GROUP AFFLIATION|
person_class=YOUR CHARACTER'S CLASS|
person_level=YOUR CHARACTER"S LEVEL|
person_suburb=SUBURB YOUR CHARACTER LIKES TO HANG IN|
person_player=YOUR PLAYER NAME|
person_UDlink=LINK TO YOUR URBANDEAD PROFILE|
}}

Entry Coloring

You can color text by using the following snippet:
<span style="color:green">YOUR PLAYER NAME</span>
which becomes -->YOUR PLAYER NAME
or
<font color=green, face=Courier New>YOUR PLAYER NAME</font>
which becomes -->YOUR PLAYER NAME

There are other (some better) ways of doing this if you want to learn more HTML and CSS. See the Wikimedia HTML help page

Note: Apparently font color=green and style color:green are not the quite the same green, in Firefox 1.5 at least.

Shifting Box Position

You can also shift the alignment of the profile box right or center by using div tags around the profile code. New text will begin below the box if you use the align property. See the last example below for a way to get text to wrap instead. (see Examples)...
<div align=center> PersonProfile code goes here </div>

Links as Entries

Also entries can be links to other pages. See Help: Contents#To edit a page. Basically edit a page and the editing toolbar can help you.

To see how to link to your UrbanDead ingame profile page, see the first example below.

Examples

For example following code inserted into your page...

{{PersonProfile|
person_name=Joe Blow|
person_image=|
person_nick=susan|
person_group=Joe's Hammerheads|
person_class=<font color=green, face=Courier New>Military: Private</font>|
person_level=2|
person_suburb=[[Ridleybank]]|
person_player=RealJoeyB|
person_UDlink=[http://www.urbandead.com/profile.cgi?id=###### Joe's UD Profile]|
}}

###### is your UrbanDead profile's id number. Look for it in the address bar when you visit your ingame profile page.
Would appear as...

Joe Blow
Nickname: susan
Group Affiliation: Joe's Hammerheads
Class: Military: Private
Level: 2
Last Known Location: Ridleybank
Player: RealJoeyB
UrbanDead Profile: Joe's UD Profile

Using the <div align="right"></div> tags around the code gets you:

Joe Blow
Nickname: susan
Group Affiliation: Joe's Hammerheads
Class: Military: Private
Level: 2
Last Known Location: Ridleybank
Player: RealJoeyB
UrbanDead Profile: Joe's UD Profile

New text appears below sections using div tags with the align property. To get text to wrap around the box instead, use this version around the code:

<div style="float: right;"></div> ... which gets you -->

Joe Blow
Nickname: susan
Group Affiliation: Joe's Hammerheads
Class: Military: Private
Level: 2
Last Known Location: Ridleybank
Player: RealJoeyB
UrbanDead Profile: Joe's UD Profile

This text now appears to the left of the box instead of below it. It will wrap along happily. You can use left or right for float. For more info on using float see the HTML standards page for Float.

To stop text from wrapping use this snippet where the property matches where you floated the box. That style clear attribute can also be used in other tags besides br.

<br style="clear: right;">

Discussion

This is under development by Githianki. The template layout is pretty much done, but the categories/properties might change. The goal is to have something for players to use on RP pages like the journal pages. It is based on the groupbox template with modifications to allow easier page alignment without messing up the internal formatting of the tables. See Template:Groupbox, Template talk:Groupbox, and Groups -Githianki 16:51, 19 Dec 2005 (GMT)