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
Tags: Manual revert Reverted
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 3: Line 3:
| style="flex-grow:1; text-align:center" |'''{{{bookname}}}'''
| style="flex-grow:1; text-align:center" |'''{{{bookname}}}'''
|-
|-
|'''Author''' || {{{authorname}}}  
|'''Author''' || [[{{{authorname}}}]]
|-
|-
|-
{{!}}'''Link''' {{!}}{{!}} [{{{booklink_url}}} {{{booklink_label}}}]
|'''Link''' || [{{{booklink}}}]
|-
|-
|}
|}


<noinclude>
<templatedata>
<templatedata>
{
{
    "description": "",
"params": {
    "params": {
"bookname": {
        "bookname": {
"label": "Book Name",
            "label": "",
"description": "Name of the book",
            "description": "",
"type": "string",
            "type": ""
"required": true
        },
},
        "authorname": {
"authorname": {
            "label": "",
"label": "Name of author",
            "description": "",
"type": "wiki-page-name",
            "type": ""
"required": true
        },
},
        "booklink": {
"booklink_url": {
            "label": "",
"label": "Book URL",
            "description": "",
"type": "string",
            "type": ""
"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>
</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