Template:User Data: Difference between revisions

From Battlestar Wiki Media
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox"
{| class="infobox"
|-
|- class="infoboxheader"
| colspan="2" style="text-align: center; font-size: larger;" | '''{{PAGENAME}}'''
| colspan="2" style="text-align: center; font-size: larger;" | '''{{PAGENAME}}'''
|- class="hiddenStructure{{{photo|}}}"
|- class="hiddenStructure{{{photo|}}}"
| colspan="2" style="padding: 1em 0; text-align: center;" | [[Image:{{{photo}}}|200px]]
| colspan="2" style="padding: 1em 0; text-align: center;" | [[Image:{{{photo}}}|200px|{{PAGENAME}}]]
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{name|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{name|}}}"
|style="white-space: nowrap;"| '''Name'''
|style="white-space: nowrap;" | '''Name'''
| {{{name}}}
| {{{name}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{age|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{gender|}}}"
| '''Gender'''
| {{{gender|}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{born_day|}}}{{{born_month|}}}{{{born_year|}}}"
| '''Date of birth'''
| {{#if:{{{born_month|}}}|{{MONTHNAME|{{{born_month|}}}}}}} {{{born_day|}}}{{#if:{{{born_year|}}}|, {{{born_year|}}}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{age|}}}{{#ifeq:{{#expr:{{#if:{{{born_day|}}}|1|0}}+{{#if:{{{born_month|}}}|1|0}}+{{#if:{{{born_year|}}}|1|0}}}}|3|a}}"
| '''Age'''
| '''Age'''
| {{{age}}}
| {{#ifeq:{{#expr:{{#if:{{{born_day|}}}|1|0}}+{{#if:{{{born_month|}}}|1|0}}+{{#if:{{{born_year|}}}|1|0}}}}|3|{{age|{{{born_year}}}|{{{born_month}}}|{{{born_day}}}}}|{{{age}}}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{location|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{location|}}}"
| '''Location'''
| '''Location'''
Line 22: Line 28:
}}
}}
}}
}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{timezone|}}}"
| '''Timezone'''
| {{{timezone}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{email|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{email|}}}"
|style="white-space: nowrap;"| '''Email'''  
| style="white-space: nowrap;" | '''Email'''
|{{{email}}}
| {{{email}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{gmail|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{gmail|}}}"
|style="white-space: nowrap;"|'''Gmail/GTalk'''
| style="white-space: nowrap;" |'''Gmail/GTalk'''
| {{{gmail}}}
| {{{gmail}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{aim|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{aim|}}}"
|style="white-space: nowrap;"|'''AIM'''
| style="white-space: nowrap;" |'''AIM'''
| {{{aim}}}
| {{{aim}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{icq|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{icq|}}}"
|style="white-space: nowrap;"|'''ICQ'''
| style="white-space: nowrap;" |'''ICQ'''
| {{{icq}}}
| {{{icq}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{callsign|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{callsign|}}}"
Line 47: Line 56:
| {{{children}}}
| {{{children}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{marital status|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{marital status|}}}"
|style="white-space: nowrap;"|'''Marital Status'''
| style="white-space: nowrap;" |'''Marital Status'''
| {{{marital status}}}
| {{{marital status}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{occupation|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{occupation|}}}"
|'''Occupation'''
| '''Occupation'''
|{{{occupation}}}
| {{{occupation}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{rank|}}}"
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{rank|}}}"
| '''Rank'''
| '''Rank'''
| {{{rank}}}
| {{{rank}}}
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{showEC|}}}"
| '''Edit count'''
| [[Special:Editcount/{{PAGENAME}}|{{Special:Editcount/{{PAGENAME}}}}]]
|- style="vertical-align: top; text-align: left;" class="hiddenStructure{{{sok|}}}"
| colspan="2" align="center" | [[Image:SOK-Pip.png|15px]] '''Star of Kobol'''
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{{admin|}}}"
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{{admin|}}}"
| colspan="2"| {{PAGENAME}} is an [[Battlestar Wiki Media:Administrators|Administrator]]
| colspan="2" | {{PAGENAME}} is an [[Battlestar Wiki:Administrators|Administrator]]
|- style="vertical-align: top; text-align: center;" class="hiddenStructure{{{bcrat|}}}"
| colspan="2" | {{PAGENAME}} is a [[Battlestar Wiki:Bureaucrats|Bureaucrat]]
{{#ifeq:{{#expr:({{#if:{{{favepi|}}}|1|0}}) >= 1|1|0}}|1|
{{!}}- style="text-align:center;"
! class="infoboxheader" colspan="2" {{!}} '''Battlestar Galactica'''
{{#if:{{{favepi|}}}| {{!}}- style="vertical-align: top;"
{{!}} style="white-space: nowrap;" {{!}} '''Favorite Episode(s)'''
{{!}} {{{favepi}}}
}}
}}
|}
|}
{{#if:{{{nocat|}}}
{{#if:{{{nocat|}}}
| <!-- THEN: -->
| <!-- THEN: -->
| <!-- ELSE: --> [[Category:Wikipedians|{{PAGENAME}}]]
| <!-- ELSE: --> [[Category:Wikipedians|{{PAGENAME}}]]
   {{#ifexist:Template:country flag alias {{{1}}}
   {{#ifexist:Template:country flag alias {{{countrycode}}}
   | <!-- THEN: -->
   | <!-- THEN: -->
   {{#if:{{{countrycode|}}}
   {{#if:{{{countrycode|}}}
Line 72: Line 96:
   | <!-- ELSE: -->
   | <!-- ELSE: -->
   }}
   }}
  }}
  {{#if:{{{nogendercat|}}}
  |
  |{{#switch:{{{gender|}}}
      | male
      | Male=[[Category:Male Wikipedians|{{PAGENAME}}]]
      | female
      | Female=[[Category:Female Wikipedians|{{PAGENAME}}]]
      | #default=
      }}
   }}
   }}
}}
}}
Line 77: Line 111:
<noinclude>
<noinclude>
= Documentation =
= Documentation =
This template is used on User pages for quick info about a BSG Wiki Member. It provides lower case parameters only. If you are not going to include any of these parameters, and you still want to be part of the "[[:Category:Wikipedians]]", just insert <code><nowiki>[[Category:Wikipedians|{{PAGENAME}}]]</nowiki></code> somewhere on your userpage.
This template is used on User pages for quick info about a BSG Wiki Member. It provides lower case parameters only. If you are not going to include any of these parameters, and you still want to be part of the "[[:Category:Wikipedians]]", just insert <code><nowiki>[[Category:Wikipedians|{{PAGENAME}}]]</nowiki></code> somewhere on your userpage. Similarly, you can add yourself to [[:Category:Female Wikipedians]] or [[:Category:Male Wikipedians]] by using <code><nowiki>[[Category:Female Wikipedians|{{PAGENAME}}]]</nowiki></code> or <code><nowiki>[[Category:Male Wikipedians|{{PAGENAME}}]]</nowiki></code>.


== Usage ==
== Usage ==
Line 83: Line 117:
| photo=
| photo=
| name=
| name=
| gender=
| age=
| age=
| born_day=
| born_month=
| born_year=
| location=
| location=
| timezone=
| email=
| email=
| gmail=
| gmail=
Line 95: Line 134:
| marital status=
| marital status=
| occupation=
| occupation=
| rank=  
| rank=
| countrycode=
| countrycode=
| admin=
| admin=
| bcrat=
| sok=
| nocat=
| nocat=
| nogendercat=
| noflag=
| noflag=
| showEC=
| favepi=
}}
}}
</pre>
</pre>
Line 106: Line 150:
* '''photo''': The image filename only.
* '''photo''': The image filename only.
* '''name''': Full Name
* '''name''': Full Name
* '''age''': Your Age
* '''gender''': <code>Male</code> or <code>Female</code>. This option will also place you in ''[[:Category:Male Wikipedians]]'' or ''[[:Category:Female Wikipedians]]''.
** '''We like to stress that this is the most optional field here. Leaving this blank is OK. You will not be punished for leaving this blank.'''
* '''age''': Your age. Only used if one of '''born_day''', '''born_month''' and '''born_year''' isn't specified.
* '''born_day''', '''born_month''' and '''born_year''': Your date of birth in numericals. If all three are specified, your age is calculated and shown as well.
* '''location''': Where you live.
* '''location''': Where you live.
* '''timezone''': Your timezone (e.g. <code>GMT +1</code>)
* '''email''': Email Address
* '''email''': Email Address
* '''gmail''': Google Username
* '''gmail''': Google Username
* '''aim'''': AIM Username
* '''aim''': AIM Username
* '''icq''': ICQ Username
* '''icq''': ICQ Username
* '''callsign''': Online Nickname
* '''callsign''': Online Nickname
Line 119: Line 167:
* '''occupation''': What you do for a living
* '''occupation''': What you do for a living
* '''rank''': Your "pretend" BSG Wiki Rank
* '''rank''': Your "pretend" BSG Wiki Rank
* '''countrycode''': Your country code in all capitol letters. Will show your flag if it's installed. If your flag is not installed, it will show "earth".
* '''countrycode''': Your country code in all capital letters. Will show your flag if it's installed. If your flag is not installed, it will show "earth".
** <code>US</code>, <code>UK</code>, or others. For a full listing of possible country codes please visit [http://www.iana.org/cctld/cctld-whois.htm IANA's Root-Zone Index]
** <code>US</code>, <code>UK</code>, or others. For a full listing of installed country codes, see [[Template:Country_flag|here]].
** <code>Earth</code> as to indicate from the planet Earth
** <code>Earth</code> as to indicate from the planet Earth
* '''admin''': Enter "Y" if you are an admin
* '''admin''': Enter "Y" if you are an admin
* '''nocat''': Enter "Y" if you don't want to be included in the ''[[:Category:Wikipedians]]''.
* '''bcrat''': Enter "Y" if you are a bureaucrat
* '''sok''': Enter "Y" if you are a [[BW:STAR|Star of Kobol]] award "winner".
* '''nocat''': Enter "Y" if you don't want to be included in any category.
* '''nogendercat''': Enter "Y" if you don't want to be included in ''[[:Category:Male Wikipedians]]'' or ''[[:Category:Female Wikipedians]]''.
* '''noflag''': Enter "Y" if you don't want your country flag to show up.
* '''noflag''': Enter "Y" if you don't want your country flag to show up.
* '''showEC''': Enter "Y" if you want your edit count to be shown.
=== Very Optional ===
* '''favepi''': Enter your favorite episode(s). If you have more than one, follow each one with <code><nowiki><br /></nowiki></code>. You may wikify.
[[Category:Infobox|User]]
[[Category:Templates using ParserFunctions|User Data]]
[[de:Vorlage:Userdaten]]
[[es:Plantilla:Character Data]]
</noinclude>
</noinclude>

Revision as of 20:14, 5 May 2007


Documentation

This template is used on User pages for quick info about a BSG Wiki Member. It provides lower case parameters only. If you are not going to include any of these parameters, and you still want to be part of the "Category:Wikipedians", just insert [[Category:Wikipedians|{{PAGENAME}}]] somewhere on your userpage. Similarly, you can add yourself to Category:Female Wikipedians or Category:Male Wikipedians by using [[Category:Female Wikipedians|{{PAGENAME}}]] or [[Category:Male Wikipedians|{{PAGENAME}}]].

Usage

{{User Data
| photo=
| name=
| gender=
| age=
| born_day=
| born_month=
| born_year=
| location=
| timezone=
| email=
| gmail=
| aim=
| icq=
| callsign=
| parents=
| siblings=
| children=
| marital status=
| occupation=
| rank=
| countrycode=
| admin=
| bcrat=
| sok=
| nocat=
| nogendercat=
| noflag=
| showEC=
| favepi=
}}

Optional parameters

  • photo: The image filename only.
  • name: Full Name
  • gender: Male or Female. This option will also place you in Category:Male Wikipedians or Category:Female Wikipedians.
    • We like to stress that this is the most optional field here. Leaving this blank is OK. You will not be punished for leaving this blank.
  • age: Your age. Only used if one of born_day, born_month and born_year isn't specified.
  • born_day, born_month and born_year: Your date of birth in numericals. If all three are specified, your age is calculated and shown as well.
  • location: Where you live.
  • timezone: Your timezone (e.g. GMT +1)
  • email: Email Address
  • gmail: Google Username
  • aim: AIM Username
  • icq: ICQ Username
  • callsign: Online Nickname
  • parents: How many parents
  • siblings: How many siblings
  • children: How many children
  • marital status: Current marital status
  • occupation: What you do for a living
  • rank: Your "pretend" BSG Wiki Rank
  • countrycode: Your country code in all capital letters. Will show your flag if it's installed. If your flag is not installed, it will show "earth".
    • US, UK, or others. For a full listing of installed country codes, see here.
    • Earth as to indicate from the planet Earth
  • admin: Enter "Y" if you are an admin
  • bcrat: Enter "Y" if you are a bureaucrat
  • sok: Enter "Y" if you are a Star of Kobol award "winner".
  • nocat: Enter "Y" if you don't want to be included in any category.
  • nogendercat: Enter "Y" if you don't want to be included in Category:Male Wikipedians or Category:Female Wikipedians.
  • noflag: Enter "Y" if you don't want your country flag to show up.
  • showEC: Enter "Y" if you want your edit count to be shown.

Very Optional

  • favepi: Enter your favorite episode(s). If you have more than one, follow each one with <br />. You may wikify.