Difference between revisions of "Template:Template:SiteProfile"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m
sc4e>JoeST
m (removed need for the /name subpage)
Line 1: Line 1:
 
<includeonly>{{Userbox |float=right |border-c=#000000 |border-s=1 |id-c=#FFFFFF |id-s=12 |id-fc=#000 |info-c=#FFFF99 |info-s=8 |info-fc=#FFFFFF |id=[[Image:Wiki_profile.gif]]|info={{#switch: {{lc:{{{site|}}}}}
 
<includeonly>{{Userbox |float=right |border-c=#000000 |border-s=1 |id-c=#FFFFFF |id-s=12 |id-fc=#000 |info-c=#FFFF99 |info-s=8 |info-fc=#FFFFFF |id=[[Image:Wiki_profile.gif]]|info={{#switch: {{lc:{{{site|}}}}}
| sc4d = [http://sc4devotion.com/forums/index.php?action=profile;u={{{id}}} {{Template:SiteProfile/name|name={{{name|}}}}} SC4D Profile]
+
| sc4d = [http://sc4devotion.com/forums/index.php?action=profile;u={{{id}}} {{#if: {{{name|}}}|{{{name}}}'s|My}} SC4D Profile]
| st = [http://www.simtropolis.com/forum/tombstone.cfm?ProfileID={{{id}}} {{Template:SiteProfile/name|name={{{name|}}}}} ST profile]]
+
| st = [http://www.simtropolis.com/forum/tombstone.cfm?ProfileID={{{id}}} {{#if: {{{name|}}}|{{{name}}}'s|My}} ST profile]]
| stex = [http://www.simtropolis.com/stex/index.cfm?page=1&Keyword={{{id}}}&view=all {{Template:SiteProfile/name|name={{{name|}}}}} STEX Downloads]
+
| stex = [http://www.simtropolis.com/stex/index.cfm?page=1&Keyword={{{id}}}&view=all {{#if: {{{name|}}}|{{{name}}}'s|My}} STEX Downloads]
| lex = [http://www.sc4devotion.com/csxlex/lex_search_00.php?pNO=1&sSTATEMENT=USRID='{{{id}}}' {{Template:SiteProfile/name|name={{{name|}}}}} LEX Downloads]
+
| lex = [http://www.sc4devotion.com/csxlex/lex_search_00.php?pNO=1&sSTATEMENT=USRID='{{{id}}}' {{#if: {{{name|}}}|{{{name}}}'s|My}} LEX Downloads]
| peg = [http://simpeg.com/forum/index.php?action=profile;u={{{id}}} {{Template:SiteProfile/name|name={{{name|}}}}} SimPeg Profile]
+
| peg = [http://simpeg.com/forum/index.php?action=profile;u={{{id}}} {{#if: {{{name|}}}|{{{name}}}'s|My}} SimPeg Profile]
| tpp = [http://www.theplanningpages.com/community/member.php?u={{{id}}} {{Template:SiteProfile/name|name={{{name|}}}}}  TPP Profile]
+
| tpp = [http://www.theplanningpages.com/community/member.php?u={{{id}}} {{#if: {{{name|}}}|{{{name}}}'s|My}}  TPP Profile]
| [[User:{{{id}}}|{{Template:SiteProfile/name|name={{{name|}}}}}  Wiki Profile]]}}}}</includeonly><noinclude>This template is designed to be used to provide a link to a particular user's profile page on one of the SimCity fansites. '''Please use instead of static links wherever possible.'''
+
| [[User:{{{id}}}|{{#if: {{{name|}}}|{{{name}}}'s|My}}  Wiki Profile]]}}}}</includeonly><noinclude>This template is designed to be used to provide a link to a particular user's profile page on one of the SimCity fansites. '''Please use instead of static links wherever possible.'''
 
==Syntax==
 
==Syntax==
 
<nowiki>{{SiteProfile|site = |id = | name = }}</nowiki>
 
<nowiki>{{SiteProfile|site = |id = | name = }}</nowiki>
Line 12: Line 12:
 
*id - your user ID (or name if Site = STEX or blank(for your wiki userpage))
 
*id - your user ID (or name if Site = STEX or blank(for your wiki userpage))
 
*name - (optional) can be added if you want your name to replace "My" (for use on pages that are not your userpage)</noinclude>
 
*name - (optional) can be added if you want your name to replace "My" (for use on pages that are not your userpage)</noinclude>
 +
 +
Template:SiteProfile/name code:
 +
<pre>{{#if: {{{name|}}}|{{{name}}}'s|My}}</pre>

Revision as of 04:15, 30 July 2008

This template is designed to be used to provide a link to a particular user's profile page on one of the SimCity fansites. Please use instead of static links wherever possible.

Syntax

{{SiteProfile|site = |id = | name = }}

  • site - the name of the site you are a member of. Can be; sc4d(SimCity 4 Devotion forums), st (Simtropolis forums), stex (Simtropolis Exchange), lex (SimCity 4 Exchange/BSC Exchange), or peg (SimPeg).
  • id - your user ID (or name if Site = STEX or blank(for your wiki userpage))
  • name - (optional) can be added if you want your name to replace "My" (for use on pages that are not your userpage)

Template:SiteProfile/name code:

{{#if: {{{name|}}}|{{{name}}}'s|My}}