Difference between revisions of "Template:Userinfobox"

From Sinden Lightgun
Jump to navigation Jump to search
m
m
Line 12: Line 12:
  
 
<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; width: 400px; 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>}}
{{if|eq| {{{role|}}} |Admin|
+
{{#ifeq: {{{role|}}} | Admin |
 
<tr>
 
<tr>
 
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
 
<th class="infobox-role" colspan="2" bgcolor="#ff0000" style="text-align: center;"><b>{{{role}}}</b></th>
</tr>|}}
+
</tr>}}
{{if|eq| {{{role|}}} |Contributor|
+
{{#ifeq: {{{role|}}} | Contributor |  
 
<tr>
 
<tr>
 
<th class="infobox-role" colspan="2" bgcolor="#ccee00" style="text-align: center;"><b>{{{role}}}</b></th>
 
<th class="infobox-role" colspan="2" bgcolor="#ccee00" style="text-align: center;"><b>{{{role}}}</b></th>
</tr>|}}
+
</tr>}}
{{if|eq| {{{role|}}} |Developer|
+
{{#ifeq: {{{role|}}} | Developer |
 
<tr>
 
<tr>
 
<th class="infobox-role" colspan="2" bgcolor="#cc00dd" style="text-align: center;"><b>{{{role}}}</b></th>
 
<th class="infobox-role" colspan="2" bgcolor="#cc00dd" style="text-align: center;"><b>{{{role}}}</b></th>
</tr>|}}
+
</tr>}}
{{if|| {{{image|}}}|
+
{{#if: {{{image|}}}|
 
<tr>
 
<tr>
 
<th class="infobox-image" colspan="2" style="text-align: center;">[[File:{{{image}}}|300px]]</div></th>
 
<th class="infobox-image" colspan="2" style="text-align: center;">[[File:{{{image}}}|300px]]</div></th>
 
</tr>}}
 
</tr>}}
{{if|| {{{caption|}}}|
+
{{#if: {{{caption|}}}|
 
<tr>
 
<tr>
 
<th class="infobox-caption" colspan="2" style="text-align: center; font-size: 0.85em;"><i>{{{caption}}}</i></td>
 
<th class="infobox-caption" colspan="2" style="text-align: center; font-size: 0.85em;"><i>{{{caption}}}</i></td>
 
</tr>}}
 
</tr>}}
{{if|| {{{link|}}}|
+
{{#if: {{{link|}}}|
 
<tr>
 
<tr>
 
<td class="infobox-link" style="text-align: right><i class="fa-brands fa-google-drive"></i><b>:</b></td>
 
<td class="infobox-link" style="text-align: right><i class="fa-brands fa-google-drive"></i><b>:</b></td>
 
<td style="text-align: left>{{{link}}}</td>
 
<td style="text-align: left>{{{link}}}</td>
 
</tr>}}
 
</tr>}}
{{if|| {{{discord|}}}|
+
{{#if: {{{discord|}}}|
 
<tr>
 
<tr>
 
<td class="infobox-discord" style="text-align: right><i class="fa-brands fa-discord"></i><b>:</b></td>
 
<td class="infobox-discord" style="text-align: right><i class="fa-brands fa-discord"></i><b>:</b></td>
 
<td style="text-align: left>{{{discord}}}</td>
 
<td style="text-align: left>{{{discord}}}</td>
 
</tr>}}
 
</tr>}}
{{if|| {{{twitter|}}}|
+
{{#if: {{{twitter|}}}|
 
<tr>
 
<tr>
 
<td class="infobox-twitter" style="text-align: right><i class="fa-brands fa-twitter"></i> <b>:</b></td>
 
<td class="infobox-twitter" style="text-align: right><i class="fa-brands fa-twitter"></i> <b>:</b></td>
 
<td style="text-align: left>{{{twitter}}}</td>
 
<td style="text-align: left>{{{twitter}}}</td>
 
</tr>}}
 
</tr>}}
{{if|| {{{note|}}}|
+
{{#if: {{{note|}}}|
 
<tr>
 
<tr>
 
<td class="infobox-note" colspan="2" style="text-align: center; font-size: 0.85em;"><b>Note: </b>{{{note}}}</td>
 
<td class="infobox-note" colspan="2" style="text-align: center; font-size: 0.85em;"><b>Note: </b>{{{note}}}</td>
 
</tr>}}
 
</tr>}}
 
</table>
 
</table>

Revision as of 00:19, 8 February 2023


Member's username.
300px
Brief description.
Home link.
: username#0000
Note: Footnote.