Template:Component: Difference between revisions

Template page
(Created page with "[[Component/{{{1}}}{{!}}{{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}]]<noinclude> Create a link to the named component. ===Quick example=== <pre> {{component|3 Bit Decoder}} </pre> {{component|3 Bit Decoder}} ===Full example=== You can also incude display text. <pre> {{component|3 Bit Decoder|The component that decodes 3 bits}} </pre> {{component|3 Bit Decoder|The component that decodes 3 bits}} </noinclude>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Component/{{{1}}}{{!}}{{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}]]<noinclude>
[[{{#ifeq:{{{3|}}}|alpha|Alpha Branch/}}Component/{{{1}}}{{!}}{{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}]]<noinclude>


Create a link to the named component.
Create a link to the named component.
Line 5: Line 5:
===Quick example===
===Quick example===
<pre>
<pre>
{{component|3 Bit Decoder}}
{{Component|3 Bit Decoder}}
</pre>
</pre>


{{component|3 Bit Decoder}}
{{Component|3 Bit decoder}}


===Full example===
===Full example===
You can also incude display text.
You can also incude display text.
<pre>
<pre>
{{component|3 Bit Decoder|The component that decodes 3 bits}}
{{Component|3 Bit decoder|The component that decodes 3 bits}}
</pre>
</pre>


{{component|3 Bit Decoder|The component that decodes 3 bits}}
{{Component|3 Bit decoder|The component that decodes 3 bits}}


===Alpha branch===
You can reference Alpha branch versions of the components by including <code>alpha</code> as the third parameter.
<pre>
{{Component|3-bit decoder||alpha}}
{{Component|3-bit decoder|The component that decodes 3 bits|alpha}}
</pre>
{{component|3-bit decoder||alpha}}<br>
{{component|3-bit decoder|The component that decodes 3 bits|alpha}}
</noinclude>
</noinclude>

Latest revision as of 05:26, 14 January 2025

[[Component/{{{1}}}|{{{1}}}]]

Create a link to the named component.

Quick example[edit source]

{{Component|3 Bit Decoder}}

3 Bit decoder

Full example[edit source]

You can also incude display text.

{{Component|3 Bit decoder|The component that decodes 3 bits}}

The component that decodes 3 bits

Alpha branch[edit source]

You can reference Alpha branch versions of the components by including alpha as the third parameter.

{{Component|3-bit decoder||alpha}}
{{Component|3-bit decoder|The component that decodes 3 bits|alpha}}

3-bit decoder
The component that decodes 3 bits