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"

From Jigsaw-Wiki
Jump to: navigation, search
m
(no dpl)
 
(16 intermediate revisions by the same user not shown)
Line 149: Line 149:
 
  |-
 
  |-
 
  {{#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}}
 
  {{!}} {{#replace:{{{TITLE-S}}}|<br>|<hr>}}
 
  {{!}} {{#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}}
  {{!}} {{#dplvar:set|_prod|{{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}}}}[[:Category:{{{SERIES}}} ({{#dplvar:_prod}})|{{{SERIES}}}]]
+
  {{!}} [[:Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})|{{{SERIES}}}]]
 
  }}
 
  }}
 
  |-
 
  |-
{{#if: {{{SHAPE|}}}|
 
 
  ! {{Project:Puzzle-Shape}}
 
  ! {{Project:Puzzle-Shape}}
  {{!}} [[:Category:{{{SHAPE}}}|{{Project:Puzzle-Shape-{{{SHAPE}}}}}]]|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SHAPE fehlt]]</span>}}
+
  {{!}} {{#if:{{{SHAPE|}}}|[[:Category:{{{SHAPE}}}|{{Project:Puzzle-Shape-{{{SHAPE}}}}}]]|{{Alert|&#33;|{{ErrLink|03}}}}[[Category:Errors]]{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SHAPE fehlt]]</span>}}
 
  }}
 
  }}
 
  |-
 
  |-
Line 224: Line 225:
 
  |-
 
  |-
 
  {{#if:{{{SIZEC|}}}|
 
  {{#if:{{{SIZEC|}}}|
  ! {{Project:Puzzle-SizeC}}
+
  ! style="white-space: nowrap;"{{!}}{{Project:Puzzle-SizeC}}
  {{!}} {{{SIZEC}}}{{#if:{{#pos:{{{SIZEC}}}|,}}||{{Alert|!|Error in SIZEC}}}}[[Category:Errors]]|{{#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}}}|Irregular|[[:Category:Irregular|{{Project:Puzzle-Shape-Irregular}}]]|{{{SIZEP}}}}}-->{{#ifeq:{{#pos:0123456789|{{#sub:{{{SIZEP}}}|0|1}}}}||[[:Category:{{{SIZEP}}}|{{Project:Puzzle-Shape-{{{SIZEP}}}}}]]|{{{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>}}
 
|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<span style="display:none">[[Template:Puzzle/SIZEP fehlt]]</span>}}
Line 258: Line 259:
 
}}
 
}}
 
|}<!--
 
|}<!--
{{#if:{{{SERIES|}}}|{{#inCategory:Category:{{{SERIES}}} ({{#dplvar:_prod}})|Category:Series {{#dplvar:_prod}}||{{Hinweis|Die Serie "[[:Category:{{{SERIES}}} ({{#dplvar:_prod}})|{{{SERIES}}}]]" ist nicht in "[[:Category:Series {{#dplvar:_prod}}|Series {{#dplvar:_prod}}]]" vorhanden!}}}}|}}
+
{{#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]]<!--
Line 266: Line 267:
 
-->{{#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}}} ({{#dplvar:_prod}})]]}}<!--
+
-->{{#if:{{{SERIES|}}}|[[Category:{{{SERIES}}} ({{#ifeq:{{{PRODUCER}}}|-|Unknown producer|{{{PRODUCER}}}}})]]}}<!--
 
-->{{#if:{{{SHAPE|}}}|[[Category:{{{SHAPE}}}]]}}<!--
 
-->{{#if:{{{SHAPE|}}}|[[Category:{{{SHAPE}}}]]}}<!--
 
{{#ifeq:{{{SIZEP|}}}|Irregular|[[Category:Irregular]]}}
 
{{#ifeq:{{{SIZEP|}}}|Irregular|[[Category:Irregular]]}}
 
-->{{#if:{{{SIZEP|}}}|{{#ifeq:{{#pos:0123456789|{{#sub:{{{SIZEP}}}|0|1}}}}||[[Category:{{{SIZEP}}}]]|}}}}<!--
 
-->{{#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:Big puzzles]]}}</includeonly>
+
-->{{#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.

Template parameters

ParameterDescriptionTypeStatus
PiecesPIECES

Number pieces on box

Default
empty
Example
empty
Auto value
empty
Numberrequired
Pieces, realPIECESR

Real number of pieces

Default
empty
Example
empty
Auto value
empty
Numberoptional
Title, GermanTITLE-D

German title, if available, translation in '()' possible

Default
empty
Example
empty
Auto value
empty
Stringoptional
Title, EnglishTITLE-E

English title, if available, translation in '()' possible

Default
empty
Example
empty
Auto value
empty
Stringoptional
Title, originalTITLE-O

Original title, if only available

Default
empty
Example
empty
Auto value
empty
Stringoptional
Title, othersTITLE-S

Other titles separated by '<br>'

Default
empty
Example
empty
Auto value
empty
Stringoptional
GenresGENRE

Topic of puzzle separated by ';'

Default
empty
Example
empty
Auto value
empty
Stringoptional
ProducerPRODUCER

Producer of the puzzle

Default
empty
Example
empty
Auto value
empty
Stringoptional
YearYEAR

Year of release if available, '-' otherwise

Default
empty
Example
empty
Auto value
empty
Stringoptional
Article numberARTNR

Article number on box if available, '-' otherwise

Default
empty
Example
empty
Auto value
empty
Stringoptional
GTIN-CodeGTIN

GTIN-barcode if available, '-' otherwise

Default
empty
Example
empty
Auto value
empty
Stringoptional
ArtistARTIST

Artist(s) separated by ';', '-' otherwise

Default
empty
Example
empty
Auto value
empty
Stringoptional
Puzzle-seriesSERIES

Puzzle belongs to a series

Default
empty
Example
empty
Auto value
empty
Stringoptional
ShapeSHAPE

Shape of the puzzle

Default
empty
Example
empty
Auto value
empty
Stringoptional
Size [cm]SIZEC

Size of the completed puzzle in [cm]

Default
empty
Example
empty
Auto value
empty
Stringoptional
Size [pieces]SIZEP

Size of the completed puzzle in [pieces] or 'irregular'

Default
empty
Example
empty
Auto value
empty
Stringoptional
BoxBOX

Type of box

Default
empty
Example
empty
Auto value
empty
Stringoptional
Piece-set (unused)PIECE-SET

Set of piece shapes

Default
empty
Example
empty
Auto value
empty
Stringoptional
Puzzle setINSET

Puzzle is part of a puzzle set (two or more puzzles in one box)

Default
empty
Example
empty
Auto value
empty
Stringoptional
RemarksREMARKS

Remarks on box not stored elsewhere

Default
empty
Example
empty
Auto value
empty
Stringoptional
StateSTATE

Shows state of data/pictures

Default
empty
Example
empty
Auto value
empty
Stringoptional