Template:Right: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | To include documentation on your template page, wrap it in `<noinclude>` tags: | ||
```html | |||
<div style="float: right; clear: right; margin: 0 0 1em 1em;"> | |||
{{{1}}} | {{{1}}} | ||
</div> | </div> | ||
<noinclude> | |||
== Documentation == | |||
This template creates a right-aligned floating box for images or other content. | |||
=== Usage === | |||
<code><nowiki>{{TemplateName|image.jpg}}</nowiki></code> | |||
=== Parameters === | |||
* '''1''' - The image file or content to display | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Image or content", | |||
"description": "The image file or content to display in the right-aligned box", | |||
"type": "wiki-page-name", | |||
"required": true | |||
} | |||
}, | |||
"description": "Creates a right-aligned floating box for images or other content" | |||
} | |||
</templatedata> | |||
[[Category:Layout templates]] | |||
</noinclude> | |||
``` | |||
Everything inside `<noinclude>` tags appears on the template page but won't be transcluded when the template is used on other pages. | |||
Revision as of 16:49, 28 July 2025
To include documentation on your template page, wrap it in `` tags:
```html
{{{1}}}
Documentation
This template creates a right-aligned floating box for images or other content.
Usage
{{TemplateName|image.jpg}}
Parameters
- 1 - The image file or content to display
Creates a right-aligned floating box for images or other content
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image or content | 1 | The image file or content to display in the right-aligned box | Page name | required |
```
Everything inside `` tags appears on the template page but won't be transcluded when the template is used on other pages.