Difference between revisions of "Template:Infobox platform"

From homebrew.pixelbath
Jump to navigation Jump to search
(initial version cribbed from Template:Infobox homebrew)
 
(cutting down needless detail)
 
Line 18: Line 18:
 
|label6  = Region(s)
 
|label6  = Region(s)
 
|data6    = {{{region|}}}
 
|data6    = {{{region|}}}
 
+
|data7   = {{
|header11 = {{#if: {{{download|}}}{{{downloadraw|}}}{{{website|}}}{{{discussion|}}}{{{source|}}} | Links }}
 
|data12  = {{
 
  #if: {{{download|}}}
 
  | {{
 
    #ifexist: {{{download}}}
 
    | [[{{{download}}}|Download]]
 
    | [{{{download}}} Download]
 
    }}
 
  | {{
 
    #if: {{{downloadraw|}}}
 
    | {{{downloadraw}}}
 
    }}
 
  }}
 
|data13   = {{
 
 
   #if: {{{website|}}}
 
   #if: {{{website|}}}
 
   | {{
 
   | {{
Line 40: Line 26:
 
     }}
 
     }}
 
   }}
 
   }}
|data14   = {{
+
|data8   = {{
 
   #if: {{{discussion|}}}
 
   #if: {{{discussion|}}}
 
   | {{
 
   | {{
Line 48: Line 34:
 
     }}
 
     }}
 
   }}
 
   }}
|data15  = {{
 
  #if: {{{source|}}}
 
  | {{
 
    #ifexist: {{{source}}}
 
    | [[Category:Open source homebrew]][[{{{source}}}|Source]]
 
    | {{
 
      #ifeq: "{{{source}}}" | "included"
 
      | [[Category:Open source homebrew]]Source Included
 
      | [[Category:Open source homebrew]][{{{source}}} Source]
 
      }}
 
    }}
 
  |
 
  }}
 
|data17  = {{
 
  #if: {{{hbb|}}}
 
  | {{
 
      #if: {{{hbbversion|}}}
 
      | {{
 
        #ifeq: "{{{hbbversion|}}}" | "{{{version|}}}"
 
        | {{
 
            #switch: {{{hbb|}}}
 
              | yes = Downloadable via the [[Homebrew Browser]] [[Category:Homebrew in Homebrew Browser]]
 
              | repo = Downloadable via a [[Homebrew Browser]] repository [[Category:Homebrew in Homebrew Browser]] {{#if: {{{hbbrepo|}}} | ({{{hbbrepo|}}})}}
 
              | #default = [[Category:Infobox homebrew using invalid hbb parameter]]
 
          }}
 
        | {{
 
            #switch: {{{hbb|}}}
 
              | yes = Version '''{{{hbbversion|}}}''' downloadable via the [[Homebrew Browser]] [[Category:Homebrew in Homebrew Browser]]
 
              | repo = Version '''{{{hbbversion|}}}''' downloadable via a [[Homebrew Browser]] repository [[Category:Homebrew in Homebrew Browser]] {{#if: {{{hbbrepo|}}} | ({{{hbbrepo|}}})}}
 
              | #default = [[Category:Infobox homebrew using invalid hbb parameter]]
 
          }}
 
        }}
 
      | {{
 
          #switch: {{{hbb|}}}
 
          | yes = Downloadable via the [[Homebrew Browser]] [[Category:Homebrew in Homebrew Browser]]
 
          | repo = Downloadable via a [[Homebrew Browser]] repository [[Category:Homebrew in Homebrew Browser]] {{#if: {{{hbbrepo|}}} | ({{{hbbrepo|}}})}}
 
          | #default = [[Category:Infobox homebrew using invalid hbb parameter]]
 
        }}
 
    }}
 
  }}
 
 
|header21 = {{#if: {{{peripherals|}}} | Peripherals }}
 
|data22  = {{{peripherals|}}}
 
}}{{#ifeq:{{{cat|}}}|no||
 
{{#if:{{{library|}}}|{{#ifexist:Category:Homebrew using {{lcfirst:{{{library}}}}}|[[Category:Homebrew using {{lcfirst:{{{library}}}}}]]|[[Category:Homebrew using {{{library}}}]]}}|}}
 
{{#if:{{{library2|}}}|{{#ifexist:Category:Homebrew using {{lcfirst:{{{library2}}}}}|[[Category:Homebrew using {{lcfirst:{{{library2}}}}}]]|[[Category:Homebrew using {{{library2}}}]]}}|}}
 
{{#if:{{{library3|}}}|{{#ifexist:Category:Homebrew using {{lcfirst:{{{library3}}}}}|[[Category:Homebrew using {{lcfirst:{{{library3}}}}}]]|[[Category:Homebrew using {{{library3}}}]]}}|}}
 
{{#if:{{{library4|}}}|{{#ifexist:Category:Homebrew using {{lcfirst:{{{library4}}}}}|[[Category:Homebrew using {{lcfirst:{{{library4}}}}}]]|[[Category:Homebrew using {{{library4}}}]]}}|}}
 
{{#if:{{{library5|}}}|{{#ifexist:Category:Homebrew using {{lcfirst:{{{library5}}}}}|[[Category:Homebrew using {{lcfirst:{{{library5}}}}}]]|[[Category:Homebrew using {{{library5}}}]]}}|}}
 
 
}}<noinclude>
 
}}<noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 00:38, 25 December 2018

Infobox platform
General