Difference between revisions of "Template:Userinfobox"

From Sinden Lightgun
Jump to navigation Jump to search
m
m
 
(27 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
|image = Display picture image.
 
|image = Display picture image.
 
|caption = Brief description.
 
|caption = Brief description.
|link = Home link.
+
|link = General link you'd like to share.
 
|discord = username#0000
 
|discord = username#0000
|note = Footnote.
+
|platforms = List of OSes you're proficient with.
 +
|frontends = List of frontends you're proficient with.
 +
|emulators = List of emulators you're proficient with.
 
}}
 
}}
 
</noinclude>
 
</noinclude>
  
<table class="infobox" style="text-align: left; width: 400px; font-size: 100%; border-radius: 10px; border: 1px black solid; overflow:hidden;">
+
<table class="infobox" style="text-align: left; font-size: 100%; border-radius: 10px; border: 1px black solid; overflow:hidden">
 
{{#if: {{{username|}}}|
 
{{#if: {{{username|}}}|
 
<tr>
 
<tr>
<th class="infobox-username" colspan="2" style="text-align: center;"><b>{{{username|{{PAGENAME}}}}}</b></th>
+
<th class="infobox-username" colspan="2" style="text-align: center"><b>{{{username|{{PAGENAME}}}}}</b></th>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Admin |
+
{{#if: {{{image|}}}|
 +
<tr>
 +
<th class="infobox-image" colspan="2" style="text-align: center">[[File:{{{image}}}|300px]]</div></th>
 +
</tr>}}
 +
{{#if: {{{caption|}}}|
 +
<tr>
 +
<th class="infobox-caption" colspan="2" style="text-align: center; font-size: 0.85em">{{{caption}}}</td>
 +
</tr>}}
 +
{{#if: {{{link|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-link" style="text-align: right; width: 10%"><i class="fa-solid fa-link"></i><b>:</b></td>
 +
<td style="text-align: left">{{{link}}}</td>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Contributor |  
+
{{#if: {{{discord|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#00eeee" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-discord" style="text-align: right; width: 10%"><i class="fa-brands fa-discord"></i><b>:</b></td>
 +
<td style="text-align: left">{{{discord}}}</td>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Developer |
+
{{#if: {{{twitter|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#cc00dd" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-twitter" style="text-align: right; width: 10%"><i class="fa-brands fa-twitter"></i> <b>:</b></td>
 +
<td style="text-align: left">{{{twitter}}}</td>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Admin |
+
{{#if: {{{platforms|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-platforms" style="text-align: right; width: 10%"><i class="fa-solid fa-desktop"></i><b>:</b></td>
 +
<td style="text-align: left">{{{platforms}}}</td>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Pedal Owner|  
+
{{#if: {{{frontends|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-frontends" style="text-align: right; width: 10%"><i class="fa-solid fa-laptop-code"></i><b>:</b></td>
 +
<td style="text-align: left">{{{frontends}}}</td>
 
</tr>}}
 
</tr>}}
{{#ifeq: {{{role|}}} | Lightgun Owner|  
+
{{#if: {{{emulators|}}}|
 
<tr>
 
<tr>
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
+
<td class="infobox-emulators" style="text-align: right; width: 10%"><i class="fa-solid fa-gamepad"></i><b>:</b></td>
 +
<td style="text-align: left">{{{emulators}}}</td>
 
</tr>}}
 
</tr>}}
{{#if: {{{image|}}}|
+
{{#if: {{{note|}}}|
 
<tr>
 
<tr>
<th class="infobox-image" colspan="2" style="text-align: center;">[[File:{{{image}}}|300px]]</div></th>
+
<td class="infobox-note" colspan="2" style="text-align: center; font-size: 0.85em"><b>Note:</b> {{{note}}}</td>
 
</tr>}}
 
</tr>}}
{{#if: {{{caption|}}}|
+
{{#ifeq: {{{role|}}} | Admin |
 
<tr>
 
<tr>
<th class="infobox-caption" colspan="2" style="text-align: center; font-size: 0.85em;"><i>{{{caption}}}</i></td>
+
<th class="infobox-role" colspan="2" bgcolor="#f1c40f" style="text-align: center"><b>{{{role}}}</b></th>
 
</tr>}}
 
</tr>}}
{{#if: {{{link|}}}|
+
{{#ifeq: {{{role|}}} | Contributor |  
 
<tr>
 
<tr>
<td class="infobox-link" style="text-align: right><i class="fa-brands fa-google-drive"></i><b>:</b></td>
+
<th class="infobox-role" colspan="2" bgcolor="#3498db" style="text-align: center"><b>{{{role}}}</b></th>
<td style="text-align: left>{{{link}}}</td>
 
 
</tr>}}
 
</tr>}}
{{#if: {{{discord|}}}|
+
{{#ifeq: {{{role|}}} | Developer |
 
<tr>
 
<tr>
<td class="infobox-discord" style="text-align: right><i class="fa-brands fa-discord"></i><b>:</b></td>
+
<th class="infobox-role" colspan="2" bgcolor="#e67e22" style="text-align: center"><b>{{{role}}}</b></th>
<td style="text-align: left>{{{discord}}}</td>
 
 
</tr>}}
 
</tr>}}
{{#if: {{{twitter|}}}|
+
{{#ifeq: {{{role|}}} | Pedal Owner|  
 
<tr>
 
<tr>
<td class="infobox-twitter" style="text-align: right><i class="fa-brands fa-twitter"></i> <b>:</b></td>
+
<th class="infobox-role" colspan="2" bgcolor="#9b59b6" style="text-align: center"><b>{{{role}}}</b></th>
<td style="text-align: left>{{{twitter}}}</td>
 
 
</tr>}}
 
</tr>}}
{{#if: {{{note|}}}|
+
{{#ifeq: {{{role|}}} | Lightgun Owner|  
 
<tr>
 
<tr>
<td class="infobox-note" colspan="2" style="text-align: center; font-size: 0.85em;"><b>Note: </b>{{{note}}}</td>
+
<th class="infobox-role" colspan="2" bgcolor="#2ecc71" style="text-align: center"><b>{{{role}}}</b></th>
 
</tr>}}
 
</tr>}}
 
</table>
 
</table>

Latest revision as of 07:58, 8 February 2023


Member's username.
300px
Brief description.
General link you'd like to share.
: username#0000
: List of OSes you're proficient with.
: List of frontends you're proficient with.
: List of emulators you're proficient with.