Template:Book: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
< | <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|}}} | ||
| | |Topic Tags={{{Topic Tags|}}} | ||
| | |Is Featured={{{Is Featured|}}} | ||
| | |Owner={{{Owner|}}} | ||
| | |URL={{{URL|}}} | ||
|Content={{{Content|}}} | |||
}} | }} | ||
</ | </onlyinclude><noinclude> | ||
Wrapper for Books. Call at page top; add main content below. | |||
<templatedata> | |||
{ | |||
"description": "Wrapper for Book resources. Passes fields to Template:Resource. No predefined content sections—use the main Content area.", | |||
"params": { | |||
{ | "Status": {"label":"Status","description":"Draft, Published, or Archived.","type":"line","suggestedvalues":["Draft","Published","Archived"],"required":true}, | ||
"Display Title": {"label":"Display Title","description":"User-facing title override.","type":"line"}, | |||
"Subtitle": {"label":"Subtitle","description":"Optional book subtitle.","type":"line"}, | |||
"Author": {"label":"Author","description":"Book author(s).","type":"line"}, | |||
"Image": {"label":"Image","description":"Cover filename (e.g., \"Atomic_Habits.jpg\").","type":"wiki-file-name"}, | |||
"Description": {"label":"Description","description":"1–2 sentence card/list summary.","type":"string","required":true}, | |||
"Topic Tags": {"label":"Topic Tags","description":"Comma-separated tags. Use either \"Tag:Stoicism\" or \"Stoicism\" style.","type":"line","required":true}, | |||
"Is Featured": {"label":"Featured?","description":"Set to 'yes' to highlight.","type":"boolean"}, | |||
"Owner": {"label":"Owner","description":"Responsible username (no \"User:\" prefix).","type":"wiki-user-name","required":true}, | |||
"URL": {"label":"URL","description":"Primary external link (publisher, store, etc.).","type":"url"}, | |||
"Content": {"label":"Main Content","description":"Free-form body; wikitext/VE supported.","type":"content","suggested":true} | |||
}, | |||
</ | "format":"block" | ||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 16:09, 22 September 2025
| No image provided
| |
| Type | Book
|
|---|---|
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Status | Status | Draft, Published, or Archived.
| Line | required |
| Display Title | Display Title | User-facing title override. | Line | optional |
| Subtitle | Subtitle | Optional book subtitle. | Line | optional |
| Author | Author | Book author(s). | Line | optional |
| Image | Image | Cover filename (e.g., "Atomic_Habits.jpg"). | File | optional |
| Description | Description | 1–2 sentence card/list summary. | String | required |
| Topic Tags | Topic Tags | Comma-separated tags. Use either "Tag:Stoicism" or "Stoicism" style. | Line | required |
| Featured? | Is Featured | Set to 'yes' to highlight. | Boolean | optional |
| Owner | Owner | Responsible username (no "User:" prefix). | User | required |
| URL | URL | Primary external link (publisher, store, etc.). | URL | optional |
| Main Content | Content | Free-form body; wikitext/VE supported. | Content | suggested |