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"

From Jigsaw-Wiki
Jump to: navigation, search
(Clementoni added)
(corr.)
 
(5 intermediate revisions by the same user not shown)
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}}]]''' &rarr;&nbsp;{{#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}}]]''' &rarr;&nbsp;{{#switch:{{#var:_prod}}
  | Ravensburger=<code lang"text">Box-Top Jahr:{{{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">{{{val1}}}</code> <code lang"text">{{{val2}}}</code> <code lang"text">{{{val3}}}</code> <code lang"text">{{{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">{{#if:{{IsNum|{{{val3}}}}}|19}}{{{val3}}}</code>
 
  | Castorland=<code lang"text">{{{val1}}}</code>
 
  | Castorland=<code lang"text">{{{val1}}}</code>
  | Clementoni=<br>Box Top: <code lang"text">{{{val1}}}</code><br>Box Bot: <code lang"text">{{{val2}}}</code><br>Puz Bag: <code lang"text">19{{{val3}}}</code>
+
  | Clementoni=<br>Box Top: <code lang"text">{{{val1}}}</code><br>Box Bot: <code lang"text">{{{val2}}}</code><br>Puz Bag: <code lang"text">{{{val3}}}</code>
 
  | Educa=<code lang"text">none</code>
 
  | Educa=<code lang"text">none</code>
 
  | Prinz=<code lang"text">Barcode: {{#if:{{{val1|}}}|{{{val1}}}|?}} Saison:{{#if:{{{val2|}}}|{{{val2}}}|?}} WGR:{{#if:{{{val3|}}}|{{{val3}}}|?}} Auftr:{{#if:{{{val4|}}}|{{{val4}}}|?}}</code>
 
  | Prinz=<code lang"text">Barcode: {{#if:{{{val1|}}}|{{{val1}}}|?}} Saison:{{#if:{{{val2|}}}|{{{val2}}}|?}} WGR:{{#if:{{{val3|}}}|{{{val3}}}|?}} Auftr:{{#if:{{{val4|}}}|{{{val4}}}|?}}</code>
 
  | #default = <code lang"text">{{{val1}}}</code> <code lang"text">{{{val2}}}</code> <code lang"text">{{{val3}}}</code> <code lang"text">{{{val4}}}</code>
 
  | #default = <code lang"text">{{{val1}}}</code> <code lang"text">{{{val2}}}</code> <code lang"text">{{{val3}}}</code> <code lang"text">{{{val4}}}</code>
 
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:MoreData {{#var:_prod}}]]}}</includeonly>
 
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:MoreData {{#var:_prod}}]]}}</includeonly>

Latest revision as of 11:26, 4 April 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:

More data

More data Ravensburger → Box-Top Jahr:2009 Box-Top Monat:11 Box-Top:856058 Box-Bottom:858120
More data Ravensburger → Box-Top Jahr:1995 Box-Top Monat:08 Box-Top:856058 Box-Bottom:858120