Difference between revisions of "Template:PlayerMemberSince"
From QWiki
m (Bad linebreak) |
m (Extending to allow link= param, same as Player template) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| {{#switch: {{{style|}}} | <includeonly>{| {{#switch: {{{style|}}} | ||
|inactive | |inactive | ||
| − | |1 = style="background: linear-gradient(90deg, #eeeeee 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee | + | |1 = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #eeeeee 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | |red = style="background: linear-gradient(90deg, #ffecec 0%, #ffe1e1 100%);border-radius:5px; box-shadow: 0 0 0 1px #dfbfbf | + | |red = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #ffecec 0%, #ffe1e1 100%);border-radius:5px; box-shadow: 0 0 0 1px #dfbfbf; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | |blue = style="background: linear-gradient(90deg, #dde9ff 0%, #c8dcff 100%);border-radius:5px; box-shadow: 0 0 0 1px #92acd8 | + | |blue = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #dde9ff 0%, #c8dcff 100%);border-radius:5px; box-shadow: 0 0 0 1px #92acd8; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | |green = style="background: linear-gradient(90deg, #eaffe1 0%, #e3ffd7 100%);border-radius:5px; box-shadow: 0 0 0 1px #a2be96 | + | |green = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #eaffe1 0%, #e3ffd7 100%);border-radius:5px; box-shadow: 0 0 0 1px #a2be96; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | |purple = style="background: linear-gradient(90deg, #ede5ff 0%, #e6dbff 100%);border-radius:5px; box-shadow: 0 0 0 1px #c0bace; | + | |purple = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #ede5ff 0%, #e6dbff 100%);border-radius:5px; box-shadow: 0 0 0 1px #c0bace; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | |yellow = style="background: linear-gradient(90deg, #fff6dd 0%, #ffeebb 100%);border-radius:5px; box-shadow: 0 0 0 1px #cdb878 | + | |yellow = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #fff6dd 0%, #ffeebb 100%);border-radius:5px; box-shadow: 0 0 0 1px #cdb878; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
| − | | = style="background: linear-gradient(90deg, #f9f9f9 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee | + | | = style="width:{{#if:{{{width|}}}|{{{width|}}}px|310px}}; background: linear-gradient(90deg, #f9f9f9 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;" |
}} | }} | ||
!style="text-align:left;padding-left:10px;height:40px;width:20px;"|{{#if:{{{2|}}}|<span style="white-space:nowrap; vertical-align: 4px; padding-left: 4px;">{{flag/{{lc:{{{2}}}}}}} </span>}} | !style="text-align:left;padding-left:10px;height:40px;width:20px;"|{{#if:{{{2|}}}|<span style="white-space:nowrap; vertical-align: 4px; padding-left: 4px;">{{flag/{{lc:{{{2}}}}}}} </span>}} | ||
| − | !style="text-align:left;"|{{#if:{{{1|TBD}}}|[[{{{1|TBD}}}]]|{{abbr|TBD|To Be Decided}}}} | + | !style="text-align:left;"|<span style="white-space: pre">{{#if:{{{link|}}}| |
| + | {{#switch: {{{link}}} | ||
| + | |false={{{1}}} | ||
| + | |true=[[{{{1}}}]] | ||
| + | |abbr={{abbr|{{{1|}}}|{{{abbr}}}}} | ||
| + | |[[{{{link}}}|{{{1}}}]]}} | ||
| + | |{{#if:{{{1|TBD}}}|[[{{{1|TBD}}}]]|{{abbr|TBD|To Be Decided}}}} | ||
| + | |[[{{{1}}}]]}}</span> | ||
!style="font-weight:normal; text-align:right; padding-right:10px; color:#777;"|{{#if:{{{3|NS}}}|<small>''Joined {{{3}}} ({{Age|{{{3}}}|0|0}} years)''</small>|}} | !style="font-weight:normal; text-align:right; padding-right:10px; color:#777;"|{{#if:{{{3|NS}}}|<small>''Joined {{{3}}} ({{Age|{{{3}}}|0|0}} years)''</small>|}} | ||
|}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | |}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | ||
Latest revision as of 08:08, 17 December 2024
Documentation (view - edit)
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:
| Avenger | Joined 2002 (23 years) |
|---|
| Avenger | Joined 2002 (23 years) |
|---|
| ParadokS |
|---|
| TBD |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
| Modemkorv | Joined 2009 (16 years) |
|---|
- Default (name as link)
- Default with custom width (default is 310px)
- Leave year empty (shows no year)
- Leave all empty (shows TBD/noflag/noyear)
|style=inactiveset box style to inactive|style=redset box style to red|style=greenset box style to green|style=blueset box style to blue|style=purpleset box style to purple|style=yellowset box style to yellow