Difference between revisions of "Template:Portal selected quote layout/doc"
Jump to navigation
Jump to search
test>AfroThundr3007730 (update) |
m (6 revisions imported) |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
{{lua|Module:InfoboxImage}} | {{lua|Module:InfoboxImage}} | ||
| − | === | + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
| − | <!-- | + | == Usage == |
| − | + | * Use this template to replace any portal specific quote template. | |
| − | === | + | * Additional layouts can be added on request. |
| + | == Layout template == | ||
| + | <pre> | ||
| + | {{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 --> | ||
| + | }} | ||
| + | </pre> | ||
===TemplateData=== | ===TemplateData=== | ||
| − | |||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | + | "params": { | |
| − | + | "version": { | |
| − | + | "label": "Version", | |
| − | + | "description": "Template version to use", | |
| − | + | "example": "version=2", | |
| − | + | "default": "2" | |
| − | + | }, | |
| − | + | "image": { | |
| − | + | "label": "Image", | |
| − | + | "description": "Image to use", | |
| − | + | "example": "image=Foo.png", | |
| − | + | "type": "wiki-file-name", | |
| − | + | "default": "Noflag2.svg", | |
| − | + | "suggested": true | |
| − | + | }, | |
| + | "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 --> | ||
| + | }}</includeonly> | ||
Latest revision as of 16:39, 8 September 2020
| This is a documentation subpage for Template:Portal selected quote layout. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
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 -->
}}
TemplateData
Replacement for portal specific quote templates
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Version | version | Template version to use
| Unknown | optional |
| Image | image | Image to use
| File | suggested |
| Size | size | Size of image
| String | optional |
| Caption | caption | Caption for image
| String | optional |
| Quote | quote | no description | Unknown | optional |
| Link | link | Wikilink for full text ("Read more...")
| Page | suggested |
| Detail | detail | no description | Unknown | optional |
| Text | text | Text of the quote
| String | suggested |
| Author | author | Author of the quote
| Page | suggested |
| Archive | archive | Whether to show the Archive/Nominations link
| Boolean | optional |