Template:Style formatting template/doc: Difference between revisions
More actions
m +parm |
templatedata |
||
| Line 38: | Line 38: | ||
[[Category:Style formatting templates|{{PAGENAME}}]] | [[Category:Style formatting templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Source", | |||
"description": "The name of the source", | |||
"example": "School of Hard Knocks Library", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Image", | |||
"description": "An image or logo", | |||
"example": "[[File:Service mark.svg|100px]]", | |||
"type": "unknown", | |||
"autovalue": "", | |||
"suggested": true | |||
}, | |||
"TextAlign": { | |||
"label": "TextAlign", | |||
"description": "Alignment of the text", | |||
"example": "left", | |||
"type": "string", | |||
"autovalue": "center" | |||
}, | |||
"ExemptFromTag": { | |||
"label": "ExemptFromTag", | |||
"description": "Override the default notice about needing a copyright tag" | |||
} | |||
}, | |||
"description": "Formatting template meant to provide a uniform style for source templates" | |||
} | |||
</templatedata> | |||
Revision as of 17:48, 28 September 2020
Table style formatting template meant to provide uniform styles to different families of non-license templates. Those templates are also used for tracking images with different templates so it is important not to use them for other purposes.
Usage
{{Style formatting template/doc |lang= }}
Meant to be used only inside of other license or information templates
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
lang | Language code to use for template direction (ltr or rtl) | {{int:lang}} | required | |
style | add or replace style attributes for the box, e.g. border:1px solid #F00 | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
Localization
This template is not intended to be localized.
Other style formatting templates
License templates
License style formatting layout templates are for use in license tags only as they are also used to track images with different types of licenses. Using them for other purposes will disrupt that system.
| Template | Purpose | |
|---|---|---|
| {{PD-Layout}} |
| |
| {{GNU-Layout}} |
| |
| {{CC-Layout}} |
| |
| {{Copyrighted-Layout}} |
| |
| {{Other License-Layout}} |
| |
| {{Deprecated License-Layout}} |
|
Other templates
| Template | Purpose | ||
|---|---|---|---|
| {{Restriction-Layout}} |
| ||
| {{Infobar-Layout}} |
| ||
| {{FoP-Layout}} |
| ||
| {{TOO-Layout}} |
| ||
| {{Partnership-Layout}} |
| ||
| {{Source-Layout}} |
| ||
| {{Source-Layout2}} |
| ||
| {{QI-Layout}} |
| ||
| {{FP-Layout}} |
|
Generic templates
These templates give table style formatting with no tags. For use with any template.
| Template | Purpose | |
|---|---|---|
| {{Layout copy|layout=Restriction}} |
| |
| {{Layout copy|layout=FoP}} |
| |
| {{Layout copy|layout=Partnership}} |
| |
| {{Layout copy|layout=Source}} |
| |
| {{Layout copy|layout=Speedy delete}} |
| |
| {{Layout copy|layout=Featured}} |
| |
| {{Layout copy|layout=QI}} |
| |
| {{Layout copy|layout=VI}} |
|
See Also
- Template:Style formatting license template/doc documentation page for similar license templates
Formatting template meant to provide a uniform style for source templates
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Source | 1 | The name of the source
| String | suggested |
| Image | 2 | An image or logo
| Unknown | suggested |
| TextAlign | TextAlign | Alignment of the text
| String | optional |
| ExemptFromTag | ExemptFromTag | Override the default notice about needing a copyright tag | Unknown | optional |