User:Joergens.mi/Definition Book-Templates

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Buchbeschreibungsvorlage / book description template[edit]

Description[edit]

Deutsch: Für jedes gescannte Buch wird eine eigene Buchvorlage angelegt. Die Form ist hier eindeutig definiert. Natürlich sind die Texte buchspezifisch. Zusätzlich wird zu jedem Buch eine Kategorie definiert. Diese 2 Elemente - Vorlage und Kategorie - sollten denselben Namen haben. Die Buchkategorie sollte in die Kategorie Category:de Wikisource book eingeordnet werden.


Sollte es in der deutschen Wikisource Informationen zu dem Autor geben oder ein Artikel existieren, bitte dies hier in die vorbereiteten Zeilen eintragen und die Kommentare entfernen.

Damit das System funktioniert ist der commonist - download commonist - 0.4.26 oder höher nötig. Im Verzeichnis etc ist das file image_wikimedia_commons.bpp nach image_wikimedia_commons.bpp.org zu kopieren. Der Inhalt von image_wikimedia_commons.bpp ist durch das unten angegebene Codestück vollständig zu ersetzen - ( Achtung Das muss eine ASCII-Editor sein) - und abzuspeichern. Das abgespeicherte File sollte man nach image_wikimedia_commons.bpp.org kopieren. Nutze ich die Originaldatei so funktioniert der commonist normal für Bilder, wird diese geänderte Vorlage geladen, so werden Bücher hochgeladen.

Der Name der zu nutzenden Buchvorlage ist in der linken Spalte unter Quelle einzutragen bevor das Hochladen begonnen wird.

Achtung: der Inhalt der Buch und Seitenvorlage hat sich leicht geändert. siehe unten


#// Ersatz für die Originaldatei um Bücher nach commons hochzuladen
#// Die File werden in der Reihenfolge nach commons geladen in der sie im rechten
#// Fenster erscheinen.
#//
#// encoding: UTF-8
#// in: common:Common, upload:Upload
#var elem(title) {
#	var pattern		= java.util.regex.Pattern.compile("(File:)?(.*)");
#	var matcher		= pattern.matcher(title);
#	if (!matcher.matches())	return null;
#	var namespace	= matcher.group(1);
#	var name		= matcher.group(2);
#	return this;
#}
#
#var link(title) {
#	if (title == null)	return "";
#      var page	= elem(title);
#	return page.name;
#}
== {{int:filedesc}} ==
# if (upload.description.startsWith("{{Information")) {
# } else {
{{$(common.source)|$(link(upload.previous))|$(link(upload.next))}}
#}
== {{int:license}} ==
$(common.licenseTemplate)
$(common.categories)
$(upload.categories)


English: This book description template will be written for every scanned book, with its own name. The contents of the template is mandatory in form. The only things that change are the individual texts. In addition there should be a category and an article. These 3 elements should have the same name. The category should be categorized as Category:de Wikisource book.

The page template shall use the C&P template below with DE Wikisource Image, the category shall use the C&P template with DE Wikisource Book

(The Article shall comprise the contents of the template and some information concerning this book. Part of the article is a gallery with all pages of the book in a sorted order beginning with envelope of the book. If there is a natural order in this book, this should be seen in the gallery.

)

Calling a book template:[edit]

{{W.Jäger_Conradin|file_001.jpg|file_002.jpg}}

Contents of all book templates. copy and paste example:[edit]

Für den neuen commonisten. 0.4.26 Der einzige Unterschied ist anstelle von BookNaviBar wird BookNaviBar2 genutzt der Rest bleibt gleich

<!-- Parameter:
1: previous page
2: next page
-->
{{BookNaviBar2|{{{1}}}|{{{2}}}}}
{{DE Wikisource Book Image|
|Title= [[:s:de:|]] 
|Source= books.google.com, {{GBS||US}}
|Author='''[[:s:de:|]]'''
|Image={{subst:PAGENAME}} p 001.jpg
|Publisher=
|City=
|Date=
|Language=german
|Category={{subst:PAGENAME}}
}}


ALT: wird in Zukunft nicht mehr genutzt Für den alten commonisten: der funktioniert nicht mehr da die einlogroutine geändert wurde

<!-- Parameter:
1: previous page
2: next page
-->{{BookNaviBar|..|jpg|{{{1}}}|{{{2}}}}}
{{Information
|Description = {{de|Dies ist ein Scan des historischen Buches:}}
               {{en|This is a scan of the historical document:}}
Title: ''' '''
<!-->:'''Volltext bei de.wikisource: [[:s:de:Seitentitel|Seitentitel]]'''<-->
|Source      = {{de|Der Scan wurde anhand einer original Buchvorlage vorgenommen}}
               {{en|Scan from original book}}
|Date        = ..
|Author      = ..
<!-->:'''Autor bei de.wikisource: [[:s:de:Seitentitel|Seitentitel]]'''<-->
|Permission  = {{de|Der Text unterliegt keinerlei Copyright, da der Author mehr als 70 Jahre verstorben ist}}
               {{en|Out of copyright as author died more than 70 years ago}}
               {{PD-old}}
|other_versions = 
}}
[[Category:]]

Appearance:[edit]

As example the template {{W.Jäger Conradin}}

<<< previous next >>>

Geschichte Conrads II. Königs beyder Sicilien und Herzogs in Schwaben  Template:W.Jäger Conradin
Author
Wolfgang Jäger
image of artwork listed in title parameter on this page
Title
Geschichte Conrads II. Königs beyder Sicilien und Herzogs in Schwaben
Publisher
Ernst Christoph Grattenauer
Page overview W.Jäger Conradin
Language German
Publication date 1787
publication_date QS:P577,+1787-00-00T00:00:00Z/9
Place of publication Nürnberg
Source Scan eines Exemplars aus Privatbesitz
Permission
(Reusing this file)
Public domain

This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 100 years or fewer.


This work is in the public domain in the United States because it was published (or registered with the U.S. Copyright Office) before January 1, 1929.