Template:FixCard: Difference between revisions

From Dea7hsmiles
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<includeonly>
<includeonly>
{{#if:{{{toc|}}}|
  {{#switch:{{{toc}}}
    |2 = == {{#if:{{{type|}}}|{{{type}}}: }}{{{title|Untitled}}}{{#if:{{{date|}}}| ({{{date}}})|}} ==
    |3 = === {{#if:{{{type|}}}|{{{type}}}: }}{{{title|Untitled}}}{{#if:{{{date|}}}| ({{{date}}})|}} ===
    |4 = ==== {{#if:{{{type|}}}|{{{type}}}: }}{{{title|Untitled}}}{{#if:{{{date|}}}| ({{{date}}})|}} ====
    |#default = === {{#if:{{{type|}}}|{{{type}}}: }}{{{title|Untitled}}}{{#if:{{{date|}}}| ({{{date}}})|}} ===
  }}
}}
<div class="fix-card">
<div class="fix-card">
   <div class="fix-card__header">
   <div class="fix-card__header">
     <span class="fix-card__type">{{{type|Fix}}}</span>
     <span class="fix-card__type">{{{type|Tip}}}</span>
     <span class="fix-card__title">{{{title|Untitled}}}</span>
     <span class="fix-card__title">{{{title|Untitled}}}</span>
   </div>
   </div>
  {{#if:{{{summary|}}}|<div class="fix-card__summary">{{{summary}}}</div>|}}


   <div class="fix-card__meta">
   <div class="fix-card__meta">
     {{#if:{{{author|}}}|Posted by '''{{{author}}}'''|}}
     {{#if:{{{author|}}}|<div><b>By:</b> {{{author}}}</div>|}}
     {{#if:{{{date|}}}| {{{date}}}|}}
     {{#if:{{{date|}}}|<div><b>Date:</b> {{{date}}}</div>|}}
     {{#if:{{{source|}}}| • [{{{source}}} Source]|}}
     {{#if:{{{affected|}}}|<div><b>Affects:</b> {{{affected}}}</div>|}}
     {{#if:{{{affected|}}}| • Affects: {{{affected}}}|}}
     {{#if:{{{source|}}}|<div><b>Source:</b> [{{{source}}} link]</div>|}}
   </div>
   </div>


   <div class="fix-card__summary">
   {{#if:{{{steps|}}}|
     {{{summary|}}}
    <div class="fix-card__steps">
  </div>
      <div class="fix-card__steps-body">
        '''Steps'''
{{{steps}}}
      </div>
     </div>
  |}}
 
  {{#if:{{{notes|}}}|<div class="fix-card__notes"><b>Notes</b><br/>{{{notes}}}</div>|}}


   {{#if:{{{steps|}}}|
   {{#if:{{{code|}}}|
  <div class="fix-card__steps">
    <div class="fix-card__code"><b>Code</b>
    <div class="fix-card__steps-body">
<pre class="fix-code">{{{code}}}</pre>
      '''Steps'''
      {{{steps}}}
     </div>
     </div>
  </div>
   |}}
   |}}


   {{#if:{{{notes|}}}|<div class="fix-card__notes"><b>Notes:</b> {{{notes}}}</div>|}}
   {{#if:{{{attachments|}}}|<div class="fix-card__attachments"><b>Attachments</b><br/>{{{attachments}}}</div>|}}
  {{#if:{{{attachments|}}}|<div class="fix-card__attachments"><b>Attachments:</b> {{{attachments}}}</div>|}}
   {{#if:{{{tags|}}}|<div class="fix-card__tags">{{{tags}}}</div>|}}
   {{#if:{{{tags|}}}|<div class="fix-card__tags">'''Tags:''' {{{tags}}}</div>|}}
</div>
</div>
[[Category:Community fixes]]
[[Category:Community fixes]]
Line 44: Line 40:


<pre>{{FixCard
<pre>{{FixCard
  |type=Fix or Tip
  |type=Tip or Fix
  |title=
  |title=
  |author=
  |author=
Line 52: Line 48:
  |summary=
  |summary=
  |steps=
  |steps=
# Step one
# Step 1
# Step two
# Step 2
  |notes=
  |notes=
* bullet
* bullet
|code=
; optional code block (will be shown inline)
  |attachments=
  |attachments=
  |tags=Windows • Controller • Lightgun
  |tags=Windows • Config
}}</pre>
}}</pre>
</noinclude>
</noinclude>

Revision as of 16:32, 15 August 2025

Usage:

{{FixCard
 |type=Tip or Fix
 |title=
 |author=
 |date=
 |source=
 |affected=
 |summary=
 |steps=
# Step 1
# Step 2
 |notes=
* bullet
* bullet
 |code=
; optional code block (will be shown inline)
 |attachments=
 |tags=Windows • Config
}}