Template:Play: Difference between revisions
(Pushed from Lost Plays Database.) |
(Pushed from Lost Plays Database.) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "Play" template. | This is the "Play" template. | ||
It should be called in the following format: | It should be called in the following format at the top of each Play page: | ||
<pre> | <pre> | ||
{{Play | {{Play | ||
|dramatists= (; separated string) | |dramatists= (; separated string) | ||
|year= | |year= | ||
|auspices= | |auspices= (; separated string) | ||
|tags= | |tags= (; separated string) | ||
|probableGenres= (; separated string) | |||
|probableGenres= | |||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
# | # Set Page name to Title property | ||
-->{{#set: Title={{PAGENAME}} }}<!-- | -->{{#set: Title={{PAGENAME}} }}<!-- | ||
# Set & display Dramatists and Year | |||
-->{{#arraymap: {{{dramatists|}}}|;|@@@@|[[Dramatist::@@@@]]|, }} ([[Year::{{{year|}}}]])<!-- | |||
# Hide everything from hereon in a hidden element --><span style="display:none"><!-- | |||
# Set Auspices | |||
-->{{#arraymap: {{{auspices|}}}|;|{{#set:Auspice=@@@@}} }}<!-- | -->{{#arraymap: {{{auspices|}}}|;|{{#set:Auspice=@@@@}} }}<!-- | ||
# | # Set Probable Genres | ||
--> | -->{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@@|{{#set: Genre=@@@@}} }} }}<!-- | ||
-->[[Category:Play]][[Category:All]]<!-- | |||
--></span></includeonly> | |||
{{#if:{{{probableGenres|}}}|{{#arraymap:{{{probableGenres}}}|;|@@@| | |||
[[Category:Play]][[Category:All]] | |||
</includeonly> |
Revision as of 07:23, 4 June 2019
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= |auspices= (; separated string) |tags= (; separated string) |probableGenres= (; separated string) }}
Edit the page to see the template text.