Template

Difference between revisions of "ReferenceBook"

From CNAC

m
m
 
(24 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{ReferenceBook
 
{{ReferenceBook
|Title=
+
|Subtitle=
 
|Author(s) Name=
 
|Author(s) Name=
 
|Book Cover Image=
 
|Book Cover Image=
Line 13: Line 13:
 
|Edition=
 
|Edition=
 
|Binding=
 
|Binding=
 +
|Links=
 
|Other Images=
 
|Other Images=
 
|Summary=
 
|Summary=
Line 21: Line 22:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
{{#if:{{{Subtitle|}}}| <h3>[[Book Subtitle::{{{Subtitle|}}}]]</h3>}}
 
<div class="row">
 
<div class="row">
 
<div class="large-4 large-push-8 columns">
 
<div class="large-4 large-push-8 columns">
{| style="width: auto; font-size: 90%; background-color: #f9f9f9; color: black; margin:0 auto 1.5rem; text-align:center;min-width:250px;"
+
{| class="infobox-page" style="width: auto; font-size: 90%; background-color: #f9f9f9; color: black; margin:0 auto 1.5rem; text-align:center;min-width:250px;"
 
| style="text-align: center; background-color:#ccccff; font-size: 1.2rem;"|{{#arraymaptemplate:{{{Author(s) Name|}}}|Arraymap Author|,|<br>}}
 
| style="text-align: center; background-color:#ccccff; font-size: 1.2rem;"|{{#arraymaptemplate:{{{Author(s) Name|}}}|Arraymap Author|,|<br>}}
 
|-
 
|-
Line 40: Line 42:
 
{{#if:{{{Binding|}}}| {{!}} '''Binding:''' {{#arraymap:{{{Binding|}}}|,|x|[[Book Binding::x]]}}
 
{{#if:{{{Binding|}}}| {{!}} '''Binding:''' {{#arraymap:{{{Binding|}}}|,|x|[[Book Binding::x]]}}
 
{{!}}-}}
 
{{!}}-}}
| {{#arraymap:{{#show:{{FULLPAGENAME}}|?Page keywords}}|,|@@@@|[[{{#replace:Special:SearchByProperty/:Page-20keywords/@@@@{{!}}_{{!}}-20}}|@@@@]]}}
+
| '''Keywords:''' {{#arraymap:{{#show:{{FULLPAGENAME}}|?Page keywords}}|,|@@@@|{{#queryformlink:form=Keyword Search|link text=@@@@|link type=|query string=KeywordQuery[keywords]=@@@@&_run}} }}
 +
|-
 +
| {{{Links|}}}{{ShowLinks}}
 
|}
 
|}
 
</div>
 
</div>
 
<div class="large-8 large-pull-4 columns">
 
<div class="large-8 large-pull-4 columns">
{{#if:{{{Summary|}}}|[[Book Summary::{{{Summary|}}}]]}}
+
{{#if:{{{Summary|}}}|{{#set:Book Summary={{{Summary|}}} }}{{{Summary|}}} }}
 
+
{{#if:{{{Excerpt|}}}|<hr>{{#set:Book Excerpt={{{Excerpt|}}}}}{{{Excerpt|}}} }}
{{#if:{{{Excerpt|}}}|=== Excerpt ===
+
{{#if:{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Has Image::+]]|?Has Image=|mainlabel=-|limit=1|link=none|searchlabel=}}|{{ShowOtherImages}}|}}
[[Book Excerpt::{{{Excerpt|}}}]] }}
 
 
 
{{#if:{{{Other Images|}}}|== Images ==
 
[[Book Additional Images::{{{Other Images|}}}]] }}
 
 
</div>
 
</div>
 
</div>
 
</div>
{{#set:Book Title={{PAGENAME}}}}{{#if:{{{Keywords|}}}|{{keywords|1={{{Keywords}}}}}|}}
+
{{{Other Images|}}}
 +
{{#set:Book Title={{PAGENAME}}}}{{#set:Book Author Last Name Sort={{{Author Lastname Sort|}}}}}{{#if:{{{Keywords|}}}|{{keywords|1={{{Keywords}}}}}|}}
 +
__NOTOC__
 
[[Category:Books]]
 
[[Category:Books]]
 
</includeonly>
 
</includeonly>

Latest revision as of 20:32, 20 March 2020

This is the "ReferenceBook" template. It should be called in the following format:

{{ReferenceBook
|Subtitle=
|Author(s) Name=
|Book Cover Image=
|Publisher=
|Publish Date=
|ISBN-10=
|ISBN-13=
|Edition=
|Binding=
|Links=
|Other Images=
|Summary=
|Excerpt=
|Keywords=
}}

Edit the page to see the template text.