Difference between revisions of "Template:Portal selected quote layout/doc"

From blackwiki
Jump to navigation Jump to search
test>AfroThundr3007730
(update)
test>AfroThundr3007730
(Restoring original content)
Line 2: Line 2:
 
{{lua|Module:InfoboxImage}}
 
{{lua|Module:InfoboxImage}}
  
===Usage===
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!--TODO: Fill in-->
+
== Usage ==
 +
* Use this template to replace any portal specific quote template.
 +
* Additional layouts can be added on request.
 +
== Layout template ==
 +
{{Portal selected quote layout
 +
  |image=
 +
  |text=
 +
  |author=
 +
  |link= <!-- optional -->
 +
  |size= <!-- Defaults to 150 -->
 +
  |archive= <!-- if "yes", then the ...Archive/Nominations link will be shown. leave blank to not show it -->
 +
}}
 +
* Or
 +
{{Portal selected quote layout
 +
  |version= two
 +
  |link= <!-- read more link, only 'needed' if using v2 -->
 +
  |image=
 +
  |caption=
 +
  |quote=
 +
  |detail=
 +
  |author=
 +
  |link= <!-- optional -->
 +
  |size= <!-- Defaults to 70 -->
 +
}}
  
===See Also===
 
  
 
===TemplateData===
 
===TemplateData===
 
 
<templatedata>
 
<templatedata>
 
{
 
{
"params": {
+
    "params": {
"version": {},
+
        "version": {
"!": {},
+
            "label": "Version",
"image": {},
+
            "description": "Template version to use",
"size": {},
+
            "example": "version=2",
"caption": {},
+
            "default": "2"
"quote": {},
+
        },
"link": {},
+
        "image": {
"detail": {},
+
            "label": "Image",
"text": {},
+
            "description": "Image to use",
"author": {},
+
            "example": "image=Foo.png",
"archive": {}
+
            "type": "wiki-file-name",
},
+
            "default": "Noflag2.svg",
"description": "Template to transclude a selected quote",
+
            "suggested": true
"format": "inline"
+
        },
 +
        "size": {
 +
            "label": "Size",
 +
            "description": "Size of image",
 +
            "example": "size=100px",
 +
            "type": "string",
 +
            "default": "150px (v1)\n70px (v2)"
 +
        },
 +
        "caption": {
 +
            "label": "Caption",
 +
            "description": "Caption for image",
 +
            "example": "caption=Loren Ipsum...",
 +
            "type": "string",
 +
            "default": "(empty)"
 +
        },
 +
        "quote": {
 +
            "label": "Quote"
 +
        },
 +
        "link": {
 +
            "label": "Link",
 +
            "description": "Wikilink for full text (\"Read more...\")",
 +
            "example": "link=Mark Twain",
 +
            "type": "wiki-page-name",
 +
            "default": "(empty)",
 +
            "suggested": true
 +
        },
 +
        "detail": {
 +
            "label": "Detail"
 +
        },
 +
        "text": {
 +
            "label": "Text",
 +
            "description": "Text of the quote",
 +
            "example": "text=Rumors of my death have been greatly exaggerated.",
 +
            "type": "string",
 +
            "default": "(none)",
 +
            "suggested": true
 +
        },
 +
        "author": {
 +
            "label": "Author",
 +
            "description": "Author of the quote",
 +
            "example": "author=[[Mark Twain]]",
 +
            "type": "wiki-page-name",
 +
            "default": "(empty)",
 +
            "suggested": true
 +
        },
 +
        "archive": {
 +
            "label": "Archive",
 +
            "example": "archive=yes",
 +
            "type": "boolean",
 +
            "default": "no",
 +
            "description": "Whether to show the Archive/Nominations link"
 +
        }
 +
    },
 +
    "description": "Replacement for portal specific quote templates",
 +
    "format": "block"
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Template-Class Portal pages]]
 +
}}</includeonly>

Revision as of 23:01, 3 June 2018

Usage

  • Use this template to replace any portal specific quote template.
  • Additional layouts can be added on request.

Layout template

Template:Pull quote

  • Or
'


TemplateData

Replacement for portal specific quote templates

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Versionversion

Template version to use

Default
2
Example
version=2
Unknownoptional
Imageimage

Image to use

Default
Noflag2.svg
Example
image=Foo.png
Filesuggested
Sizesize

Size of image

Default
150px (v1) 70px (v2)
Example
size=100px
Stringoptional
Captioncaption

Caption for image

Default
(empty)
Example
caption=Loren Ipsum...
Stringoptional
Quotequote

no description

Unknownoptional
Linklink

Wikilink for full text ("Read more...")

Default
(empty)
Example
link=Mark Twain
Pagesuggested
Detaildetail

no description

Unknownoptional
Texttext

Text of the quote

Default
(none)
Example
text=Rumors of my death have been greatly exaggerated.
Stringsuggested
Authorauthor

Author of the quote

Default
(empty)
Example
author=[[Mark Twain]]
Pagesuggested
Archivearchive

Whether to show the Archive/Nominations link

Default
no
Example
archive=yes
Booleanoptional