Template:Documentation: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
set to display flow-root to contain floats if the happen to be at the very end
Swapped float: right by text-align: right to fix mobile alignment
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine: docpage_link|{{{1|{{FULLPAGENAMEE}}/doc}}}}}<!--


--><div style="
--><div class="documentation"><!--
    display: flow-root;
--><div class="documentation-header"><!--
    border: 2px solid var(--border-color);
-->[[File:Template-{{#ifexist:{{#vardefineecho:docpage|{{{1|Template:{{#replace:{{{1|{{PAGENAME}}/doc}}}|Template:|}}}}}<!-- end vde -->}}|{{#if:{{{baddoc|}}}|bad}}|no}}info.svg|50px|link=]] <!--
    padding: 0.4rem;
--><span style="font-weight: bold; font-size: 125%; margin-right: 10px;">Documentation</span> <!--
    background-color: color-mix(in srgb, var(--action-color-dark-x2) 5%, transparent);
-->{{#ifeq:{{SUBPAGENAME}}|doc|<!--nothing-->|<!--
    border-radius: .2rem;
-->{{#ifexist:{{#var:docpage}}|<!--
"><!--
--><span style="font-size: 90%; font-style: italic;"><!--
    --><div style="text-align:center; margin-bottom: 1rem;"><!--
-->[{{fullurl:{{#var:docpage}}|action=edit}} Edit] this documentation at [{{fullurl:{{#var:docpage}}|redirect=no}} {{FULLPAGENAMEE:{{#var:docpage}}}}].<!--
    --><div style="font-weight: bold; font-size: large;">Template documentation</div><!--
--></span><!--
    --><span style="font-size: 1.05em;">[[{{#var:docpage_link}}|view]]</span> or <span style="font-size: 1.05em;">[https://wiki.spacestation14.com/wiki/{{#var:docpage_link}}?action=edit edit]</span> this documentation {{colored text|gray|•}} [[Template:Documentation|about template documentation]]<!--
-->}}<!--
    --><hr>
-->}}<!--
</div><!--
--><div style="text-align: right; margin-left: 5px;"><!--
-->([{{fullurl:{{FULLPAGENAMEE}}/doc|action=edit}} edit] • [{{fullurl:{{FULLPAGENAMEE}}/doc|action=history}} history] • [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} purge])<!--
--></div><!--
--></div><!--
<!-- leave line break here -->
{{#if:{{{lua|}}}|{{UsesLua|{{{lua}}} }} }}
<!-- documentation text/error box begins here -->
<div style="border-radius: 5px; border: 2px solid var(--wiki-content-border-color); margin: 0.5em auto 1em; padding: 0.8em 1.2em; background: var(--wiki-content-background-color--secondary);">
<!--
-->{{#ifexist:{{#var:docpage}}|<!--


-->{{#vardefine: below_banner|{{{below banner|{{{bb|}}}}}}}}<!--


-->{{#if: {{#var:below_banner}}<!--
If there is documentation
    -->|{{{below banner|{{{bb|}}}}}}<!--
    -->|<!--
-->}}<!--


-->__TOC__<!--
-->
-->{{clear}}<!--
{{ {{#var:docpage}} }}
--><br>
<!--
{{{{{1|{{PAGENAME}}/doc}}}}}</div></includeonly><noinclude>


{{Documentation|bb=
{{has alias templates|docs}}
}}


[[Category:Templates for documenting other templates]]
Else
<templatedata>
 
{
-->|<!--
"params": {
-->No documentation subpage exists yet for this template. [{{fullurl:{{FULLPAGENAMEE:Template:{{{1|{{PAGENAME}}}}}}}/doc|action=edit&preload=Template:Doc/preload}} Create one now].<!--
"1": {
-->[[Category:Templates with no documentation]]<!--
"label": "Link override",
-->}}<!-- leave line break here -->
"description": "Override for the documentation link.",
<!-- documentation text/error box ends here -->
"type": "wiki-page-name",
</div>
"default": "/doc (relative to the page, where this template is included)."
<!-- -->{{#ifeq:{{SUBPAGENAME}}|doc|<!--
},
-->{{#ifeq:{{BASEPAGENAME}}|Doc|<!--nothing-->|<!-- only if page is not Template:Doc
"below banner": {
-->This is the documentation page, it should be transcluded into the main template page. See {{tlx|doc}} for more information. <!--
"label": "Content below banner",
-->[[Category:Template documentation]]<!--
"description": "Content to insert below banner and above documentation.",
-->}}<!--
"type": "content",
-->}}<!--
"aliases": [
--></div><!--
"bb"
 
]
--></includeonly><!--
}
 
},
--><noinclude>{{Documentation}}
"description": "This template is used to insert descriptions on template pages.",
[[Category:Documentation templates| ]]
"format": "inline"
</noinclude>
}
</templatedata></noinclude>

Revision as of 19:37, 18 February 2025

File:Template-noinfo.svg Documentation
(edithistorypurge)

No documentation subpage exists yet for this template. Create one now.