Difference between revisions of "Template:PlayerMemberSince/doc"

From QWiki
m (Added inactive doc)
m (Added width option (default 310px))
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
This code:
 
This code:
 
  <nowiki>{{PlayerMemberSince|Avenger|pl|2002}}</nowiki>
 
  <nowiki>{{PlayerMemberSince|Avenger|pl|2002}}</nowiki>
 +
<nowiki>{{PlayerMemberSince|Avenger|pl|2002|width=400}}</nowiki>
 
  <nowiki>{{PlayerMemberSince|ParadokS|dk|}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|ParadokS|dk|}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|||}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|||}} </nowiki>
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009|inactive=yes}} </nowiki>
+
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=inactive}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=red}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=green}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=blue}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=purple}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}} </nowiki>
 
Returns this:
 
Returns this:
 
{{PlayerMemberSince|Avenger|pl|2002}}
 
{{PlayerMemberSince|Avenger|pl|2002}}
 +
{{PlayerMemberSince|Avenger|pl|2002|width=400}}
 
{{PlayerMemberSince|ParadokS|dk|}}
 
{{PlayerMemberSince|ParadokS|dk|}}
 
{{PlayerMemberSince|||}}
 
{{PlayerMemberSince|||}}
{{PlayerMemberSince|Modemkorv|de|2009|inactive=yes}}
+
{{PlayerMemberSince|Modemkorv|de|2009}}
# Default (name as link)''
+
{{PlayerMemberSince|Modemkorv|de|2009|style=inactive}}
# Leave year empty (shows no year)''
+
{{PlayerMemberSince|Modemkorv|de|2009|style=red}}
# Leave all empty (shows TBD/noflag/noyear)''
+
{{PlayerMemberSince|Modemkorv|de|2009|style=green}}
# <code>|inactive=yes</code> (changes style of box)''
+
{{PlayerMemberSince|Modemkorv|de|2009|style=blue}}
 +
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}}
 +
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}}
 +
# Default (name as link)
 +
# Default with custom width (default is 310px)
 +
# Leave year empty (shows no year)
 +
# Leave all empty (shows TBD/noflag/noyear)
 +
# <code>|style=inactive</code> set box style to inactive
 +
# <code>|style=red</code> set box style to red
 +
# <code>|style=green</code> set box style to green
 +
# <code>|style=blue</code> set box style to blue
 +
# <code>|style=purple</code> set box style to purple
 +
# <code>|style=yellow</code> set box style to yellow

Latest revision as of 07:57, 16 October 2024

Used for clan members, to show their legacy in the clan.

Example

This code:

{{PlayerMemberSince|Avenger|pl|2002}}
{{PlayerMemberSince|Avenger|pl|2002|width=400}}
{{PlayerMemberSince|ParadokS|dk|}} 
{{PlayerMemberSince|||}} 
{{PlayerMemberSince|Modemkorv|de|2009}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=inactive}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=red}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=green}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=blue}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}} 

Returns this:

Poland  Avenger Joined 2002 (22 years)
Poland  Avenger Joined 2002 (22 years)
Denmark  ParadokS
TBD
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
  1. Default (name as link)
  2. Default with custom width (default is 310px)
  3. Leave year empty (shows no year)
  4. Leave all empty (shows TBD/noflag/noyear)
  5. |style=inactive set box style to inactive
  6. |style=red set box style to red
  7. |style=green set box style to green
  8. |style=blue set box style to blue
  9. |style=purple set box style to purple
  10. |style=yellow set box style to yellow