Template:Moon: Difference between revisions

From A KoL Wiki
imported>Phlip
# in ParserFunctions
imported>Quietust
get rid of the named parameter calling method, since that's the only one being used now - hopefully, this will result in a slight speed increase
Line 1: Line 1:
{| style="width: 112px; border: none; margin: 0 auto; padding: 0; border-collapse: collapse; background: white"
{| style="width: 112px; border: none; margin: 0 auto; padding: 0; border-collapse: collapse; background: white"
| style="margin: 0; padding: 0; width: 11px" | {{#ifeq:{{{minimoon|{{{3|0}}}}}}|1|[[Image:Minimoon{{#switch:{{{ronald|{{{1|1}}}}}}|1|6|7|8=2}}.gif]]|}}
| style="margin: 0; padding: 0; width: 11px" | {{#ifeq:{{{3|0}}}|1|[[Image:Minimoon{{#switch:{{{1|1}}}|1|6|7|8=2}}.gif]]|}}
| style="margin: 0; padding: 0; width: 30px" | [[Image:Moon{{{ronald|{{{1|1}}}}}}{{#switch:{{{minimoon|{{{3|0}}}}}}|2=a|3=b}}.gif|Ronald]]
| style="margin: 0; padding: 0; width: 30px" | [[Image:Moon{{{1|1}}}{{#switch:{{{3|0}}}|2=a|3=b}}.gif|Ronald]]
| style="margin: 0; padding: 0; width: 30px; text-align: {{#switch:{{{minimoon|{{{3|0}}}}}}|4=center|9=right|10=left|left}}" | {{#switch:{{{minimoon|{{{3|0}}}}}}|4=[[Image:Minimoon{{#ifexpr:{{#switch:{{{ronald|{{{1|1}}}}}}|1|2|3|4=1|0}} and {{#switch:{{{grimace|{{{2|1}}}}}}|1|6|7|8=1|0}}|2|}}.gif]]|9=[[Image:Minimoon{{#switch:{{{grimace|{{{2|1}}}}}}|1|6|7|8=2}}.gif]]|10=[[Image:Minimoon{{#switch:{{{ronald|{{{1|1}}}}}}|1|2|3|4=2}}.gif]]}}
| style="margin: 0; padding: 0; width: 30px; text-align: {{#switch:{{{3|0}}}|4=center|9=right|10=left|left}}" | {{#switch:{{{3|0}}}|4=[[Image:Minimoon{{#ifexpr:{{#switch:{{{1|1}}}|1|2|3|4=1|0}} and {{#switch:{{{2|1}}}|1|6|7|8=1|0}}|2|}}.gif]]|9=[[Image:Minimoon{{#switch:{{{2|1}}}|1|6|7|8=2}}.gif]]|10=[[Image:Minimoon{{#switch:{{{1|1}}}|1|2|3|4=2}}.gif]]}}
| style="margin: 0; padding: 0; width: 30px" | [[Image:Moon{{{grimace|{{{2|1}}}}}}{{#switch:{{{minimoon|{{{3|0}}}}}}|5=a|6=b}}.gif|Grimace]]
| style="margin: 0; padding: 0; width: 30px" | [[Image:Moon{{{2|1}}}{{#switch:{{{3|0}}}|5=a|6=b}}.gif|Grimace]]
| style="margin: 0; padding: 0; width: 11px" | {{#ifeq:{{{minimoon|{{{3|0}}}}}}|7|[[Image:Minimoon{{#switch:{{{grimace|{{{2|1}}}}}}|1|2|3|4=2}}.gif]]|}}
| style="margin: 0; padding: 0; width: 11px" | {{#ifeq:{{{3|0}}}|7|[[Image:Minimoon{{#switch:{{{2|1}}}|1|2|3|4=2}}.gif]]|}}
|}<noinclude>
|}<noinclude>
----
----
<code>&#123;{moon|</code>''Ronald phase''<code>|</code>''Grimace phase''<code>|</code>''Minimoon position''<code>}}</code> or <code>&#123;{moon|ronald=</code>''Ronald phase''<code>|grimace=</code>''Grimace phase''<code>|minimoon=</code>''Minimoon position''<code>}}</code>
<code>&#123;{moon|</code>''Ronald phase''<code>|</code>''Grimace phase''<code>|</code>''Minimoon position''<code>}}</code>


Phase 1 is new, 5 is full.
Phase 1 is new, 5 is full.

Revision as of 20:45, 24 June 2006

Ronald Grimace

{{moon|Ronald phase|Grimace phase|Minimoon position}}

Phase 1 is new, 5 is full.

Minimoon position is 1-11, 1 is left of Ronald, 2&3 are in front of Ronald, etc. Remember that it counts by 2 every day. Use 0 (or leave it off entirely) for old displays before the minimoon existed.