Template:Layout copy: Difference between revisions
More actions
create |
fix |
||
| Line 3: | Line 3: | ||
|Source|source = class="layouttemplate {{{class|}}}" style="width:100%; clear:both; text-align:center; margin:0.5em auto; box-sizing: border-box; padding: 0; border-spacing: 8px; background-color: var(--background-color-neutral-subtle, #f6f7f5); color: var(--color-base, #202122); border: var(--border-subtle, 1px solid #555555); {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{{lang|{{int:lang}}}}}" class="layouttemplate fakesourcetemplate" | |Source|source = class="layouttemplate {{{class|}}}" style="width:100%; clear:both; text-align:center; margin:0.5em auto; box-sizing: border-box; padding: 0; border-spacing: 8px; background-color: var(--background-color-neutral-subtle, #f6f7f5); color: var(--color-base, #202122); border: var(--border-subtle, 1px solid #555555); {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{{lang|{{int:lang}}}}}" class="layouttemplate fakesourcetemplate" | ||
|Partnership|partnership = style="width:100%;clear:both;text-align:center;margin:0.5em auto;background-color:var(--background-color-interactive-subtle,#f9f9f9);color: inherit;border:2px solid var(--border-color-muted,#e0e0e0); border-spacing: 8px; padding: 0; border-collapse: collapsed; {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{{lang|{{int:lang}}}}}" class="layouttemplate fakepartnershiptemplate {{{class|}}}" role="presentation" | |Partnership|partnership = style="width:100%;clear:both;text-align:center;margin:0.5em auto;background-color:var(--background-color-interactive-subtle,#f9f9f9);color: inherit;border:2px solid var(--border-color-muted,#e0e0e0); border-spacing: 8px; padding: 0; border-collapse: collapsed; {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{{lang|{{int:lang}}}}}" class="layouttemplate fakepartnershiptemplate {{{class|}}}" role="presentation" | ||
|FOP|FoP|Fop|fop = | |FOP|FoP|Fop|fop = style="{{#ifeq:{{NAMESPACE}}|Category|clear:left;|width:100%;clear:both;}} margin:0.5em auto; box-sizing: border-box; padding: 0; border-spacing: 8px; background-color: var(--background-color-success-subtle, #e2f2d2); color: var(--color-base, #202122); border-width: var(--border-width-thick, 2px); border-style: solid; border-color: var(--border-color-success, #acce79); {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" class="layouttemplate fakefoptemplate {{{class|}}}" | ||
|Infobar|infobar = class="toccolours layouttemplate {{{class|}}}" style="width: 100%; box-sizing: border-box; padding: 2px; {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{int:lang}}" | |Infobar|infobar = class="toccolours layouttemplate {{{class|}}}" style="width: 100%; box-sizing: border-box; padding: 2px; {{{style|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" lang="{{int:lang}}" | ||
|Speedy Delete|Speedy delete|speedy delete=class="layouttemplate {{{class|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" style="width: 100%; clear: both; margin: 0.5em auto; border-spacing: 8px; box-sizing: border-box; padding: 0; background-color: var(--background-color-error-subtle, #FFE2E0); color: var(--color-base, #202122); border-width: var(--border-width-thick, 3px); border-style: solid; border-color: var(--border-color-error, #CC0000); {{{style|}}}" | |Speedy Delete|Speedy delete|speedy delete=class="layouttemplate {{{class|}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" style="width: 100%; clear: both; margin: 0.5em auto; border-spacing: 8px; box-sizing: border-box; padding: 0; background-color: var(--background-color-error-subtle, #FFE2E0); color: var(--color-base, #202122); border-width: var(--border-width-thick, 3px); border-style: solid; border-color: var(--border-color-error, #CC0000); {{{style|}}}" | ||
Latest revision as of 23:21, 4 September 2025
| example |
Copies function of Category:Style formatting templates but without all the applicable license layout tags and classes that call bots for maintenace and monitoring etc. To not mess with the maintenance categories but still get base styles that look good. To start with and adjust from there. Use to style HTML/wikitables (old) or to style <div> tags (better).
Usage
{{Layout copy |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | empty | optional | ||
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Example
{{Layout copy|<div {{Layout copy|layout=speedy delete}}>
Hello from the other side.
</div>}}
renders as:
Hello from the other side.
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. To view them see: Template:Style formatting template list.
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}} |
|