|
|
(36 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
| <Templatestyles src="Infobox/style.css"></Templatestyles> | | <includeonly><templatestyles src="Infobox/style.css"></templatestyles> |
| <Templatestyles src="Artwork/style.css"></Templatestyles> | | <templatestyles src="Artwork/style.css"></templatestyles> |
| <Templatestyles src="TemplateData/style.css"></Templatestyles> | | <templatestyles src="TemplateData/style.css"></templatestyles> |
| <div class="infobox"> | | <div class="infobox"> |
| {| | | {| |
| |- class="infobox-image" | | |- class="infobox-image" |
| {{#if: {{{image|}}} | {{!}} align=center colspan=2 {{!}} [[Image:{{{image}}}|center|284px]] }} | | {{#if: {{{image|}}} | {{!}} align=center colspan=2 {{!}} [[Image:{{{image}}}|center|284px]] | [[Category:Artwork missing image]] }} |
| |- | | |- |
| | colspan="2" class="infoboxheader" | {{PAGENAME}} | | | colspan="2" class="infoboxheader" | {{PAGENAME}} |
Line 11: |
Line 11: |
| | | | | |
| |- | | |- |
| |- style="vertical-align: top;" | | |- class="infobox-tr" |
| {{#if: {{{name|}}} | {{!}} valign=top {{!}} '''Name''' {{!!}} {{{name}}} }} | | {{#if: {{{name|{{{title|}}}}}} | {{!}} class="infobox-parameter" {{!}} '''Name''' {{!!}} {{{name|{{{title}}}}}} }} |
| |- style="vertical-align: top;" | | |- class="infobox-tr" |
| {{#if: {{{description|}}} | {{!}} valign=top {{!}} '''Description''' {{!!}} {{{description}}} }} | | {{#if: {{{description|}}} | {{!}} class="infobox-parameter" {{!}} '''Description''' {{!!}} {{{description}}} }} |
| |- style="vertical-align: top;" | | |- class="infobox-tr" |
| {{#if: {{{location|}}} | {{!}} '''Location''' {{!!}} {{{location}}} }} | | {{#if: {{{location|{{{coords}}}}}} | {{!}} class="infobox-parameter" {{!}} '''Location''' {{!!}} {{{location|{{{coords}}}}}} }} |
| |- style="vertical-align: top;" | | |- class="infobox-tr" |
| {{#if: {{{id|}}} | {{!}} '''Atlas ID''' {{!!}} [https://place-atlas.stefanocoding.me/?id={{{id}}} {{{id}}} ] }} | | {{#if: {{{area|{{{pixels|}}}}}} | {{!}} class="infobox-parameter" {{!}} '''Area''' {{!!}} {{{area|{{{pixels}}}}}} pixels }} |
| |- style="vertical-align: top;" | | |- class="infobox-tr" |
| | | {{#if: {{{id|}}} | {{!}} class="infobox-parameter" {{!}} '''Atlas ID''' {{!!}} [https://{{#switch:{{{year|}}}|2017=2017|2023=2023|2022|#default=2022}}.place-atlas.stefanocoding.me/?id={{{id}}} {{{id}}}] {{#ifexist:{{{id}}}| |<br /> [[{{{id}}}]] redirect is missing ([[Help:Artwork_Redirects|What does this mean?]]) [[Category:Missing Artwork ID]] }} | [[Category:Missing Artwork ID]] }} |
| {{#if: {{{creator|}}} | {{!}} '''Creator''' {{!!}} {{{creator}}} }} | | |- class="infobox-tr" |
| | {{#if: {{{creator|{{{community|}}}}}} | {{!}} class="infobox-parameter" {{!}} '''Creator''' {{!!}} {{{creator|{{{community}}}}}} }} |
| |} | | |} |
| </div> | | </div> |
| <noinclude>
| | [[Category:Artwork]] |
| <br clear="all">
| | </includeonly> |
| <div class="template-doc">
| |
| == Usage ==
| |
| [[:Template:Artwork]] is a template, used to display a standard set of information at the top of an artwork page.
| |
| | |
| For <code><nowiki>[[Template:Artwork]]</nowiki></code>, template code then looks like this, simplified:
| |
| <pre>
| |
| {{Artwork
| |
| | name = {{{name|{{PAGENAME}}}}}
| |
| | description = {{{description}}}
| |
| | location = {{{location}}}
| |
| | community = {{{community}}}
| |
| | id = {{{id}}}
| |
| | image = {{{image|}}}
| |
| }}
| |
| </pre>
| |
| | |
| See below for detailed descriptions and examples of each of the parameters.
| |
| | |
| == Template Data ==
| |
| <Templatedata>
| |
| {
| |
| "params": {
| |
| "name": {
| |
| "aliases": [
| |
| "title"
| |
| ],
| |
| "label": "Name",
| |
| "description": "Short name or title of the artwork",
| |
| "example": "Tux the penguin",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "description": {
| |
| "label": "Description",
| |
| "description": "Brief description of what the artwork represents or where it came from",
| |
| "example": "Tux the penguin is the official Linux mascot",
| |
| "type": "unknown",
| |
| "suggested": true
| |
| },
| |
| "location": {
| |
| "aliases": [
| |
| "coords",
| |
| "coordinates"
| |
| ],
| |
| "label": "Location",
| |
| "description": "X,Y coordinates of the center of the artwork on the full placeatlas2 map",
| |
| "example": "45, 733",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "image": {
| |
| "label": "Image",
| |
| "description": "Cropped image file of the completed artwork",
| |
| "example": "artwork-placetux.png",
| |
| "type": "wiki-file-name",
| |
| "suggested": true
| |
| },
| |
| "creator": {
| |
| "aliases": [
| |
| "community"
| |
| ],
| |
| "label": "Creator",
| |
| "description": "Name of the place-wiki article about the community that created the artwork",
| |
| "example": "[[r/placetux]]",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "id": {
| |
| "aliases": [
| |
| "placeatlasid",
| |
| "placeatlas2id",
| |
| "atlasid"
| |
| ],
| |
| "label": "ID",
| |
| "description": "ID of the artwork description on the PlaceAtlas2",
| |
| "example": "txk8x7",
| |
| "type": "string",
| |
| "suggested": true
| |
| }
| |
| },
| |
| "description": "This template may be used to create a standard block of information about a piece of artwork,",
| |
| "format": "block",
| |
| "paramOrder": [
| |
| "name",
| |
| "description",
| |
| "location",
| |
| "id",
| |
| "creator",
| |
| "image"
| |
| ]
| |
| }
| |
| </Templatedata>
| |
| </div>
| |
| [[Category:Templates|Artwork]] | |
| </noinclude> | |