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:Puzzle"
(no dpl) |
|||
(42 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
}, | }, | ||
"TITLE-D": { | "TITLE-D": { | ||
− | "label": {"en": "Title, | + | "label": {"en": "Title, German","de": "Titel, deutsch"}, |
"description": {"en": "German title, if available, translation in '()' possible","de": "deutscher Titel, falls vorhanden; sonst Übersetzung/eigener in Klammern '()'"}, | "description": {"en": "German title, if available, translation in '()' possible","de": "deutscher Titel, falls vorhanden; sonst Übersetzung/eigener in Klammern '()'"}, | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"TITLE-E": { | "TITLE-E": { | ||
− | "label": {"en": "Title, | + | "label": {"en": "Title, English","de": "Titel, englisch"}, |
"description": {"en": "English title, if available, translation in '()' possible","de": "englischer Titel, falls vorhanden; sonst Übersetzung in Klammern '()'"}, | "description": {"en": "English title, if available, translation in '()' possible","de": "englischer Titel, falls vorhanden; sonst Übersetzung in Klammern '()'"}, | ||
"type": "string" | "type": "string" | ||
Line 51: | Line 51: | ||
"ARTNR": { | "ARTNR": { | ||
"label": {"en": "Article number","de": "Artikel-Nr."}, | "label": {"en": "Article number","de": "Artikel-Nr."}, | ||
− | "description": {"en": "Article number on box if | + | "description": {"en": "Article number on box if available, '-' otherwise","de": "Artikel-Nr. auf der Box, wenn vorhanden, '-' sonst"}, |
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 95: | Line 95: | ||
}, | }, | ||
"INSET": { | "INSET": { | ||
− | "label": {"en": "Puzzle | + | "label": {"en": "Puzzle set","de": "Puzzle-Set"}, |
− | "description": {"en": "Puzzle is part of a puzzle | + | "description": {"en": "Puzzle is part of a puzzle set (two or more puzzles in one box)","de": "Puzzle ist Teil eines Puzzle-Sets (Mehrfachpuzzle)"}, |
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 136: | Line 136: | ||
} | } | ||
</templatedata> | </templatedata> | ||
− | [[Category: | + | [[Category:Puzzle templates]] |
− | </noinclude><includeonly>{{#if:{{{INSET|}}}|{{InSet|{{{INSET}}}}}}} | + | </noinclude><includeonly>__NOTOC__<!--{{DISPLAYTITLE:{{Project:Puzzle}} '''"{{{PIECES}}} {{#switch:{{Uselang}}|de={{#if:{{{TITLE-D|}}}|{{{TITLE-D}}}|{{#if:{{{TITLE-E|}}}|{{{TITLE-E}}}|{{{TITLE-O}}}}}}}|#default={{#if:{{{TITLE-E|}}}|{{{TITLE-E}}}|{{#if:{{{TITLE-D|}}}|{{{TITLE-D}}}|{{{TITLE-O}}}}}}}}}"'''}}-->{{#if:{{{INSET|}}}|{{InSet|{{{INSET}}}}}}} |
{|cellspacing="5" cellpadding="5" style="border-style:solid; border-color:#000000; border-width:1px;" | {|cellspacing="5" cellpadding="5" style="border-style:solid; border-color:#000000; border-width:1px;" | ||
!+ style="background-color:#E6E6E6; font-size:120%;"|{{Project:Puzzle-Data}} | !+ style="background-color:#E6E6E6; font-size:120%;"|{{Project:Puzzle-Data}} | ||
Line 146: | Line 146: | ||
{| class="wikitable" | {| class="wikitable" | ||
! {{Project:Puzzle-Pieces}} | ! {{Project:Puzzle-Pieces}} | ||
− | {{!}} [[:Category:{{{PIECES}}} | + | {{!}} [[:Category:{{{PIECES}}} Pieces|{{{PIECES}}}]] |
|- | |- | ||
{{#if: {{{PIECESR|}}}| | {{#if: {{{PIECESR|}}}| | ||
− | ! {{Project:Puzzle-PiecesR}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-PiecesR}} |
{{!}} {{{PIECESR}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/PIECESR fehlt]]</span>}} | {{!}} {{{PIECESR}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/PIECESR fehlt]]</span>}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{TITLE-D|}}}| | {{#if:{{{TITLE-D|}}}| | ||
− | ! {{Project:Puzzle-Title-de}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-Title-de}} |
{{!}} {{{TITLE-D}}} | {{!}} {{{TITLE-D}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{TITLE-E|}}}| | {{#if:{{{TITLE-E|}}}| | ||
− | ! {{Project:Puzzle-Title-en}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-Title-en}} |
{{!}} {{{TITLE-E}}} | {{!}} {{{TITLE-E}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{TITLE-O|}}}| | {{#if:{{{TITLE-O|}}}| | ||
− | ! {{Project:Puzzle-Title-orig}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-Title-orig}} |
{{!}} {{{TITLE-O}}} | {{!}} {{{TITLE-O}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{TITLE-S|}}}| | {{#if:{{{TITLE-S|}}}| | ||
− | ! {{Project:Puzzle-Title-others}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-Title-others}} |
− | {{!}} {{{TITLE-S}}} | + | {{!}} {{#replace:{{{TITLE-S}}}|<br>|<hr>}} |
}} | }} | ||
|- | |- | ||
Line 185: | Line 185: | ||
{{#if: {{{ARTNR|}}}| | {{#if: {{{ARTNR|}}}| | ||
! {{Project:Puzzle-Artnr}} | ! {{Project:Puzzle-Artnr}} | ||
− | {{!}} {{#ifeq:{{{ARTNR}}}|-|{{Project:Category-UnknownArtNr}}|{{{ARTNR}}}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/ARTNR fehlt]]</span>}} | + | {{!}} {{#ifeq:{{{ARTNR}}}|-|{{Project:Category-UnknownArtNr}}|{{#ifeq:{{{PRODUCER}}}|Ravensburger| |
+ | {{Exist|Category:Ravensburger_ArtNr_{{{ARTNR}}}|[[:Category:Ravensburger ArtNr {{{ARTNR}}}|{{{ARTNR}}}]]|{{{ARTNR}}}}} | ||
+ | |{{{ARTNR}}}}}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/ARTNR fehlt]]</span>}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{GTIN|}}}| | {{#if: {{{GTIN|}}}| | ||
! {{Project:Puzzle-GTIN}} | ! {{Project:Puzzle-GTIN}} | ||
− | {{!}} {{#ifeq:{{{GTIN}}}|-|ohne GTIN|[http://www.ean-suche.de/perl/ean-search.pl?q={{{GTIN}}} {{{GTIN}}}]}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/GTIN fehlt]]</span>}} | + | {{!}} {{#ifeq:{{{GTIN}}}|-|ohne GTIN|[http://www.ean-suche.de/perl/ean-search.pl?q={{{GTIN}}} {{{GTIN}}}]{{#ifeq:{{#len:{{{GTIN}}}}}|13||{{Alert|!|{{ErrLink|02}}}}[[Category:Errors]]}}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/GTIN fehlt]]</span>}} |
}} | }} | ||
|- | |- | ||
Line 205: | Line 207: | ||
{{#if: {{{SERIES|}}} | | {{#if: {{{SERIES|}}} | | ||
! {{Project:Puzzle-Series}} | ! {{Project:Puzzle-Series}} | ||
− | {{!}} {{ | + | {{!}} [[:Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})|{{{SERIES}}}]] |
}} | }} | ||
|- | |- | ||
− | |||
! {{Project:Puzzle-Shape}} | ! {{Project:Puzzle-Shape}} | ||
− | {{!}} [[:Category:{{{SHAPE}}}|{{{SHAPE}}}]]|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SHAPE fehlt]]</span>}} | + | {{!}} {{#if:{{{SHAPE|}}}|[[:Category:{{{SHAPE}}}|{{Project:Puzzle-Shape-{{{SHAPE}}}}}]]|{{Alert|!|{{ErrLink|03}}}}[[Category:Errors]]{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SHAPE fehlt]]</span>}} |
}} | }} | ||
|- | |- | ||
{{#if:{{{PRODUCER|}}}| | {{#if:{{{PRODUCER|}}}| | ||
! {{Project:Puzzle-Box}} | ! {{Project:Puzzle-Box}} | ||
− | {{!}} {{#ifeq:{{{PRODUCER}}}|-||{{#if: {{{BOX|}}} | [[ | + | {{!}} {{#ifeq:{{{PRODUCER}}}|-||{{#if: {{{BOX|}}} | [[Boxes {{{PRODUCER}}}#{{{BOX}}}|{{{PRODUCER}}} {{{BOX}}}]] | [[Boxes {{{PRODUCER}}}|{{{PRODUCER}}}]]}}}} |
}} | }} | ||
|- | |- | ||
Line 224: | Line 225: | ||
|- | |- | ||
{{#if:{{{SIZEC|}}}| | {{#if:{{{SIZEC|}}}| | ||
− | ! {{Project:Puzzle-SizeC}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-SizeC}} |
− | {{!}} {{{SIZEC}}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SIZEC fehlt]]</span>}} | + | {{!}} {{{SIZEC}}}{{#if:{{#pos:{{{SIZEC}}}|,}}||{{Alert|!|{{ErrLink|01}}}}[[Category:Errors]]}}|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SIZEC fehlt]]</span>}} |
}} | }} | ||
|- | |- | ||
{{#if:{{{SIZEP|}}}| | {{#if:{{{SIZEP|}}}| | ||
− | ! {{Project:Puzzle-SizeP}} | + | ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-SizeP}} |
− | {{!}} {{#ifeq:{{{SIZEP}}}| | + | {{!}} <!--{{#ifeq:{{{SIZEP}}}|Irregular|[[:Category:Irregular|{{Project:Puzzle-Shape-Irregular}}]]|{{{SIZEP}}}}}-->{{#ifeq:{{#pos:0123456789|{{#sub:{{{SIZEP}}}|0|1}}}}||[[:Category:{{{SIZEP}}}|{{Project:Puzzle-Shape-{{{SIZEP}}}}}]]|{{{SIZEP}}}}} |
+ | |{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SIZEP fehlt]]</span>}} | ||
}} | }} | ||
|- | |- | ||
Line 257: | Line 259: | ||
}} | }} | ||
|}<!-- | |}<!-- | ||
− | + | {{#if:{{{SERIES|}}}|{{#inCategory:Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})|Category:Series {{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}}||{{Hinweis|Die Serie "[[:Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})|{{{SERIES}}}]]" ist nicht in "[[:Category:Series {{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}}|Series {{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}}]]" vorhanden!}}}}|}} | |
-->{{DEFAULTSORT:{{Sorting|{{NoUmlaut|{{NoPieces|{{PAGENAME}}}}}}}}}}<!-- | -->{{DEFAULTSORT:{{Sorting|{{NoUmlaut|{{NoPieces|{{PAGENAME}}}}}}}}}}<!-- | ||
-->[[Category:Puzzles]]<!-- | -->[[Category:Puzzles]]<!-- | ||
− | -->[[Category:{{{PIECES}}} | + | -->[[Category:{{{PIECES}}} Pieces]]<!-- |
-->{{#if:{{{PRODUCER|}}}|{{#ifeq:{{{PRODUCER}}}|-|[[Category:Unknown producer]]|[[Category:{{{PRODUCER}}}]]}}}}<!-- | -->{{#if:{{{PRODUCER|}}}|{{#ifeq:{{{PRODUCER}}}|-|[[Category:Unknown producer]]|[[Category:{{{PRODUCER}}}]]}}}}<!-- | ||
− | -->{{#if:{{{PRODUCER|}}}|{{#ifeq:{{{PRODUCER}}}|-|[[Category:{{{PIECES}}} | + | -->{{#if:{{{PRODUCER|}}}|{{#ifeq:{{{PRODUCER}}}|-|[[Category:{{{PIECES}}} Unknown producer]]|[[Category:{{{PIECES}}} {{{PRODUCER}}}]]}}}}<!-- |
-->{{#if:{{{ARTIST|}}}|{{#ifeq:{{{ARTIST}}}|-|[[Category:Unknown artist]]|{{SplitCat|{{{ARTIST}}}|cat}}}}}}<!-- | -->{{#if:{{{ARTIST|}}}|{{#ifeq:{{{ARTIST}}}|-|[[Category:Unknown artist]]|{{SplitCat|{{{ARTIST}}}|cat}}}}}}<!-- | ||
-->{{#if:{{{GENRE|}}}|{{SplitCat|{{{GENRE}}}|cat}}}}<!-- | -->{{#if:{{{GENRE|}}}|{{SplitCat|{{{GENRE}}}|cat}}}}<!-- | ||
− | -->{{#if:{{{SERIES|}}}|[[Category:{{{SERIES}}} ({{# | + | -->{{#if:{{{SERIES|}}}|[[Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})]]}}<!-- |
-->{{#if:{{{SHAPE|}}}|[[Category:{{{SHAPE}}}]]}}<!-- | -->{{#if:{{{SHAPE|}}}|[[Category:{{{SHAPE}}}]]}}<!-- | ||
− | -->{{#ifeq:{{{SIZEP|}}}| | + | {{#ifeq:{{{SIZEP|}}}|Irregular|[[Category:Irregular]]}} |
+ | -->{{#if:{{{SIZEP|}}}|{{#ifeq:{{#pos:0123456789|{{#sub:{{{SIZEP}}}|0|1}}}}||[[Category:{{{SIZEP}}}]]|}}}}<!-- | ||
-->{{#if:{{{YEAR|}}}|{{#ifeq:{{{YEAR}}}|-|[[Category:Unknown year]]|[[Category:{{{YEAR}}}]]}}}}<!-- | -->{{#if:{{{YEAR|}}}|{{#ifeq:{{{YEAR}}}|-|[[Category:Unknown year]]|[[Category:{{{YEAR}}}]]}}}}<!-- | ||
− | -->{{#ifexpr:{{{PIECES}}}>=5000|[[Category: | + | -->{{#ifexpr:{{{PIECES}}}>=5000|[[Category:Big puzzles]]}}<!-- |
+ | -->{{#if:{{{ARTNR|}}}|{{#ifeq:{{{PRODUCER}}}|Ravensburger|{{Exist|Category:Ravensburger_ArtNr_{{{ARTNR}}}|[[Category:Ravensburger ArtNr {{{ARTNR}}}]]}}}}}}</includeonly> |
Latest revision as of 11:34, 21 November 2022
All data of a puzzle.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Pieces | PIECES | Number pieces on box
| Number | required |
Pieces, real | PIECESR | Real number of pieces
| Number | optional |
Title, German | TITLE-D | German title, if available, translation in '()' possible
| String | optional |
Title, English | TITLE-E | English title, if available, translation in '()' possible
| String | optional |
Title, original | TITLE-O | Original title, if only available
| String | optional |
Title, others | TITLE-S | Other titles separated by '<br>'
| String | optional |
Genres | GENRE | Topic of puzzle separated by ';'
| String | optional |
Producer | PRODUCER | Producer of the puzzle
| String | optional |
Year | YEAR | Year of release if available, '-' otherwise
| String | optional |
Article number | ARTNR | Article number on box if available, '-' otherwise
| String | optional |
GTIN-Code | GTIN | GTIN-barcode if available, '-' otherwise
| String | optional |
Artist | ARTIST | Artist(s) separated by ';', '-' otherwise
| String | optional |
Puzzle-series | SERIES | Puzzle belongs to a series
| String | optional |
Shape | SHAPE | Shape of the puzzle
| String | optional |
Size [cm] | SIZEC | Size of the completed puzzle in [cm]
| String | optional |
Size [pieces] | SIZEP | Size of the completed puzzle in [pieces] or 'irregular'
| String | optional |
Box | BOX | Type of box
| String | optional |
Piece-set (unused) | PIECE-SET | Set of piece shapes
| String | optional |
Puzzle set | INSET | Puzzle is part of a puzzle set (two or more puzzles in one box)
| String | optional |
Remarks | REMARKS | Remarks on box not stored elsewhere
| String | optional |
State | STATE | Shows state of data/pictures
| String | optional |