Template
Documentation header
From Dogcraft Wiki
(Created page with "<div class="documentation-header" style="margin:10px 0 0; display:flex; align-items:end;"> <h2 style="margin-bottom: 5px;> Template documentation </h2> <div class="documentation-header-menu" style="display:flex; flex-grow:1; justify-content:end; height:fit-content; color:#525252;"><!-- --><div style="font-weight:600; padding:0 8px 8px 8px;"><!-- -->{{#if: {{{documentation|}}}{{{styles|}}} | {{fa|pencil}}<span style="padding:0 8px 0 6px;">Edit:</span><!-- ---->{{#if: {{{d...") |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<div class="documentation-header" style="margin:10px 0 0; display:flex; align-items:end;"> | <includeonly><div class="documentation-header" style="margin:10px 0 0; display:flex; align-items:end;"> | ||
<h2 style="margin-bottom: 5px;> Template documentation </h2> | <h2 style="margin-bottom: 5px;> Template documentation </h2> | ||
<div class="documentation-header-menu" style="display:flex; flex-grow:1; justify-content:end; height:fit-content; color:#525252;"><!-- | <div class="documentation-header-menu" style="display:flex; flex-grow:1; justify-content:end; height:fit-content; color:#525252;"><!-- | ||
--><div style="font-weight:600; padding:0 8px 8px 8px;"><!-- | --><div style="font-weight:600; padding:0 8px 8px 8px;"><!-- | ||
-->{{#if: {{{documentation|}}}{{{styles|}}} | {{fa|pencil}}<span style="padding:0 8px 0 6px;">Edit:</span><!-- | -->{{#if: {{{multiple|}}} |<!-- | ||
---->{{#if: {{{documentation|}}} |<span style="padding: 0 4px;">[[{{{documentation}}}|documentation]]</span>}}<!-- | ---->{{#if: {{{documentation|}}}{{{styles|}}} | {{fa|pencil}}<span style="padding:0 8px 0 6px;">Edit:</span><!-- | ||
---->{{#if: {{{documentation|}}} |{{#if: {{{styles|}}} |<span style="font-weight:400;"> {{!}} </span>}}}}<!-- | ------>{{#if: {{{documentation|}}} |<span style="padding: 0 4px;">[[{{{documentation}}}|documentation]]</span>}}<!-- | ||
---->{{#if: {{{styles|}}} |<span style="padding: 0 4px;">[[{{{styles}}}|styles]]}}</span><!-- | ------>{{#if: {{{documentation|}}} |{{#if: {{{styles|}}} |<span style="font-weight:400;"> {{!}} </span>}}}}<!-- | ||
------>{{#if: {{{styles|}}} |<span style="padding: 0 4px;">[[{{{styles}}}|styles]]}}</span><!-- | |||
---->}}<!-- | |||
-->|<!-- | |||
---->{{#if: {{{documentation|}}} | [[{{{documentation}}}|{{Iconed text|pencil|Edit documentation|fa}}]] }}<!-- | |||
-->}} | -->}} | ||
</div></div></div> | </div></div></div> | ||
<hr style="margin:-3px 0 1rem 0; border-color:#d9d6d3; border-style:solid;" /> | <hr style="margin:-3px 0 1rem 0; border-color:#d9d6d3; border-style:solid;" /></includeonly><noinclude> | ||
=== Examples === | |||
<syntaxhighlight inline="1">{{Documentation header}}</syntaxhighlight> generates: {{Documentation header}} | |||
<syntaxhighlight inline="1">{{Documentation header|documentation=#}}</syntaxhighlight> generates: {{Documentation header|documentation=#}} | |||
<syntaxhighlight inline="1">{{Documentation header|multiple=1|documentation=#|styles=#}}</syntaxhighlight> generates: {{Documentation header|multiple=1|documentation=#|styles=#}} | |||
Latest revision as of 00:57, 3 February 2026
Examples
{{Documentation header}} generates:
Template documentation
{{Documentation header|documentation=#}} generates:
Template documentation
{{Documentation header|multiple=1|documentation=#|styles=#}} generates: