Jump to content

Template:Code result: Difference between revisions

From NixOS Wiki
DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{Box|{{code result/Content|{{code|lang={{{lang|}}}|line={{{line|}}}|copy={{{copy|}}}|highlight={{{highlight|}}}|{{{1}}}}}|{{{1}}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{Box|{{code result/Content|{{{1}}}|{{{1}}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 21:56, 5 June 2025

Template Documentation [edit source| uses| help]

✖︎︎
This article is a deletion candidate. Failed experiment. Further information may be found on the related discussion page.
😵︎
This template is broken. If you are knowledgeable with MediaWiki syntax, please fix it. Otherwise consider marking it with {{delete}} to propose it for deletion.

This template can be used in {{documentation}} to display the result of a chunk of code.

✖︎︎
This article is a deletion candidate. Failed experiment. Further information may be found on the related discussion page.
😵︎
This template is broken. If you are knowledgeable with MediaWiki syntax, please fix it. Otherwise consider marking it with {{delete}} to propose it for deletion.
&lt;div class="box" style="
  --box-color-impl: var(--color-progressive);
  --box-background-impl: ;
  --box-text-color-impl: var(--box-text-color, var(--box-color-impl));
  --box-text-weight-impl: var(--box-text-weight, 500);

  --box-border-color-impl: var(--color-progressive);
  --box-border-size-impl: var(--box-border-size, 1px);
  --box-border-radius-impl: var(--box-border-radius, 0.5rem);

  --box-padding-impl: 0.6rem;
  --box-margin-impl: 0.6rem 0;

  --box-wiki-content-padding-top: calc(var(--box-padding-impl) - 1em);
  --box-wiki-content-padding-bottom: calc(var(--box-padding-impl) - 0.8em);
  --box-wiki-content-padding: var(--box-wiki-content-padding-top) var(--box-padding-impl) var(--box-wiki-content-padding-bottom) var(--box-padding-impl);

  display: flex;
  background: var(--box-background-impl);
  color: var(--box-color-impl);
  padding: var(--box-padding-impl);
  margin: var(--box-margin-impl);
  border: var(--box-border-size-impl) solid var(--box-border-color-impl);
  border-radius: var(--box-border-radius-impl);

  
"&gt;
  &lt;div class="box-content" style=" flex-grow: 1;"&gt;&lt;div style="display: flex; align-items: center; gap: 0.6rem;"&gt;&lt;div style="color: var(--notice-text-color-impl);
    font-weight: var(--notice-text-weight-impl);"&gt;'''Note:''' This is some '''bold text'''.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
Note: This is some bold text.