Personal tools
     DOCUMENTATION

Help:User Page Templates

From rPath Wiki

Jump to: navigation, search
rPath Wiki Template

Name

{{User Page/formatter}}

Purpose

Your rPath Wiki user page is equivalent to a home page, where you can enter details about yourself, your projects, maintain a listing of bookmarks, and share information with others. The user page location takes the form of User:<username>, where username is your rPath Wiki user name. (see a list of rPath Wiki users)

You can create a formatted and stylized rPath Wiki user page that contains several sections for news, notes, and projects that can be used to share information with others, plus a 'browsebox' where you can place many of your favorite rPath Wiki links for quick reference.

The page is created by replacing your current user page content with a single reference to a template and that template's parameters. Saving the new user page results in references to several additional templates, which you can complete in any order by copying and pasting code you have modified from the example templates.

An example user page and templates you can modify and use to build your user page are available on the John Q. Public user page. Provided you are logged into the rPath Wiki, you can click the edit tab on the page and scroll to the bottom to see the template listing.

A page formatted in this manner is comprised of approximately 12 templates:

  • User:JohnQPublic/Browsebox
  • User:JohnQPublic/My Details
  • User:JohnQPublic/News
  • User:JohnQPublic/News/formatter
  • User:JohnQPublic/Notepad
  • User:JohnQPublic/Notepad/formatter
  • User:JohnQPublic/Projects
  • User:JohnQPublic/Projects/formatter
  • User:JohnQPublic/Welcome
  • User:JohnQPublic/Welcome/formatter
  • User:JohnQPublic:My Details/formatter
  • User:JohnQPublic:User Page/formatter

Notice that almost all pages have a page name and a formatter? For example, the News section is comprised of User:JohnQPublic/News and User:JohnQPublic/News/formatter. The News template holds the news section's content, while the News/formatter controls the section's presentation. The Browsebox template is an exception, as both content and formatting are contained in that template.

Parameters

  • username : You must pass your rPath Wiki username in to the initial template as a parameter to create a unique instance of the template. See the usage example for syntax.

Usage

To begin the user page formatting process, you may wish to save a copy of your current user page wikitext. You can also visit the history of the page later to retrieve previous content. Edit your user page, and place this reference to the user formatter template in as the sole content of the page:


{{User:<username>:User Page/formatter|<username>}}

Replace the two instances of <username> in the example with your actual user name, and save the page with the Save page button. Click the link which results and paste in the User Page/formatter template page content from the JohnQPublic example. Save this page to continue.

Your user page will now consist of several red template links, indicating template pages which do not yet exist. You will now need to populate each of these template pages with modified versions of the content pages and verbatim copies of the formatter pages from the JohnQPublic page.

To populate your user page templates with content, open each JohnQPublic template, copy the template's content, paste it into the appropriate template on your own user page, and edit the content as necessary. Pasting the formatters allows you to make style changes to the sections as well.

Image:Bulbgraph.png   You could also reference another user's formatter templates to adopt the user's stylistic changes, though you probably should not change the templates without making the user aware beforehand.

Once you have finished creating the template pages, your user page should now resemble the JohnQPublic user page in terms of formatting and layout.

Example Output

After adding the User Page/formatter link and saving the user page
Enlarge
After adding the User Page/formatter link and saving the user page

The image above depicts the user page after addition of the initial User Page/formatter link.


After saving the User Page/formatter template
Enlarge
After saving the User Page/formatter template

The image above depicts the user page after adding the User Page/formatter link. You should now click each red template, add the corresponding example code, and modify it for your needs before saving the template, and moving on to the next template.

The end result appears after completing all templates:


:-)
Hello. I'm John.

I'm not so sure about those laser pointer thingies.

Info icon
News

News Flash! Something Just Fell Out of My Ear!

Film at 11:00

News Item

Something newsworthy appears!

Lightbulb
Projects
  • A Project
  • Another Project
    • A sub-project of another project
  • A third project from the sun
  • An astral projection
My Details
NameJohn Q Public
IRCjqp
RoleIntern
TeamR&D
EtcBlue Jello is my favorite Pizza topping!
WWWwww.rpath.com
Notepad
My Notepad

Notes

  • Do not re-use another user's templates by reference only, and modify them without the user's consent. Make copies of the templates instead.