ASDSO Dam Safety Toolbox

Template: Documentation: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
MediaWiki>Taravyvan Adijene
(→‎Rationale: абнаўленьне зьвестак)
 
(Created page with ".ts-doc-sandbox .mbox-image { padding:.75em 0 .75em .75em; } .ts-doc-doc { clear: both; background-color: #eaf3ff; border: 1px solid #a3caff; margin-top: 1em; border-top-left-radius: 2px; border-top-right-radius: 2px; } .ts-doc-header { background-color: #c2dcff; padding: .642857em 1em .5em; border-top-left-radius: 2px; border-top-right-radius: 2px; } .ts-doc-header .ts-tlinks-tlinks { line-height: 24px; margin-left: 0; } .ts-doc-header .ts-tlinks-tlink...")
Line 1: Line 1:
<noinclude>
.ts-doc-sandbox .mbox-image {
<languages/>
padding:.75em 0 .75em .75em;
</noinclude><includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
}
{{documentation|content=
.ts-doc-doc {
clear: both;
background-color: #eaf3ff;
border: 1px solid #a3caff;
margin-top: 1em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}


{{Lua|Module:Documentation}}
.ts-doc-header {
<translate><!--T:12--> This template automatically displays a documentation box like the one you are seeing now, of which the content is sometimes transcluded from another page.</translate>
background-color: #c2dcff;
<translate><!--T:13--> It is intended for pages which are [[<tvar name=1>Special:MyLanguage/Help:Transclusion</tvar>|transcluded]] in other pages, i.e. templates, whether in the template namespace or not.</translate>
padding: .642857em 1em .5em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}


<translate>
.ts-doc-header .ts-tlinks-tlinks {
==Usage== <!--T:2-->
line-height: 24px;
margin-left: 0;
}


===Customizing display=== <!--T:3-->
.ts-doc-header .ts-tlinks-tlinks a.external {
color: #0645ad;
}


<!--T:4-->
.ts-doc-header .ts-tlinks-tlinks a.external:visited {
Overrides exist to customize the output in special cases:
color: #0b0080;
</translate>
}
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <translate><!--T:5--> change the text of the "documentation" heading.</translate> <translate><!--T:10--> If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.</translate>


<translate>
.ts-doc-header .ts-tlinks-tlinks a.external:active {
==Rationale== <!--T:6-->
color: #faa700;
</translate>
}
<translate><!--T:7--> This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation and categories.</translate>
<translate><!--T:8--> It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [[<tvar name=1>:en:Special:Diff/69888944</tvar>|developer's explanation]]).</translate>


<translate>
.ts-doc-content {
==See also== <!--T:9-->
padding: .214286em 1em;
</translate>
}
* <translate><!--T:14--> [[w:Template:Documentation subpage]]</translate>
* {{tim|Documentation}}
* <translate><!--T:11--> [[w:Wikipedia:Template documentation]]</translate>


}}
.ts-doc-content:after {
[[Category:Formatting templates{{#translation:}}|Template documentation]]
content: '';
[[Category:Template documentation{{#translation:}}| ]]
clear: both;
</noinclude><includeonly>{{#if:{{{content|}}}|
display: block;
[[Category:Template documentation pages{{#translation:}}]]
}
}}</includeonly>
 
.ts-doc-heading {
display: inline-block;
padding-left: 30px;
background: center left/24px 24px no-repeat;
/* @noflip */
background-image: url(//upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg);
height: 24px;
line-height: 24px;
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
 
.ts-doc-content > *:first-child,
.ts-doc-footer > *:first-child {
margin-top: .5em;
}
 
.ts-doc-content > *:last-child,
.ts-doc-footer > *:last-child {
margin-bottom: .5em;
}
 
.ts-doc-footer {
background-color: #eaf3ff;
border: 1px solid #a3caff;
padding: .214286em 1em;
margin-top: .214286em;
font-style: italic;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
 
@media all and (min-width: 720px) {  
.ts-doc-header .ts-tlinks-tlinks {
float: right;
}
}

Revision as of 17:29, 26 May 2022

.ts-doc-sandbox .mbox-image { padding:.75em 0 .75em .75em; }

.ts-doc-doc { clear: both; background-color: #eaf3ff; border: 1px solid #a3caff; margin-top: 1em; border-top-left-radius: 2px; border-top-right-radius: 2px; }

.ts-doc-header { background-color: #c2dcff; padding: .642857em 1em .5em; border-top-left-radius: 2px; border-top-right-radius: 2px; }

.ts-doc-header .ts-tlinks-tlinks { line-height: 24px; margin-left: 0; }

.ts-doc-header .ts-tlinks-tlinks a.external { color: #0645ad; }

.ts-doc-header .ts-tlinks-tlinks a.external:visited { color: #0b0080; }

.ts-doc-header .ts-tlinks-tlinks a.external:active { color: #faa700; }

.ts-doc-content { padding: .214286em 1em; }

.ts-doc-content:after { content: ; clear: both; display: block; }

.ts-doc-heading { display: inline-block; padding-left: 30px; background: center left/24px 24px no-repeat; /* @noflip */ background-image: url(//upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg); height: 24px; line-height: 24px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.ts-doc-content > *:first-child, .ts-doc-footer > *:first-child { margin-top: .5em; }

.ts-doc-content > *:last-child, .ts-doc-footer > *:last-child { margin-bottom: .5em; }

.ts-doc-footer { background-color: #eaf3ff; border: 1px solid #a3caff; padding: .214286em 1em; margin-top: .214286em; font-style: italic; border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }

@media all and (min-width: 720px) { .ts-doc-header .ts-tlinks-tlinks { float: right; } }