Difference between revisions of "Template:MemberInfo"

From RA2Wiki
Jump to navigation Jump to search
(god dammit)
(Fucked if I know what's glitching out the success rating, if somebody more knowledgeble can take a look at it that'd be great.)
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em"
+
<includeonly>{| class="infobox vcard" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; float: right; margin-left: 1em;"
|+ class="fn" style="font-size: 125%; font-weight: bold" | {{{membername}}}
+
{{!}}+ class="fn" style="font-size: 125%; font-weight: bold" {{!}} {{{membername}}}
 
|-
 
|-
 +
{{#if: {{{forumname|<noinclude>-</noinclude>}}} |
 +
{{!}} align="center" colspan="3" {{!}} https://wiki.gametechmods.com/avatars/{{urlencode:{{{forumname}}}.png}} |
 +
{{!}} align="center" colspan="3" {{!}} https://wiki.gametechmods.com/avatars/{{urlencode:{{{membername}}}.png}}
 +
}}
 +
{{!}}-
 
{{#if: {{{rank|<noinclude>-</noinclude>}}} |
 
{{#if: {{{rank|<noinclude>-</noinclude>}}} |
 
{{!}} '''Rank'''
 
{{!}} '''Rank'''
Line 12: Line 17:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
! style="background-color:#D8BFD8" align="center" colspan="3" | {{{Grudge / Ally Status}}}
+
| style="background-color:#D8BFD8" align="center" colspan="3" | Grudge / Ally Status
 
|-
 
|-
 +
{{#if: {{{allies|<noinclude>-</noinclude>}}} |
 +
{{!}} '''Allies With'''
 +
{{!}} align="left" colspan="2" {{!}} {{{allies}}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{rivals|<noinclude>-</noinclude>}}} |
 +
{{!}} '''Rivals With'''
 +
{{!}} align="left" colspan="2" {{!}} {{{rivals}}}
 +
{{!}}-
 +
}}
 
{{#if: {{{grudges|<noinclude>-</noinclude>}}} |
 
{{#if: {{{grudges|<noinclude>-</noinclude>}}} |
 
{{!}} '''Grudges With'''
 
{{!}} '''Grudges With'''
Line 19: Line 34:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{allies|<noinclude>-</noinclude>}}} |
+
{{#if: {{{fear|<noinclude>-</noinclude>}}} |
{{!}} '''Allies With'''
+
{{!}} '''Fear Rating'''
{{!}} align="left" colspan="2" {{!}} {{{allies}}}
+
{{!}} align="left" colspan="2" {{!}} {{#ifexpr: {{{fear}}} < 21 | [[File:Rating_1.gif]] }}{{#ifexpr: {{{fear}}} > 20 and {{{fear}}} < 41 | [[File:Rating_2.gif]] }}{{#ifexpr: {{{fear}}} > 40 and {{{fear}}} < 61 | [[File:Rating_3.gif]] }}{{#ifexpr: {{{fear}}} > 60 and {{{fear}}} < 81 | [[File:Rating_4.gif]] }}{{#ifexpr: {{{fear}}} > 80 | [[File:Rating_5.gif]] }} {{{fear}}}/100
 +
{{!}}-
 +
}}
 +
{{#if: {{{success|<noinclude>-</noinclude>}}} |
 +
{{!}} '''Success Rating'''
 +
{{!}} align="left" colspan="2" {{!}} {{#ifexpr: {{{success}}} < 21 | [[File:Rating_1.gif]] }}{{#ifexpr: {{{success}}} > 20 and {{{success}}} < 41 | [[File:Rating_2.gif]] }}{{#ifexpr: {{{success}}} > 40 and {{{success}}} < 61 | [[File:Rating_3.gif]] }}{{#ifexpr: {{{success}}} > 60 and {{{success}}} < 81 | [[File:Rating_4.gif]] }}{{#ifexpr: {{{success}}} > 80 | [[File:Rating_5.gif]] }} {{{success}}}/100
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{fear|<noinclude>-</noinclude>}}} |
+
{{#if: {{{controversy|<noinclude>-</noinclude>}}} |
{{!}} '''Fear Rating'''
+
{{!}} '''Controversy Rating'''
{{!}} align="left" colspan="2" {{!}} {{{fear}}}/100
+
{{!}} align="left" colspan="2" {{!}} {{#ifexpr: {{{controversy}}} < 21 | [[File:Rating_1.gif]] }}{{#ifexpr: {{{controversy}}} > 20 and {{{controversy}}} < 41 | [[File:Rating_2.gif]] }}{{#ifexpr: {{{controversy}}} > 40 and {{{controversy}}} < 61 | [[File:Rating_3.gif]] }}{{#ifexpr: {{{controversy}}} > 60 and {{{controversy}}} < 81 | [[File:Rating_4.gif]] }}{{#ifexpr: {{{controversy}}} > 80 | [[File:Rating_5.gif]] }} {{{controversy}}}/100
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{respect|<noinclude>-</noinclude>}}} |
 
{{#if: {{{respect|<noinclude>-</noinclude>}}} |
 
{{!}} '''Respect Rating'''
 
{{!}} '''Respect Rating'''
{{!}} align="left" colspan="2" {{!}} {{{respect}}}/100
+
{{!}} align="left" colspan="2" {{!}} {{#ifexpr: {{{respect}}} < 21 | [[File:Rating_1.gif]] }}{{#ifexpr: {{{respect}}} > 20 and {{{respect}}} < 41 | [[File:Rating_2.gif]] }}{{#ifexpr: {{{respect}}} > 40 and {{{respect}}} < 61 | [[File:Rating_3.gif]] }}{{#ifexpr: {{{respect}}} > 60 and {{{respect}}} < 81 | [[File:Rating_4.gif]] }}{{#ifexpr: {{{respect}}} > 80 | [[File:Rating_5.gif]] }} {{{respect}}}/100
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{respect|<noinclude>-</noinclude>}}} |
+
{{#if: {{{trivia|<noinclude>-</noinclude>}}} |
{{!}} style="background-color:#D8BFD8" align="center" colspan="3" {{!}} {{{Trivia}}}
+
{{!}} style="background-color:#D8BFD8" align="center" colspan="3" {{!}} Trivia
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{respect|<noinclude>-</noinclude>}}} |
+
{{#if: {{{trivia|<noinclude>-</noinclude>}}} |
 
{{!}} align="left" colspan="3" {{!}} {{{trivia}}}
 
{{!}} align="left" colspan="3" {{!}} {{{trivia}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}
+
{{#if: {{{quote|<noinclude>-</noinclude>}}} |
 +
{{!}} style="background-color:#D8BFD8" align="center" colspan="3" {{!}} Memorable Quote
 +
{{!}}-
 +
}}
 +
{{#if: {{{quote|<noinclude>-</noinclude>}}} |
 +
{{!}} align="left" colspan="3" {{!}} {{{quote}}}
 +
{{!}}-
 +
}}
 +
|}</includeonly>
 +
<noinclude>
 +
{{MemberInfo
 +
| membername = Example User
 +
| forumname = ACAMS
 +
| rank = Example Rank
 +
| stance = Example Stance
 +
| grudges = Example Grudges
 +
| rivals = Example Rivals
 +
| allies = Example Allies
 +
| controversy = 50
 +
| success = 100
 +
| fear = 13
 +
| respect = 37
 +
| trivia = Example Trivia
 +
| quote = Example Quotes
 +
}}
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Latest revision as of 11:41, 21 September 2017


Example User
ACAMS.png
Rank Example Rank
Political Stance Example Stance
Grudge / Ally Status
Allies With Example Allies
Rivals With Example Rivals
Grudges With Example Grudges
Fear Rating Rating 1.gif 13/100
Success Rating Rating 5.gif 100/100
Controversy Rating Rating 3.gif 50/100
Respect Rating Rating 2.gif 37/100
Trivia
Example Trivia
Memorable Quote
Example Quotes


[edit] Template documentation

Purpose

This is a template to use on member pages on the wiki. It provides an unified way to display information about a member and display his or her avatar via the GTM Avatar Service.

Usage

{{MemberInfo
| membername = That Guy
| parameter1 = somedata
| parameter2 = otherdata
...
}}
Parameter Usage Notes
membername The member's name or nickname. Doesn't have to be the title of the page nor the name on the forums.
forumname The name used for retrieving the user's avatar. If not given, membername is used. Optional
rank The member's rank(s). Preferably linked to another page. Optional
stance One of the Political Stances on the forum. Optional
grudges Part of the Grudge/Ally Status Optional
rivals Part of the Grudge/Ally Status Optional
allies Part of the Grudge/Ally Status Optional
fear The Fear Rating. Part of the Grudge/Ally Status Optional. From 0 to 100.
respect The Respect Rating. Part of the Grudge/Ally Status Optional. From 0 to 100.
trivia Random factoid about the member. Try to keep this in the main wiki page. Optional
quote Famous quote or saying. Preferably sourced. Optional