Template:Play: Difference between revisions

(Pushed from Lost Plays Database.)
(Pushed from Lost Plays Database.)
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
|dramatists= (; separated string)
|dramatists= (; separated string)
|year=
|year=
|auspices= (; separated string)
|company= (; separated string)
|venue= (; separated string)
|associatedPersons= (; separated string)
|probableGenres= (; separated string)
|themes= (; separated string)
|tags= (; separated string)
|tags= (; separated string)
|probableGenres= (; separated string)
|gregNo= (string)
|wigginsNo= (string)
|attribution= (string)
|isStub= (boolean; blank=false)
|isSparse= (boolean; blank=false)
}}
}}
</pre>
</pre>
Line 16: Line 24:
-->{{#set: Title={{PAGENAME}} }}<!--
-->{{#set: Title={{PAGENAME}} }}<!--
# Set & display Dramatists and Year
# Set & display Dramatists and Year
-->{{#arraymap: {{{dramatists|}}}|;|@@@@|[[Dramatist::@@@@]]|,&nbsp;}} ([[Year::{{{year|}}}]])<!--
-->{{#arraymap: {{{dramatists|}}}|;|@@@@|[[Dramatist::@@@@]][[Category:@@@@]]|,&nbsp;}} ([[{{{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 Auspices
 
-->{{#arraymap: {{{auspices|}}}|;|{{#set:Auspice=@@@@}} }}<!--
# Set Year
# Set Probable Genres
-->{{#if:{{{year|}}}|{{#set:Year={{{year|}}} }} }}<!--
-->{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@@|{{#set: Genre=@@@@}} }} }}<!--
 
-->[[Category:Play]][[Category:All]]<!--
# Set Venue & Company
--></span></includeonly>
-->{{#arraymap: {{{venue|}}}|;|@@@@|{{#set:Venue=@@@@}}[[Category:@@@@]] }}<!--
-->{{#arraymap: {{{company|}}}|;|@@@@|{{#set:Company=@@@@}}[[Category:@@@@]] }}<!--
 
# Set Probable Genres & Themes
-->{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@@|{{#set: Genre=@@@@}}[[Category:@@@@]] }} }}<!--
-->{{#if:{{{themes|}}}|{{#arraymap:{{{themes}}}|;|@@@@|{{#set: Theme=@@@@}}[[Category:@@@@]] }} }}<!--
-->{{#if:{{{tags|}}}|{{#arraymap:{{{tags}}}|;|@@@@|{{#set: Tag=@@@@}}[[Category:@@@@]] }} }}<!--
 
# Set Associated Persons
-->{{#if:{{{associatedPersons|}}}|{{#arraymap:{{{associatedPersons}}}|;|@@@@|{{#set: Associated Person=@@@@}}[[Category:@@@@]] }} }}<!--
 
# Set Documentary Sources & Paratexts
-->{{#arraymap:{{{documentarySources}}}|;|@@@@|{{#set: Documentary Source=@@@@}} }}<!--
-->{{#arraymap:{{{paratexts}}}|;|@@@@|{{#set: Paratext=@@@@}} }}<!--
-->{{#arraymap:{{{contributors}}}|;|@@@@|{{#set: Contributor=@@@@}} }}<!--
-->{{#arraymap:{{{partneringInstitutions}}}|;|@@@@|{{#set: Partnering Institution=@@@@}} }}<!--
 
# Set Wiggins & Greg numbers
-->{{#if: {{{wiginsNo|}}} | {{#set: Wiggins Number={{{wigginsNo|}}} }} }}<!--
-->{{#if: {{{gregNo|}}} | {{#set: Greg Number={{{gregNo|}}} }} }}<!--
-->{{#ifeq: {{{isStub|}}} |Yes| {{#set:  Article Completeness=stub }} }}<!--
-->{{#ifeq: {{{isSparse|}}} |Yes| {{#set: Article Completeness=sparse }} }}<!--
 
# Set attribution and functional categories
-->{{#if: {{{attribution|}}} | {{#set: Article Attribution={{{attribution|}}} }} }}<!--
-->[[Category:Plays]][[Category:All]]<!--
--></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.