Difference between revisions of "Template:Shared repository category"
From LFS Manual
Jump to navigationJump to searchm (changed icon) |
|||
| Line 5: | Line 5: | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
margin: {{#ifeq:{{{position|}}}|left|4px 1em 4px 0|4px 0 4px 1em}}; | margin: {{#ifeq:{{{position|}}}|left|4px 1em 4px 0|4px 0 4px 1em}}; | ||
| − | float: {{#ifeq:{{{position|}}}|left|left|right}}; | + | float: {{#ifeq:{{{position|}}}|left|left|{{#ifeq:{{{position|}}}|right|right|none}}}}; |
| − | clear: {{#ifeq:{{{position|}}}|left|left|right}}; | + | clear: {{#ifeq:{{{position|}}}|left|left|{{#ifeq:{{{position|}}}|right|right|none}}}}; |
font-size: 88%; | font-size: 88%; | ||
line-height: 1.25em; | line-height: 1.25em; | ||
Latest revision as of 12:17, 3 January 2025
Template documentation
Shared repository category is used to indicate the existence of media related to the article, over on the shared repository: upload.lfsmanual.net.
Usage
| Markup | Renders as |
|---|---|
{{Shared repository category}}
|
Shared repository has media related to Shared repository category. |
| Markup | Renders as |
|---|---|
text {{Shared repository category|XF GTR}}
|
text
Shared repository has media related to XF GTR. |
| Markup | Renders as |
|---|---|
text {{Shared repository category|Blackwood|BL}}
|
text
Shared repository has media related to BL. |
| Markup | Renders as |
|---|---|
text {{Shared repository category|Blackwood|position=left}}
|
text
Shared repository has media related to Blackwood. |
| Markup | Renders as |
|---|---|
text {{Shared repository category|Blackwood|position=right}}
|
text
Shared repository has media related to Blackwood. |
| Markup | Renders as |
|---|---|
text {{Shared repository category|Blackwood|position=none}}
|
text
Shared repository has media related to Blackwood. |
Parameters
| Parameter | Explanation | Example values |
|---|---|---|
| 1 | Optional. Category name on the shared repository to link to. By default it takes the article title (PAGENAME). If you do not define this, please double check that a category with the article name exists on the shared repository. | XF GTR
|
| 2 | Optional. Overrides text of the link. if needed. | XFR
|
| position | Optional. If specified as left, the box appears on the left side of the article. By default it is not floating.
|
left
|