Es gibt z.Z. Probleme mit einem Update, es ist nur Lesen möglich. Currently there are issues with the installation, readonly possible for now. |
Difference between revisions of "Template:MoreData"
(4-digit year for Ravs) |
(IsNum for Rav-year) |
||
Line 18: | Line 18: | ||
[[Category:Puzzle templates]]</noinclude><includeonly>{{#if:{{{head|}}}||=={{Project:Puzzle-MoreData}}==}} | [[Category:Puzzle templates]]</noinclude><includeonly>{{#if:{{{head|}}}||=={{Project:Puzzle-MoreData}}==}} | ||
{{#vardefine:_prod|Ravensburger}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifexist:{{PAGENAME}}|{{#vardefine:_prod|{{Trim|{{#dpl:title={{PAGENAME}}|skipthispage=no|include={Puzzle}:PRODUCER}}}}}}|{{#vardefine:_prod|default}}}}}}{{#if:{{#pos:{{#var:_prod}}|Extension}}|{{#vardefine:_prod|}}}}<div class="roundborder"><div class="toc noprint" style="display:block; border:none; background:Gainsboro; font-size:100%;">'''[[:Category:Boxes_MoreData#{{#var:_prod}}|{{Project:Puzzle-MoreData}} {{#var:_prod}}]]''' → {{#switch:{{#var:_prod}} | {{#vardefine:_prod|Ravensburger}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifexist:{{PAGENAME}}|{{#vardefine:_prod|{{Trim|{{#dpl:title={{PAGENAME}}|skipthispage=no|include={Puzzle}:PRODUCER}}}}}}|{{#vardefine:_prod|default}}}}}}{{#if:{{#pos:{{#var:_prod}}|Extension}}|{{#vardefine:_prod|}}}}<div class="roundborder"><div class="toc noprint" style="display:block; border:none; background:Gainsboro; font-size:100%;">'''[[:Category:Boxes_MoreData#{{#var:_prod}}|{{Project:Puzzle-MoreData}} {{#var:_prod}}]]''' → {{#switch:{{#var:_prod}} | ||
− | | Ravensburger=<code lang"text">Box-Top Jahr:{{#ifexpr:{{{val1}}}>80|19{{{val1}}}|20{{{val1}}}}}</code> <code>Box-Top Monat:{{{val2}}}</code> <code lang"text">Box-Top:{{{val3}}}</code> <code lang"text">Box-Bottom:{{{val4}}}</code> | + | | Ravensburger=<code lang"text">Box-Top Jahr:{{#if:{{IsNum|{{{val1}}}}}|{{#ifexpr:{{{val1}}}>80|19{{{val1}}}|20{{{val1}}}}}|{{{val1}}}|{{{val1}}}}}</code> <code>Box-Top Monat:{{{val2}}}</code> <code lang"text">Box-Top:{{{val3}}}</code> <code lang"text">Box-Bottom:{{{val4}}}</code> |
| Schmidt=<code lang"text">ID: {{{val1}}}</code> <code lang"text">Top: {{{val2}}}</code> <code lang"text">Bottom: {{{val3}}}</code> <code lang"text">Bag: {{{val4}}}</code> | | Schmidt=<code lang"text">ID: {{{val1}}}</code> <code lang"text">Top: {{{val2}}}</code> <code lang"text">Bottom: {{{val3}}}</code> <code lang"text">Bag: {{{val4}}}</code> | ||
| FX Schmid=<code lang"text">{{{val1}}}</code> <code lang"text">{{{val2}}}</code> <code lang"text">19{{{val3}}}</code> | | FX Schmid=<code lang"text">{{{val1}}}</code> <code lang"text">{{{val2}}}</code> <code lang"text">19{{{val3}}}</code> |
Revision as of 09:04, 17 February 2022
Template: MoreData
Anzeige weiterer Daten auf der Box...
Aufruf
{{MoreData|<head=>|val1=|val2=|val3=|val4=}}
- Je nach Hersteller werden hier verschiedene Daten gespeichert.
- Ist <head> angegeben wird die Überschrift nicht wieder ausgegeben.
Beispiel
- {{MoreData|val1=09|val2=11|val3=856058|val4=858120}}
- {{MoreData|head=n|val1=95|val2=08|val3=856058|val4=858120}}
erzeugt für ein Ravensburger-Puzzle: