Template:Story: Difference between revisions

From Post-Self
(Add character and year)
(Add format and image)
Line 3: Line 3:
|-
|-
! colspan="2" style="font-weight: normal;" | ''{{{author}}}''
! colspan="2" style="font-weight: normal;" | ''{{{author}}}''
|-
{{#if: {{{image|}}} | {{pipe escape |
! colspan{{=}}"2" | [[File:{{{image}}}|frameless]]
|-
}}}}
{{#if: {{{source|}}} | {{pipe escape |
! colspan{{=}}"2" style{{=}}"font-weight: normal; font-size: 95%;" | Source: {{{source}}}
|-
}}}}
! Format
| {{{format|Short story}}}
|-
|-
! Character
! Character
Line 32: Line 43:
| title=Story title
| title=Story title
| author=Story author
| author=Story author
| image=Image file
| source=Source for the image
| format=Story format
| character=Character
| character=Character
| year=Year
| year=Year
Line 44: Line 58:
| title=Cowboy
| title=Cowboy
| author=Alexandria Christina Leal
| author=Alexandria Christina Leal
| format=Short story
| character=The Peace system
| character=The Peace system
| year=2200
| year=2200
Line 53: Line 68:
| title=Cowboy
| title=Cowboy
| author=Alexandria Christina Leal
| author=Alexandria Christina Leal
| format=Short story
| character=The Peace system
| character=The Peace system
| year=2200
| year=2200
Line 119: Line 135:
"type": "number",
"type": "number",
"required": true
"required": true
},
"format": {
"label": "Format",
"description": "The format of the work",
"type": "string",
"suggestedvalues": [
"Flash fiction",
"Short story",
"Novella",
"Novel",
"Interactive fiction"
],
"default": "Short story",
"required": true
},
"image": {
"label": "Image",
"description": "An image for the story",
"example": "Qoheleth-front.png",
"type": "wiki-file-name"
},
"source": {
"label": "Source",
"description": "The source for the image",
"example": "[https://irisjay.net Iris Jay]",
"type": "line"
}
}
},
},
Line 128: Line 170:
"canon",
"canon",
"appearsin",
"appearsin",
"readlink"
"readlink",
"format",
"image",
"source"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 14:13, 12 February 2024


Usage

Displays information about a story.

{{Story
| title=Story title
| author=Story author
| image=Image file
| source=Source for the image
| format=Story format
| character=Character
| year=Year
| appearsin=Collection of works
| readlink=https://link-to-read.com
}}

Example

Cowboy
Alexandria Christina Leal
Format Short story
Character The Peace system
Year 2200
Canonicity Canon
Appears in Clade — A Post-Self anthology
Read here
{{Story
| title=Cowboy
| author=Alexandria Christina Leal
| format=Short story
| character=The Peace system
| year=2200
| appearsin=Clade — A Post-Self anthology
| readlink=https://clade.post-self.ink/cowboy
}}

Parameters

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The title of the work

Example
Cowboy
Stringrequired
Authorauthor

The author of the work

Example
Alexandria Christina Leal
Linerequired
Charactercharacter

The name of the main character or clade

Example
Theodred
Linerequired
Yearyear

The year in which the story takes place

Example
2343
Numberrequired
Canonicitycanon

What level of canon the work is

Suggested values
Canon Paracanon Protocanon Non-canon
Default
Canon
Stringoptional
Appears inappearsin

Any collections the work appears in

Suggested values
Clade — A Post-Self Anthology Marsh
Example
Clade — A Post-Self Anthology
Stringoptional
Read linkreadlink

A link where one can read the story

Example
https://clade.post-self.ink/cowboy
URLoptional
Formatformat

The format of the work

Suggested values
Flash fiction Short story Novella Novel Interactive fiction
Default
Short story
Stringrequired
Imageimage

An image for the story

Example
Qoheleth-front.png
Fileoptional
Sourcesource

The source for the image

Example
[https://irisjay.net Iris Jay]
Lineoptional