Jump to content

Template:Book: Difference between revisions

From WYOS Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
[[Category:Resources]]
[[Category:Books]]
{{Resource
{{Resource
|Resource Type=Book
|Resource Type=Book
|Status={{{Status|}}}
|Status={{{Status|}}}
|Display Title={{{Display Title|}}}
|Display Title={{{Display Title|}}}
|Subtitle={{{Subtitle|}}}
|Subtitle={{{Subtitle|}}}
|Author={{{Author|}}}
|Author={{{Author|}}}
|Image={{{Image|}}}
|Image={{{Image|}}}
|Topic Tags={{{Topic Tags|}}}
|Description={{{Description|}}}
|Main Categories={{{Main Categories|}}}
|Topic Tags={{{Topic Tags|}}}
|URL={{{URL|}}}
|Is Featured={{{Is Featured|}}}
|Description={{{Description|}}}
|Owner={{{Owner|}}}
|Is Featured={{{Is Featured|}}}
|URL={{{URL|}}}
|Content={{{Content|}}}
}}
}}
<!-- Structured Content Sections for Next.js -->
<div id="section-overview">{{{Overview|}}}</div>
<div id="section-why-we-recommend-it">{{{Why We Recommend It|}}}</div>
<div id="section-who-its-for">{{{Who It's For|}}}</div>
<div id="section-pro-tip">{{{Pro Tip|}}}</div>
<div id="section-good-to-know">{{{Good to Know|}}}</div>
</onlyinclude><noinclude>
</onlyinclude><noinclude>
== How to use this Template ==
Wrapper for Books. Call at page top; add main content below.
This template is for adding a new book. It calls the master [[Template:Resource]].
<templatedata>
 
{
=== Syntax ===
  "description": "Wrapper for Book resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.",
<pre>
  "params": {
{{Book
    "Status": {"label":"Status","description":"Draft, Published, or Archived.","type":"line","suggestedvalues":["Draft","Published","Archived"],"required":true},
|Status=
    "Display Title": {"label":"Display Title","description":"User-facing title override.","type":"line"},
|Display Title=
    "Subtitle": {"label":"Subtitle","description":"Optional book subtitle.","type":"line"},
|Subtitle=
    "Author": {"label":"Author","description":"Book author(s).","type":"line"},
|Author=
    "Image": {"label":"Image","description":"Cover filename (e.g., \"Atomic_Habits.jpg\").","type":"wiki-file-name"},
|Image=
    "Description": {"label":"Description","description":"1–2 sentence card/list summary.","type":"string","required":true},
|Topic Tags=
    "Topic Tags": {"label":"Topic Tags","description":"Comma-separated tags. Use either \"Tag:Stoicism\" or \"Stoicism\" style.","type":"line","required":true},
|Main Categories=
    "Is Featured": {"label":"Featured?","description":"Set to 'yes' to highlight.","type":"boolean"},
|URL=
    "Owner": {"label":"Owner","description":"Responsible username (no \"User:\" prefix).","type":"wiki-user-name","required":true},
|Description=
    "URL": {"label":"URL","description":"Primary external link (publisher, store, etc.).","type":"url"},
|Is Featured=
    "Content": {"label":"Main Content","description":"Free-form body; wikitext/VE supported.","type":"content","suggested":true}
}}
  },
</pre>
  "format":"block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 16:09, 22 September 2025


No image provided


Type Book





Book




false


Wrapper for Books. Call at page top; add main content below.

Wrapper for Book resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
StatusStatus

Draft, Published, or Archived.

Suggested values
Draft Published Archived
Linerequired
Display TitleDisplay Title

User-facing title override.

Lineoptional
SubtitleSubtitle

Optional book subtitle.

Lineoptional
AuthorAuthor

Book author(s).

Lineoptional
ImageImage

Cover filename (e.g., "Atomic_Habits.jpg").

Fileoptional
DescriptionDescription

1–2 sentence card/list summary.

Stringrequired
Topic TagsTopic Tags

Comma-separated tags. Use either "Tag:Stoicism" or "Stoicism" style.

Linerequired
Featured?Is Featured

Set to 'yes' to highlight.

Booleanoptional
OwnerOwner

Responsible username (no "User:" prefix).

Userrequired
URLURL

Primary external link (publisher, store, etc.).

URLoptional
Main ContentContent

Free-form body; wikitext/VE supported.

Contentsuggested