Template:Infobox collection: Difference between revisions
Clemens Radl (talk | contribs) Started with templatedata |
author1-3: replaced auto value with three suggested values (the user names of the three PIs) |
||
| (39 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{| class="wikitable floatright" | {| class="wikitable floatright" | ||
{{infoboxtablerow|title=Title|value={{{title|?}}}}}}} | |||
| {{{title|}}} | {{infoboxtablerow|title=Key|value={{{key|?}}}}}}} | ||
| | |||
{{#if:{{{alttitle|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle}}}}}}} | {{#if:{{{alttitle|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle}}}}}}} | ||
{{#if:{{{alttitle1|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle1}}}}}}} | {{#if:{{{alttitle1|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle1}}}}}}} | ||
| Line 28: | Line 13: | ||
{{#if:{{{alttitle9|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle9}}}}}}} | {{#if:{{{alttitle9|}}}|{{infoboxtablerow|title=Alternative title|value={{{alttitle9}}}}}}} | ||
{{#if:{{{wikidata|}}}|{{infoboxtablerow|title=Wikidata Item no.|value=[https://www.wikidata.org/wiki/{{{wikidata}}} {{{wikidata}}}]}}}} | {{#if:{{{wikidata|}}}|{{infoboxtablerow|title=Wikidata Item no.|value=[https://www.wikidata.org/wiki/{{{wikidata}}} {{{wikidata}}}]}}}} | ||
{{#if:{{{size|}}}|{{infoboxtablerow|title=Size|value={{{size}}}}}}} | |||
| {{{tpq| | {{#if:{{{tpq|}}}|{{infoboxtablerow|title=Terminus post quem|value={{{tpq}}}}}}} | ||
| | {{#if:{{{taq|}}}|{{infoboxtablerow|title=Terminus ante quem|value={{{taq}}}}}}} | ||
{{infoboxtablerow|title=Century|value={{{century|?}}}}}}} | |||
| {{{ | {{#if:{{{location|}}}|{{infoboxtablerow|title=Place of origin|value={{{location}}}}}}} | ||
| | {{#if:{{{normregion|}}}|{{infoboxtablerow|title=European region of origin|value={{{normregion}}}}}}} | ||
{{#if:{{{generalregion|}}}|{{infoboxtablerow|title=General region of origin|value={{{generalregion}}}}}}} | |||
| {{{ | {{#if:{{{specificregion|}}}|{{infoboxtablerow|title=Specific region of origin|value={{{specificregion}}}}}}} | ||
{{#if:{{{author1|}}}|{{infoboxtablerow|title=Author|value={{{author1}}}}}}} | |||
{{#if:{{{author2|}}}|{{infoboxtablerow|title=Author|value={{{author2}}}}}}} | |||
{{#if:{{{author3|}}}|{{infoboxtablerow|title=Author|value={{{author3}}}}}}} | |||
{{#if:{{{structure|}}}|{{infoboxtablerow|title=Structure|value={{{structure}}}}}}} | |||
{{#if:{{{mss|}}}|{{infoboxtablerow|title=No. of manuscripts|value={{{mss}}}}}}} | |||
|} | |} | ||
<noinclude> | <noinclude> | ||
<templatedata> | |||
{ | |||
"description": "Infobox for a collection entry", | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "Collection title, usually the same as the page title", | |||
"required": true, | |||
"autovalue": "{{subst:FULLPAGENAME}}" | |||
}, | |||
"key": { | |||
"label": "Key", | |||
"description": "The Clavis Canonum database key (usually two upper case letters)", | |||
"required": false | |||
}, | |||
"author1": { | |||
"label": "Principal author 1", | |||
"description": "The author of this description (up to three authors are supported). Please use the form \"First name(s) Surname\". Please use only one name per field and link it to the user page.", | |||
"required": true, | |||
"type": "string", | |||
"example": "[[User:Clemens Radl|Clemens Radl]]", | |||
"suggestedvalues": [ | |||
"[[User:Clemens Radl|Clemens Radl]]", | |||
"[[User:Danica Summerlin|Danica Summerlin]]", | |||
"[[User:Christof Rolker|Christof Rolker]]" | |||
] | |||
}, | |||
"author2": { | |||
"label": "Principal author 2", | |||
"description": "Second author of this description (up to three authors are supported). Please provide only one name in the form \"First name(s) Surname\" and link it to the user page.", | |||
"required": false, | |||
"type": "string", | |||
"example": "[[User:Danica Summerlin|Danica Summerlin]]", | |||
"suggestedvalues": [ | |||
"[[User:Clemens Radl|Clemens Radl]]", | |||
"[[User:Danica Summerlin|Danica Summerlin]]", | |||
"[[User:Christof Rolker|Christof Rolker]]" | |||
] | |||
}, | |||
"author3": { | |||
"label": "Principal author 3", | |||
"description": "Third author of this description (up to three authors are supported). Please provide only one name in the form \"First name(s) Surname\" and link it to the user page.", | |||
"required": false, | |||
"type": "string", | |||
"example": "[[User:Christof Rolker|Christof Rolker]]", | |||
"suggestedvalues": [ | |||
"[[User:Clemens Radl|Clemens Radl]]", | |||
"[[User:Danica Summerlin|Danica Summerlin]]", | |||
"[[User:Christof Rolker|Christof Rolker]]" | |||
] | |||
}, | |||
"alttitle": { | |||
"label": "Alternative title", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle1": { | |||
"label": "Alternative title 1", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle2": { | |||
"label": "Alternative title 2", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle3": { | |||
"label": "Alternative title 3", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle4": { | |||
"label": "Alternative title 4", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle5": { | |||
"label": "Alternative title 5", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle6": { | |||
"label": "Alternative title 6", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle7": { | |||
"label": "Alternative title 7", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle8": { | |||
"label": "Alternative title 8", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"alttitle9": { | |||
"label": "Alternative title 9", | |||
"description": "Alternative title for the collection, you can use up to ten alternative titles.", | |||
"required": false | |||
}, | |||
"taq": { | |||
"label": "Terminus ante quem", | |||
"description": "Please give one specific year, avoid qualifiers such as 'ca.'", | |||
"required": false | |||
}, | |||
"tpq": { | |||
"label": "Terminus post quem", | |||
"description": "Please give one specific year, avoid qualifiers such as 'ca.'", | |||
"required": false | |||
}, | |||
"century": { | |||
"label": "Century", | |||
"description": "Please choose one century. The page should also be placed in the corresponding category.", | |||
"required": false, | |||
"suggestedvalues": [ | |||
"saec. I", | |||
"saec. II", | |||
"saec. III", | |||
"saec. IV", | |||
"saec. V", | |||
"saec. VI", | |||
"saec. VII", | |||
"saec. VIII", | |||
"saec. IX", | |||
"saec. X", | |||
"saec. XI", | |||
"saec. XII", | |||
"saec. XIII" | |||
] | |||
}, | |||
"location": { | |||
"label": "Place of origin", | |||
"required": false, | |||
"description": "If applicable, supply a precise place of origin (modern place names).", | |||
"example": "Regensburg, Worms, Rome, ..." | |||
}, | |||
"size": { | |||
"label": "Size", | |||
"description": "Please use one of the suggested entries. The page should also be placed in the corresponding category of the same name.", | |||
"suggestedvalues": [ | |||
"very large (more than 2000 canons)", | |||
"large (1000 to 2000 canons)", | |||
"medium (500 to 1000 canons)", | |||
"small (100 to 500 canons)", | |||
"very large (more than 2000 canons)", | |||
"very small (less than 100 canons)", | |||
"index (no canons)" | |||
] | |||
}, | |||
"wikidata": { | |||
"label": "Wikidata Item No.", | |||
"description": "Just the wikidata number, usually beginning with 'Q...' followed by several digits, the appropriate link will be created automatically", | |||
"required": false | |||
}, | |||
"structure": { | |||
"label": "Structure", | |||
"description": "Structure of the collection, please choose one that seems best fitting.", | |||
"suggestedvalues": [ | |||
"chronological", | |||
"by topic", | |||
"farrago" | |||
] | |||
}, | |||
"mss": { | |||
"label": "Manuscripts", | |||
"description": "Please choose the appropriate category", | |||
"suggestedvalues": [ | |||
"none", | |||
"one", | |||
"some (2–9)", | |||
"many (10 to 99)", | |||
"very many (100+)" | |||
] | |||
}, | |||
"normregion": { | |||
"label": "Region of origin", | |||
"description": "If at all possible, please choose one of the predefined regions. If none of them seems fitting, you may leave this field blank and enter one of the other values from the broader regional categories into the field \"General region\". If you know the exact place of origin, please use the field \"Place of origin\" above and also specify the appropriate region here.", | |||
"suggestedvalues": [ | |||
"Western France", | |||
"Southern France", | |||
"Eastern France", | |||
"Northern France", | |||
"Iberian Peninsula (excluding Catalonia)", | |||
"Northern Italy", | |||
"Central Italy", | |||
"Southern Italy", | |||
"Western Germany", | |||
"Southern Germany", | |||
"England", | |||
"Ireland", | |||
"Northern Africa" | |||
] | |||
}, | |||
"generalregion": { | |||
"label": "General region", | |||
"description": "This is an alternative region parameter. If you cannot fit the collection into one of the predefined thirteen European regions, you may use higher level regions here (such as \"Italy\" instead of the more specific \"Northern\", \"Central\", or \"Southern Italy\").", | |||
"suggestedvalues": [ | |||
"Italy", | |||
"Southern Europe and Mediterranean", | |||
"France", | |||
"Northwestern Europe", | |||
"Germany" | |||
] | |||
}, | |||
"specificregion": { | |||
"label": "Specific region", | |||
"description": "If possible, you can add a specific region below the level of the predefined European regions. This value should correspond to an appropriate category.", | |||
"example": "Bavaria" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"title", | |||
"alttitle", | |||
"alttitle1", | |||
"alttitle2", | |||
"alttitle3", | |||
"alttitle4", | |||
"alttitle5", | |||
"alttitle6", | |||
"alttitle7", | |||
"alttitle8", | |||
"alttitle9", | |||
"key", | |||
"author1", | |||
"author2", | |||
"author3", | |||
"size", | |||
"tpq", | |||
"taq", | |||
"century", | |||
"location", | |||
"normregion", | |||
"generalregion", | |||
"specificregion", | |||
"wikidata", | |||
"structure", | |||
"mss" | |||
] | |||
} | |||
</templatedata> | |||
== Usage == | == Usage == | ||
To manually insert an infobox, you can copy&paste the following lines (containing only those fields that normally are filled; for a complete list, see above): | |||
<code><nowiki> | |||
{{Infobox collection | |||
| century = saec. ... | |||
| title = Collectio ... | |||
| location = | |||
| normregion = | |||
| wikidata = | |||
| alttitle = | |||
| author1 = | |||
}} | |||
If you you the visual edit mode, enter two "{", select "Infobox collection" when prompted, and fill out at the very least the pre-selected fields; there are drop-down menues that help you with fields that have certain standard values. You can normally leave the field "title" empty, but please leave your own (user) name in the appropriate box. | |||
</nowiki></code> | |||
[[Category:Template]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 22:45, 23 November 2025
| Title | ? |
|---|---|
| Key | ? |
| Century | ? |
Infobox for a collection entry
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Collection title, usually the same as the page title
| Unknown | required |
| Alternative title | alttitle | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 1 | alttitle1 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 2 | alttitle2 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 3 | alttitle3 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 4 | alttitle4 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 5 | alttitle5 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 6 | alttitle6 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 7 | alttitle7 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 8 | alttitle8 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Alternative title 9 | alttitle9 | Alternative title for the collection, you can use up to ten alternative titles. | Unknown | optional |
| Key | key | The Clavis Canonum database key (usually two upper case letters) | Unknown | optional |
| Principal author 1 | author1 | The author of this description (up to three authors are supported). Please use the form "First name(s) Surname". Please use only one name per field and link it to the user page.
| String | required |
| Principal author 2 | author2 | Second author of this description (up to three authors are supported). Please provide only one name in the form "First name(s) Surname" and link it to the user page.
| String | optional |
| Principal author 3 | author3 | Third author of this description (up to three authors are supported). Please provide only one name in the form "First name(s) Surname" and link it to the user page.
| String | optional |
| Size | size | Please use one of the suggested entries. The page should also be placed in the corresponding category of the same name.
| Unknown | optional |
| Terminus post quem | tpq | Please give one specific year, avoid qualifiers such as 'ca.' | Unknown | optional |
| Terminus ante quem | taq | Please give one specific year, avoid qualifiers such as 'ca.' | Unknown | optional |
| Century | century | Please choose one century. The page should also be placed in the corresponding category.
| Unknown | optional |
| Place of origin | location | If applicable, supply a precise place of origin (modern place names).
| Unknown | optional |
| Region of origin | normregion | If at all possible, please choose one of the predefined regions. If none of them seems fitting, you may leave this field blank and enter one of the other values from the broader regional categories into the field "General region". If you know the exact place of origin, please use the field "Place of origin" above and also specify the appropriate region here.
| Unknown | optional |
| General region | generalregion | This is an alternative region parameter. If you cannot fit the collection into one of the predefined thirteen European regions, you may use higher level regions here (such as "Italy" instead of the more specific "Northern", "Central", or "Southern Italy").
| Unknown | optional |
| Specific region | specificregion | If possible, you can add a specific region below the level of the predefined European regions. This value should correspond to an appropriate category.
| Unknown | optional |
| Wikidata Item No. | wikidata | Just the wikidata number, usually beginning with 'Q...' followed by several digits, the appropriate link will be created automatically | Unknown | optional |
| Structure | structure | Structure of the collection, please choose one that seems best fitting.
| Unknown | optional |
| Manuscripts | mss | Please choose the appropriate category
| Unknown | optional |
Usage
To manually insert an infobox, you can copy&paste the following lines (containing only those fields that normally are filled; for a complete list, see above):
{{Infobox collection
| century = saec. ...
| title = Collectio ...
| location =
| normregion =
| wikidata =
| alttitle =
| author1 =
}}
If you you the visual edit mode, enter two "{", select "Infobox collection" when prompted, and fill out at the very least the pre-selected fields; there are drop-down menues that help you with fields that have certain standard values. You can normally leave the field "title" empty, but please leave your own (user) name in the appropriate box.