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
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 18: Line 18:
{{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}}
{{component|3 Bit Decoder|The component that decodes 3 bits|alpha}}
</noinclude>
</noinclude>

Revision as of 05:21, 14 January 2025

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

Create a link to the named component.

Quick example

{{component|3 Bit Decoder}}

3 Bit Decoder

Full example

You can also incude display text.

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

The component that decodes 3 bits

Alpha branch

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