Jump to content

Template:Feature: Difference between revisions

From postmarketOS Wiki
Exkc (talk | contribs)
color tweak
Exkc (talk | contribs)
test
Line 1: Line 1:
<!-- The argument should be a string of P/Y/N/- possibly followed
by a colon and a page link or section link for more info. Examples:


{{Feature|Y:See [[OnePlus 6#GPS]]}}
{{Feature|N:See [[HardPhone#Why nothing works]]}}
{{Feature|P:See [[#Issues with boot]]}}
-->


{{#switch:{{#sub:{{{1|}}}|0|1}}
{{#switch:{{#sub:{{{1|}}}|0|1}}
     |P=<div style="background: #f1fa8c !important;" class="feature feature-partial">Partial</div>  
     |P=<div style="background: #f1fa8c !important;" class="feature feature-partial">{{#if:{{#sub:{{{1|}}}|2}}
     |Y=<div style="background: #50fa7b !important;" class="feature feature-yes">Works</div>  
        |Partial <br> Note:{{#replace:{{#sub:{{{1|}}}|2}}|#|%23}}
     |N=<div style="background: #ff5555 !important;" class="feature feature-no">Broken</div>  
        |Partial
     |-=<div style="background: #E1E1E1 !important;" class="feature feature-unavailable">Unavailable</div>  
    }}</div>  
     |<div></div>
     |Y=<div style="background: #50fa7b !important;" class="feature feature-yes">{{#if:{{#sub:{{{1|}}}|2}}
        |Works <br> Note:{{#replace:{{#sub:{{{1|}}}|2}}|#|%23}}
        |Works
    }}</div>  
     |N=<div style="background: #ff5555 !important;" class="feature feature-no">{{#if:{{#sub:{{{1|}}}|2}}
        | Broken <br> Note:[[{{#replace:{{#sub:{{{1|}}}|2}}|#|%23}}|Broken]]
        |Broken
    }}</div>  
     |-=<div style="background: #E1E1E1 !important;" class="feature feature-unavailable">{{#if:{{#sub:{{{1|}}}|2}}
        |Unavailable <br> Note:{{#replace:{{#sub:{{{1|}}}|2}}|#|%23}}
        |Unavailable
    }}</div>  
     | <div></div>
}}
}}

Revision as of 12:28, 12 October 2024