Difference between revisions of "Form:Book"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(46 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
{| class="wikitable bnw-form"
 
{| class="wikitable bnw-form"
 
|-
 
|-
! Parent Page
+
! Tile Description
| {{{field | BookParentPage | input type=dropdown | values=Research/Primary Sources, Research/Secondary Sources, Teachings/Dharma Teachings}}}
+
| {{{field | TileDescription | input type=textarea | cols=70 | rows=3 }}}
| Select the parent page for this book. This will determine the general category for this book. Also, it will set the breadcrumbs at the top of the page.
+
|
 
|-
 
|-
 
! style="min-width: 180px;" | Featured Person(s)
 
! style="min-width: 180px;" | Featured Person(s)
 
| {{{field | BookPerson | holds template }}}
 
| {{{field | BookPerson | holds template }}}
| <span style="float: right;">{{RedTag|No Markup}}</span>Add as many people as you would like featured in the right sidebar, with image if possible.
+
| <span style="float: right;">{{RedTag|No Markup}}</span>{{Callout|title=Overwrite only|text=use this field only to overwrite the values for authors / translators / editors being pulled from the DRL. You don't have to fill this out if you just want the regular list of people to display.|classes=w-100}}Add as many people as you would like featured in the right sidebar, with image if possible. Do not paste in a full url here, we're talking about WIKI page names: '''Duckworth, D.''', '''Dalai Lama, 14th''', etc.
  
 
Remember:  
 
Remember:  
* The pagename for this person may not be the same as the name you want to display. Use both fields carefully.
+
* The pagename for this person may not be the same as the name you want to display. Use both fields carefully. Find page for this person on this site and paste in here.
* You can use any image on https://commons.tsadra.org.
 
* '''Person Image''': You HAVE to provide the FULL URL to the image on commons. For example:
 
** https://commons.tsadra.org/images/f/f5/Brunnholzl-2017_Square.png
 
** https://commons.tsadra.org/images/7/71/Maitreya_Square.png
 
** To do that, find the image page on commons, then click the image again so that's all that displays in your browser, then copy the URL from there. It should end with an image file extension (.jpg, .png, .gif, etc.)
 
 
|-
 
|-
 
! Fully Readable?
 
! Fully Readable?
| {{{field | FullTextRead | input type=checkbox }}} Yes
+
| {{{field | FullTextRead | input type=checkbox }}} Yes &nbsp;&nbsp;&nbsp; Page: {{{field | FullTextLink | input type=text | size=25 }}} &nbsp;&nbsp;&nbsp; Label: {{{field | FullTextLinkLabel | input type=text | size=25 }}}
| Is the full content of this book readable on the site?
+
| Is the full content of this book readable on the site? Provide the full page name of the full content page on this site.
 +
|-
 +
! Text Translated
 +
| {{{field | TextTranslated | input type=tokens | delimiter=; | placeholder=Enter the source text here | values from category=Source Texts | existing values only }}}
 +
| If this text is a translation of a source text on this site, select it here.
 
|-
 
|-
 
! Featured Video
 
! Featured Video
Line 35: Line 34:
 
Video ID: {{{field | VideoId }}}
 
Video ID: {{{field | VideoId }}}
 
| <span style="float: right;">{{RedTag|No Markup}}</span>If you would like to add a featured video, select the service and provide the video ID (unique string from URL).
 
| <span style="float: right;">{{RedTag|No Markup}}</span>If you would like to add a featured video, select the service and provide the video ID (unique string from URL).
 +
|-
 +
! Book Excerpt Pages
 +
| {{{field | SubPages | input type=textarea | autogrow | cols=70 | rows=3 }}}
 +
{{#formlink:form=BookExcerpt
 +
|size=50
 +
|link text=Add a book excerpt
 +
|super_page={{PAGENAME}}
 +
|query string=BookExcerpt[BookTitle]={{SUBPAGENAME}}
 +
}}
 +
| Manage the book excerpt subpages for this book here.
 +
<pre>
 +
Use the following template for adding a book excerpt button on the left:
 +
 +
{{RelatedButton
 +
|link=/index.php/LINK TO WIKI PAGE
 +
|image=IMAGE URL
 +
|text=BUTTON TEXT
 +
|label=Book Excerpt
 +
|label-right=<i class="ml-1 fal fa-arrow-up rotate45"></i>
 +
|target=_blank
 +
|wrapperclasses=my-1
 +
}}
 +
 +
</pre>
 
|-
 
|-
 
! Book Essay
 
! Book Essay
Line 42: Line 65:
 
! Table of Contents
 
! Table of Contents
 
| {{{field | BookToc | input type=textarea | cols=70 | rows=3 }}}
 
| {{{field | BookToc | input type=textarea | cols=70 | rows=3 }}}
| <span style="float: right;">{{GreenTag|Markup OK}}</span>Include here the table of contents for this book, as you would like to see it formatted.
+
| <span style="float: right;">{{GreenTag|Markup OK}}</span>Include here the table of contents for this book. In order to make it consistently formatted, please use the following syntax:
 +
* Use bullets to denote a new item, and the outline depth (e.g. 2 bullets for a level two item, 3 bullets for level three, etc.)
 +
* Use <code><nowiki>{{ i | LIST ITEM NAME | PAGE NUMBER }}</nowiki></code> after the bullet(s) to create your item.
 +
* Example:
 +
<pre>
 +
* {{i|Preface|7}}
 +
* {{i|Acknowledgements|8}}
 +
* {{i|Technical Note: My Use of the Asterisk|10}}
 +
* {{i|I A Study and Annotated Translation of the Tathagatagarbhasātra|11}}
 +
** {{i|A General Study and Text-historical Considerations|12}}
 +
*** {{i|1 Textual History and Structure of the TGS|16}}
 +
</pre>
 +
* '''Keep in mind''', the bullets will NOT appear, instead make sure to use whatever list numberering you want (1, A, i, a, I, etc.) inside the ITEM NAME area. See example above.<!--
 
|-
 
|-
 
! Enable "Related" Tab
 
! Enable "Related" Tab
 
| {{{field | AddRelatedTab | input type=checkbox }}} Yes
 
| {{{field | AddRelatedTab | input type=checkbox }}} Yes
| Select yes if you would like to add a tab to the book page for related content.  
+
| Select yes if you would like to add a tab to the book page for related content. -->
 
|-
 
|-
! Enable "Quotes" Tab
+
! "Quotes" Tab
| {{{field | AddQuotesTab | input type=checkbox }}} Yes <br>
+
| {{{field | QuotesTabContent | input type=textarea | cols=70 | rows=3 }}}
{{{field | QuotesTabContent | input type=textarea | cols=70 | rows=3 }}}
 
 
| Select yes if you would like to add a quotes tab to the book page. Contents of that tab can be added to text area below. To fetch ALL quotes from the DRL, paste in the tag <code><nowiki>{{GetBookQuotes}}</nowiki></code>. If you would just like to insert a quote manually, you can use the '''<nowiki>{{ Blockquote }}</nowiki>''' template to format it properly, in the format: <code><nowiki>{{ Blockquote | QUOTE TEXT HERE | QUOTE SOURCE HERE }}</nowiki></code>.
 
| Select yes if you would like to add a quotes tab to the book page. Contents of that tab can be added to text area below. To fetch ALL quotes from the DRL, paste in the tag <code><nowiki>{{GetBookQuotes}}</nowiki></code>. If you would just like to insert a quote manually, you can use the '''<nowiki>{{ Blockquote }}</nowiki>''' template to format it properly, in the format: <code><nowiki>{{ Blockquote | QUOTE TEXT HERE | QUOTE SOURCE HERE }}</nowiki></code>.
 
|-
 
|-
Line 60: Line 94:
 
| {{{field | PostStatus | input type=dropdown | values=Needs Copy Editing, Needs Final Review, Approved }}}
 
| {{{field | PostStatus | input type=dropdown | values=Needs Copy Editing, Needs Final Review, Approved }}}
 
| Publishing status on the site.
 
| Publishing status on the site.
 +
|-
 +
! Extra Categories
 +
| {{{field | ExtraCategories | input type=tokens | delimiter=; | property=Categories }}}
 +
| Add any relevant categories here.
 +
|-
 +
! Disable further redirect creation?
 +
| {{{field | StopPersonRedirects | input type=checkbox }}} Yes
 +
| Check if you want to stop any further redirect creation for this page, other than manual.
 
|}
 
|}
  
Line 68: Line 110:
  
 
{| class="wikitable bnw-form"
 
{| class="wikitable bnw-form"
|-
 
! style="min-width: 160px;" | Person Name
 
| {{{field | PersonName | input type=text | size=50 }}}
 
 
|-
 
|-
 
! Person Page
 
! Person Page
 
| {{{field | PersonPage | input type=text | size=50 }}}
 
| {{{field | PersonPage | input type=text | size=50 }}}
 
|-
 
|-
! Image Path
+
! style="min-width: 160px;" | Display Name
| {{{field | PersonImage | input type=text | size=50 }}}
+
| {{{field | PersonName | input type=text | size=50 }}}
 
|}
 
|}
  

Latest revision as of 12:20, 23 August 2021

This is the "Book" form to be used to create a book page.

To create a page with this form, go to Form:Add_a_page and follow instructions.