Template:Play: Difference between revisions
No edit summary |
(Pushed from Lost Plays Database.) |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
|gregNo= (string) | |gregNo= (string) | ||
|wigginsNo= (string) | |wigginsNo= (string) | ||
| | |attribution= (string) | ||
|isStub= (boolean; blank=false) | |isStub= (boolean; blank=false) | ||
|isSparse= (boolean; blank=false) | |isSparse= (boolean; blank=false) | ||
Line 24: | Line 24: | ||
-->{{#set: Title={{PAGENAME}} }}<!-- | -->{{#set: Title={{PAGENAME}} }}<!-- | ||
# Set & display Dramatists and Year | # Set & display Dramatists and Year | ||
-->{{#arraymap: {{{dramatists|}}}|;|@@@@|[[Dramatist::@@@@]]|, }} ([[ | -->{{#arraymap: {{{dramatists|}}}|;|@@@@|[[Dramatist::@@@@]][[Category:@@@@]]|, }} ([[{{{year|}}}]])<!-- | ||
# Hide everything from hereon in a hidden element --><span style="display:none"><!-- | # Hide everything from hereon in a hidden element --><span style="display:none"><!-- | ||
# Set Year | |||
-->{{#if:{{{year|}}}|{{#set:Year={{{year|}}} }} }}<!-- | |||
# Set Venue & Company | # Set Venue & Company | ||
-->{{#arraymap: {{{venue|}}}|;|@@@@|{{#set:Venue=@@@@}} }}<!-- | -->{{#arraymap: {{{venue|}}}|;|@@@@|{{#set:Venue=@@@@}}[[Category:@@@@]] }}<!-- | ||
-->{{#arraymap: {{{company|}}}|;|@@@@|{{#set:Company=@@@@}} }}<!-- | -->{{#arraymap: {{{company|}}}|;|@@@@|{{#set:Company=@@@@}}[[Category:@@@@]] }}<!-- | ||
# Set Probable Genres & Themes | # Set Probable Genres & Themes | ||
-->{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@@|{{#set: Genre=@@@@}} }} }}<!-- | -->{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@@|{{#set: Genre=@@@@}}[[Category:@@@@]] }} }}<!-- | ||
-->{{#if:{{{themes|}}}|{{#arraymap:{{{themes}}}|;|@@@@|{{#set: Theme=@@@@}} }} }}<!-- | -->{{#if:{{{themes|}}}|{{#arraymap:{{{themes}}}|;|@@@@|{{#set: Theme=@@@@}}[[Category:@@@@]] }} }}<!-- | ||
-->{{#if:{{{tags|}}}|{{#arraymap:{{{tags}}}|;|@@@@|{{#set: Tag=@@@@}} }} }}<!-- | -->{{#if:{{{tags|}}}|{{#arraymap:{{{tags}}}|;|@@@@|{{#set: Tag=@@@@}}[[Category:@@@@]] }} }}<!-- | ||
# Set Associated Persons | # Set Associated Persons | ||
-->{{#if:{{{associatedPersons|}}}|{{#arraymap:{{{associatedPersons}}}|;|@@@@|{{#set: Associated Person=@@@@}} }} }}<!-- | -->{{#if:{{{associatedPersons|}}}|{{#arraymap:{{{associatedPersons}}}|;|@@@@|{{#set: Associated Person=@@@@}}[[Category:@@@@]] }} }}<!-- | ||
# Set Documentary Sources & Paratexts | # Set Documentary Sources & Paratexts | ||
Line 51: | Line 54: | ||
-->{{#ifeq: {{{isStub|}}} |Yes| {{#set: Article Completeness=stub }} }}<!-- | -->{{#ifeq: {{{isStub|}}} |Yes| {{#set: Article Completeness=stub }} }}<!-- | ||
-->{{#ifeq: {{{isSparse|}}} |Yes| {{#set: Article Completeness=sparse }} }}<!-- | -->{{#ifeq: {{{isSparse|}}} |Yes| {{#set: Article Completeness=sparse }} }}<!-- | ||
# Set attribution and functional categories | |||
-->{{#if: {{{attribution|}}} | {{#set: Article Attribution={{{attribution|}}} }} }}<!-- | |||
-->[[Category:Plays]][[Category:All]]<!-- | -->[[Category:Plays]][[Category:All]]<!-- | ||
--></span></includeonly> | --></span>{{#ifeq: {{{isStub|}}} |Yes| {{Play/Stub_Warning}} }}</includeonly> |
Latest revision as of 07:58, 25 August 2021
This is the "Play" template. It should be called in the following format at the top of each Play page:
{{Play |dramatists= (; separated string) |year= |company= (; separated string) |venue= (; separated string) |associatedPersons= (; separated string) |probableGenres= (; separated string) |themes= (; separated string) |tags= (; separated string) |gregNo= (string) |wigginsNo= (string) |attribution= (string) |isStub= (boolean; blank=false) |isSparse= (boolean; blank=false) }}
Edit the page to see the template text.