Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Book: Difference between revisions

Template page
No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{title}}}
{|class="infobox book"
{{{above}}}
|-
{{{subheader}}}
| style="flex-grow:1; text-align:center" |'''{{{bookname}}}'''
{{{subheader2}}}
|-
......
|'''Author''' || [[{{{authorname}}}]]
{{{image}}}
|-
{{{caption}}}
{{!}}'''Link''' {{!}}{{!}} [{{{booklink_url}}} {{{booklink_label}}}]
{{{image2}}}
|-
{{{caption2}}}
|}
......
 
{{{header1}}}
<noinclude>
( or )
<templatedata>
{{{label1}}} {{{data1}}}
{
( or )
"params": {
{{{data1}}}
"bookname": {
{{{header2}}}
"label": "Book Name",
( or )
"description": "Name of the book",
{{{label2}}} {{{data2}}}
"type": "string",
( or )
"required": true
{{{data2}}}
},
( etc )
"authorname": {
{{{below}}}
"label": "Name of author",
"type": "wiki-page-name",
"required": true
},
"booklink_url": {
"label": "Book URL",
"type": "string",
"default": "https://wiki.mechsploit.me"
},
"booklink_label": {
"label": "Book URL Label",
"description": "What do you want the link to say?",
"type": "string",
"default": "N/A"
}
},
"description": "A lightweight info box for book descriptions!"
}
</templatedata>
</noinclude>

Latest revision as of 16:33, 26 August 2025

{{{bookname}}}
Author [[{{{authorname}}}]]
Link [{{{booklink_url}}} {{{booklink_label}}}]


A lightweight info box for book descriptions!

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Book Namebookname

Name of the book

Stringrequired
Name of authorauthorname

no description

Page namerequired
Book URLbooklink_url

no description

Default
https://wiki.mechsploit.me
Stringoptional
Book URL Labelbooklink_label

What do you want the link to say?

Default
N/A
Stringoptional