Difference between revisions of "Template:MFGGer"

From Mario Fan Games Galaxy Wiki
(Undo revision 28845 by Kyori (Talk))
Line 1: Line 1:
{{#vardefine: show | true}}{{#if: {{{forumid|}}}| {{#ifeq: {{#forumite:63}} | err01 | {{{!}} class="nicetable infoboxBordered" style="width: 170px; float: right; font-size: 90%; text-align: left; margin:3px;" cellpadding="1"  
+
{| class="nicetable infoboxBordered" style="width: 170px; float: right; font-size: 90%; text-align: left; margin:3px;" cellpadding="1"  
! class="ibheader" colspan="2" {{!}} Please wait for the cache to update itself.
+
! class="ibheader" colspan="2" | {{{flag|<includeonly>[[Category:Members that need flags]]</includeonly>}}}  {{{name|{{PAGENAME}}}}}
 +
|-
 +
| colspan='2' style='text-align: center; font-size: 90%;' | {{{image|[[Image:forum_default.png]]}}}<br />{{{caption|}}}
 +
|-
 +
{{#if: {{{primarygroup|}}} |
 +
! colspan="2" align="center" {{!}} {{MemberType|{{{primarygroup}}}}}
 
{{!}}-
 
{{!}}-
{{!}}} {{#vardefine: show | false }} | }} | }}
+
|
{{#ifeq: {{#var: show}} | true | {{{!}} class="infoboxBordered" style="width: 170px; float: right; font-size: 90%; text-align: left; margin:3px;" cellpadding="1"
+
{{#if: {{{forumid|}}} |
! class="ibheader" colspan="2" {{!}}{{#if: {{{forumid|}}}| [[Image:Flag_{{#field:flag}}.gif]] | {{{flag|<includeonly>[[Category:Members that need flags]]</includeonly>}}} }} {{#if: {{{forumid|}}}| {{#field:name}} | {{{name|{{PAGENAME}}}}}}}
+
! colspan="2" align="center" {{!}} {{#groups:{{{forumid}}}|{{Grouporder}}|FIRSTONLY}}
{{!}}-
 
{{!}} colspan='2' style='text-align: center; font-size: 90%;' {{!}} {{{image|[[Image:forum_default.png]]}}}<br />{{{caption|}}}
 
{{!}}-
 
{{#if: {{{rank|}}}| |{{#if: {{{forumid|}}}|
 
! colspan="2" align="center" {{!}} {{MemberType|{{#field:rank}}}}
 
 
{{!}}-
 
{{!}}-
 
|  
 
|  
! colspan="2" align="center" {{!}} {{MemberType|{{{rank|Member}}}}}
+
! colspan="2" align="center" {{!}} {{MemberType|Member}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
}}
 
}}
 
{{#if: {{{badges|}}} |
 
{{#if: {{{badges|}}} |
! style="vertical-align: top;" colspan="2"{{!}}<table width="144px" align="center"><tr><td align="left">{{{badges}}}</td></tr></table>  
+
! style="vertical-align: top;" colspan="2"{{!}}<table width="148px" align="center"><tr><td align="left">{{{badges}}}</td></tr></table>  
 
{{!}}-  
 
{{!}}-  
 
|
 
|
 
{{#if: {{{forumid|}}} |  
 
{{#if: {{{forumid|}}} |  
! style="vertical-align: top;" colspan="2"{{!}}<table width="144px" align="center"><tr><td align="left">{{#field:badges|{{dd}}Badge{{!}}|{{!}}auto=true{{bb}}|{{!}}}}</td></tr></table>  
+
! style="vertical-align: top;" colspan="2"{{!}}<table width="148px" align="center"><tr><td align="left">{{#badges:{{{forumid}}}|{{Groupbadges}}|{{Badgeorder}}}}</td></tr></table>  
 
{{!}}-  
 
{{!}}-  
 
| }}
 
| }}
Line 31: Line 31:
 
{{!}}-
 
{{!}}-
 
|
 
|
{{#if: {{{forumid|}}} |{{#if: {{#field:groups|[[|]]}} |
+
{{#if: {{{forumid|}}} |{{#if: {{#groups:{{{forumid}}}|{{Grouporder}}|ALLBUTFIRST}} |
 
! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Other groups
 
! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Other groups
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" align="center" {{!}} {{#field:groups|{{dd}}MemberType{{!}}|{{bb}}}}
+
{{!}} colspan="2" align="center" {{!}} {{#groups:{{{forumid}}}|{{Grouporder}}|ALLBUTFIRST}}
 
{{!}}-
 
{{!}}-
 
| }}| }}
 
| }}| }}
 
}}
 
}}
{{#if: {{{former|}}} |! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Former groups
+
{{#if: {{{former|}}} |!   colspan="2" style="font-size: 100%;" {{!}} Former groups
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" align="center" {{!}} {{{former}}}
 
{{!}} colspan="2" align="center" {{!}} {{{former}}}
 
{{!}}-
 
{{!}}-
 
| }}
 
| }}
{{#ifexpr: {{#if: {{{othernames|{{{alias|}}}}}} | 1 | 0}} or {{#if: {{{realname|}}} | 1 | 0}} or {{#if: {{{age|}}} | 1 | 0 }} or {{#if: {{{forumid|}}} | {{#if: {{#field:age}} | 1 | 0 }} | 0 }} or {{#if: {{{gender|}}} | 1 | 0 }} or {{#if: {{{forumid|}}} | {{#if: {{#field:gender}} | 1 | 0 }} | 0 }} or {{#if: {{{occupation|}}} | 1 | 0 }} or {{#if: {{{forumid|}}} | {{#if: {{#field:occupation}} | 1 | 0 }} | 0 }} or {{#if: {{{location|}}} | 1 | 0 }} or {{#if: {{{forumid|}}} | {{#if: {{#field:location}} | 1 | 0 }} | 0 }} or {{#if: {{{website|}}} | 1 | 0 }} or {{#if: {{{forumid|}}} | {{#if: {{#field:website}} | 1 | 0 }} | 0 }} or {{#if: {{{interests|}}} | 1 | 0}} or {{#if: {{{forumid|}}} | {{#if: {{#field:interests}} | 1 | 0 }} | 0 }} |
+
{{#ifexpr: {{#if: {{{othernames|{{{alias|}}}}}} | 1 | 0}} or {{#if: {{{realname|}}} | 1 | 0}} or {{#if: {{{interests|}}} | 1 | 0}}|
 
! class="ibheader" colspan="2" {{!}} Profile
 
! class="ibheader" colspan="2" {{!}} Profile
 
{{!}}-
 
{{!}}-
Line 56: Line 56:
 
{{!}}-
 
{{!}}-
 
| }}
 
| }}
{{#if: {{{age|}}} |
 
! valign="top" align="right" width="62px" {{!}} Age:
 
{{!}} style="table-layout:fixed;"{{!}} {{{age}}}
 
{{!}}-
 
| {{#if: {{{forumid|}}} | {{#if: {{#field: age}} |
 
! valign="top" align="right" width="62px" {{!}} Age:
 
{{!}} style="table-layout:fixed;"{{!}} {{#field: age}}
 
{{!}}-
 
}} }} }}
 
{{#if: {{{gender|}}} |
 
! valign="top" align="right" width="62px" {{!}} Gender:
 
{{!}} style="table-layout:fixed;"{{!}} {{{gender}}}
 
{{!}}-
 
| {{#if: {{{forumid|}}} | {{#if: {{#field: gender}} |
 
! valign="top" align="right" width="62px" {{!}} Gender:
 
{{!}} style="table-layout:fixed;"{{!}} {{#ifexpr: {{#field: gender}} = 1 | Male | {{#ifexpr: {{#field: gender}} = 2 | Female | {{#ifexpr: {{#field: gender}} = 2 | Unspecified | }} }} }}
 
{{!}}-
 
}} }} }}
 
 
{{#if: {{{interests|}}} |  
 
{{#if: {{{interests|}}} |  
 
! valign="top" align="right" {{!}} Interests:
 
! valign="top" align="right" {{!}} Interests:
 
{{!}} {{{interests}}}
 
{{!}} {{{interests}}}
 
{{!}}-
 
{{!}}-
| {{#if: {{{forumid|}}} | {{#if: {{#field:interests}} |
+
| }}  
! valign="top" align="right" {{!}} Interests:
+
| }}
{{!}} {{#field:interests}}
+
{{#if: {{{contactinfo|}}}|
{{!}}-
 
| }} | }} | }}
 
{{#if: {{{interests|}}} |
 
! valign="top" align="right" {{!}} Occupation:
 
{{!}} {{{occupation}}}
 
{{!}}-
 
| {{#if: {{{forumid|}}} | {{#if: {{#field:occupation}} |
 
! valign="top" align="right" {{!}} Occupation:
 
{{!}} {{#field:occupation}}
 
{{!}}-
 
| }} | }} | }}
 
{{#if: {{{location|}}} |
 
! valign="top" align="right" {{!}} Location:
 
{{!}} {{{location}}}
 
{{!}}-
 
| {{#if: {{{forumid|}}} | {{#if: {{#field:location}} |
 
! valign="top" align="right" {{!}} Location:
 
{{!}} {{#field:location}}
 
{{!}}-
 
| }} | }} | }}
 
{{#if: {{{website|}}} |
 
! valign="top" align="right" {{!}} Website:
 
{{!}} {{{website}}}
 
{{!}}-
 
| {{#if: {{{forumid|}}} | {{#if: {{#field:website}} |
 
! valign="top" align="right" {{!}} Website:
 
{{!}} {{#field:website}}
 
{{!}}-
 
| }} | }} | }} | }}
 
{{#if: {{{forumid|}}} | {{#ifexpr: {{#if: {{{forumid|}}} | 1 | 0 }} and ({{#field: icq}} or {{#field: aim}} or {{#field: yim}} or {{#field: msnm}} or {{#field: jabber}})|  
 
 
! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Contact Information
 
! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Contact Information
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} {{#ifexpr: {{#field: icq}} | [[Image: messenger_icq.png | This user has ICQ! | link=]] | }} {{#ifexpr: {{#field: aim}} | [[Image: messenger_aim.png | This user has AIM! | link=]] | }} {{#ifexpr: {{#field: yim}} | [[Image: messenger_yim.png | This user has YIM! | link=]] | }} {{#ifexpr: {{#field: msnm}} | [[Image: messenger_msnm.png | This user has MSN! | link=]] | }} {{#ifexpr: {{#field: jabber}} | [[Image: messenger_jabber.png | This user has Jabber! | link=]] | }}
+
{{!}} colspan="2" {{!}} {{{contactinfo}}}
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}}{{#if: {{{contactinfo|}}}| {{{contactinfo}}} | }}
 
{{!}}-
 
}} | {{#if: {{{contactinfo|}}}|
 
! class="ibheader" colspan="2" style="font-size: 100%;" {{!}} Contact Information
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{contactinfo}}}
 
{{!}}-
 
|  }} }}
 
! colspan="2" style="vertical-align: top; text-align: center;" {{!}}
 
{{{!}}class="ibheader" width="100%" style="border: 0px;"
 
 
{{!}}-
 
{{!}}-
{{!}}{{#if: {{{sitenumber|}}} | [[Image:site_id.png|link=http://www.mfgg.net/index.php?act=user&param=01&uid={{{sitenumber}}}]] | {{#ifexpr: {{#if: {{{forumid|}}} | 1 | 0 }} and {{#if: {{#field: site_id}} | 1 | 0 }} | [[Image:site_id.png|link=http://www.mfgg.net/index.php?act=user&param=01&uid={{#field: site_id}}]] | [[Image:site_id_none.png|link=]]<includeonly>[[Category:Members without a main site account]]</includeonly> }} }}
 
{{!}}{{#if: {{{forumid|}}} | [[Image:forum_id.gif|link=http://forums.mfgg.net/memberlist.php?mode=viewprofile&u={{{forumid}}}]] | [[Image:forum_id_none.gif|link=]]<includeonly>[[Category:Members without a main site account]]</includeonly>}}
 
{{!}}}
 
{{!}}}
 
 
| }}
 
| }}
 +
| colspan="2" style="vertical-align: top; text-align: center;" |
 +
{|class="ibheader" width="100%" style="border: 0px;"
 +
|-
 +
|{{#if: {{{sitenumber|}}} | [[Image:site_id.png|link=http://www.mfgg.net/index.php?act=user&param=01&uid={{{sitenumber}}}]] | [[Image:site_id_none.png|link=]]<includeonly>[[Category:Members without a main site account]]</includeonly>}}
 +
|{{#if: {{{forumid|}}} | [[Image:forum_id.gif|link=http://forums.mfgg.net/memberlist.php?mode=viewprofile&u={{{forumid}}}]] | [[Image:forum_id_none.gif|link=]]<includeonly>[[Category:Members without a main site account]]</includeonly>}}
 +
|}
 +
|}
  
 
<noinclude>{{high-risk/template}}
 
<noinclude>{{high-risk/template}}

Revision as of 18:11, 23 August 2010

MFGGer
Forum default.png
MemberType Member.gif
Site id none.png Forum id none.gif


 Cheepcheepattack7lu.gif This is a high-risk template.

Vandalism of high-risk templates is strictly prohibited. Appending derogatory, counter-productive, or otherwise useless content to this template will warrant punishment by administrative discretion.





Usage

Note: This template may be called with "MFGGer" or "member", but it is case-sensitive.

{{member
| name = Their name, defaults to the article name if not given
| flag = {{Country's Name}}
| image = Path to image
| caption = Text below image
| alias = Other names used by this member, past or present. Can also use "othernames" (compatibility)
| former = Former Member Groups, for groups that the MFGGer was previously in, but now is not.
| realname = Member's real name. Please check with the member before supplying this information.
| interests = Member's interests
| contactinfo = Member's contact information
| sitenumber = Member id on the main site.
| forumid = Member id on the forums. }}

Manual Overrides

There are some overrides in the case that somebody isn't a member on the forums, or that for some reason their badges/groups aren't displaying properly.

| primarygroup = the user's primary group, as displayed on the forum (in word form, i.e. "Member", "Global Moderator", etc.).
| othergroups = the other groups that a user is in (using the {{MemberType}} template).
| badges = the badges that a user has (using the {{Badge}} template).

These are only to be used in exceptional cases, where the forum/wiki communication extension isn't performing properly, or where it cannot be used at all.

Particulars

The badge section's width is carefully formatted to have exactly five badges per line. When editing this template, please do not change the width of the badge section.