Difference between revisions of "Template:Shared repository category"

From LFS Manual
Jump to navigationJump to search
m (changed icon)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
     z-index: 1;
 
     z-index: 1;
 
     border: 1px solid #a2a9b1;
 
     border: 1px solid #a2a9b1;
    border-spacing: 3px;
 
 
     background-color: #f8f9fa;
 
     background-color: #f8f9fa;
    color: black;
 
 
     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|right}};
Line 15: Line 13:
 
     align-items: center;
 
     align-items: center;
 
">
 
">
<div style="padding: 2px 0 2px 0.9em">[[File:Information icon4.png|40px]]</div>
+
<div style="padding: 2px 0 2px 0.9em">[[File:Gallery icon.png|40px]]</div>
 
<div style="padding: 0.25em 0.9em">
 
<div style="padding: 0.25em 0.9em">
 
Shared repository has media related to
 
Shared repository has media related to
 
<span style="font-weight: bold; font-style: italic; text-decoration: none; color: #0645ad; background: none;">
 
<span style="font-weight: bold; font-style: italic; text-decoration: none; color: #0645ad; background: none;">
{{Plain link|{{#if:{{{1|}}}|https://upload.lfsmanual.net/wiki/Category:{{PAGENAMEE:{{{1|}}}}}|https://upload.lfsmanual.net/wiki/Category:{{PAGENAMEE}}}}|{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}}}</span>.
+
{{Plain link|{{#if:{{{1|}}}|https://upload.lfsmanual.net/wiki/Category:{{PAGENAMEE:{{{1}}}}}|https://upload.lfsmanual.net/wiki/Category:{{PAGENAMEE}}}}|{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}}</span>.
 
</div>
 
</div>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>

Latest revision as of 20:39, 6 February 2024

Template Info-Icon.png

Template documentation

View - Edit

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}}
Gallery icon.png

Shared repository has media related to Shared repository category.

Markup Renders as
text {{Shared repository category|XF GTR}}
text
Gallery icon.png

Shared repository has media related to XF GTR.

Markup Renders as
text {{Shared repository category|Blackwood|BL}}
text
Gallery icon.png

Shared repository has media related to BL.

Markup Renders as
text {{Shared repository category|Blackwood|position=left}}
text
Gallery icon.png

Shared repository has media related to Blackwood.

Parameters

Infobox league parameters and basic guidelines
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 on the right. left