Difference between revisions of "Template:Platform only"

From Lazarus wiki
(Added iPadOS)
(updated the older Windows logo to at least not be a broken link)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly><div style="background-color:{{Platform_only/Colors|bkgrnd|{{{1}}}}}; border:1px solid {{Platform_only/Colors|border|{{{1}}}}}; float:right; padding:0.5em 0.8em; margin-top:1em; clear:both;">{{#switch: {{{1}}}
 
<onlyinclude><includeonly><div style="background-color:{{Platform_only/Colors|bkgrnd|{{{1}}}}}; border:1px solid {{Platform_only/Colors|border|{{{1}}}}}; float:right; padding:0.5em 0.8em; margin-top:1em; clear:both;">{{#switch: {{{1}}}
 
| Amiga = [[File:Amiga-checkmark.png|left|50px]]
 
| Amiga = [[File:Amiga-checkmark.png|left|50px]]
 +
| AmigaOS = [[File:AmigaOS-boingball.png|left|50px]]
 
| Android = [[File:Android robot.svg|left|50px]]
 
| Android = [[File:Android robot.svg|left|50px]]
 
| Arduino = [[File:Arduino Logo.svg|left|50px]]
 
| Arduino = [[File:Arduino Logo.svg|left|50px]]
Line 17: Line 18:
 
| Windows = [[File:Windows logo - 2012.svg|left|50px]]
 
| Windows = [[File:Windows logo - 2012.svg|left|50px]]
 
| Raspberry Pi = [[File:Raspberry Pi Logo.png|left|50px]]
 
| Raspberry Pi = [[File:Raspberry Pi Logo.png|left|50px]]
| WindowsXP = [[File:Windows logo - 2002–2012 (Multicolored).svg|left|50px]]
+
| WindowsXP = [[File:Microsoft_Windows_7_logo.png|left|50px]]
 
| [[File:Stock-dialog-warning.svg|left|50px|left|50px]]
 
| [[File:Stock-dialog-warning.svg|left|50px|left|50px]]
 
}}
 
}}
Line 32: Line 33:
 
* If no platform given, a generic message will be shown
 
* If no platform given, a generic message will be shown
 
* Amiga
 
* Amiga
 +
* AmigaOS
 
* Android
 
* Android
 
* Arduino
 
* Arduino
Line 72: Line 74:
 
|-
 
|-
 
|Amiga|| || || <p style="font-family:monospace"><nowiki>{{Platform only|Amiga}}</nowiki></p> || {{Platform only|Amiga|AmigaOS|Amiga}}
 
|Amiga|| || || <p style="font-family:monospace"><nowiki>{{Platform only|Amiga}}</nowiki></p> || {{Platform only|Amiga|AmigaOS|Amiga}}
 +
|-
 +
|AmigaOS|| || || <p style="font-family:monospace"><nowiki>{{Platform only|Amiga}}</nowiki></p> || {{Platform only|AmigaOS|AmigaOS|AmigaOS 4.x}}
 
|-
 
|-
 
|Android|| || || <p style="font-family:monospace"><nowiki>{{Platform only|Android}}</nowiki></p> || {{Platform only|Android}}
 
|Android|| || || <p style="font-family:monospace"><nowiki>{{Platform only|Android}}</nowiki></p> || {{Platform only|Android}}

Revision as of 07:09, 21 July 2020

This is a template for a platform-only hint.

Documentation

Usage: {{Platform only|<Platform>|<Category>|<Category display name>}}

Possible values for <Platform> are

  • If no platform given, a generic message will be shown
  • Amiga
  • AmigaOS
  • Android
  • Arduino
  • AROS
  • AVR
  • FreeBSD
  • GTK+
  • iOS
  • iPadOS
  • Linux
  • Mac OS Classic
  • macOS
  • MorphOS
  • Qt
  • Raspberry Pi
  • Ubuntu
  • Windows
  • WindowsXP

Parameter <Category> is optional; if given, this is the name of the category which is linked. If not given, <Platform> will be used as category name.

Parameter <Category display name> is only recognized if <Category> is present. It will change the text of the category link.

For different platform versions please use the appropriate <Platform> and set the general category (if no special category exists).

Colors

Colors are defined in Template:Platform only/Colors and may be modified there.

Translation

All texts are defined in Template:Platform only/Text. The template is language aware and uses the language part of the transcluding page.

Showcase

This is only a showcase to show how the result may look like. It isn't a complete list of all platforms.

Platform Category Category display name Text Output

{{Platform only}}

Stock-dialog-warning.svg

This article is platform-dependent.

See also: Multiplatform Programming Guide

Amiga

{{Platform only|Amiga}}

Amiga-checkmark.png

This article applies to Amiga only.

See also: Multiplatform Programming Guide

AmigaOS

{{Platform only|Amiga}}

AmigaOS-boingball.png

This article applies to AmigaOS 4.x only.

See also: Multiplatform Programming Guide

Android

{{Platform only|Android}}

Android robot.svg

This article applies to Android only.

See also: Multiplatform Programming Guide

Arduino Arduino Arduino boards

{{Platform only|Arduino|Arduino|Arduino boards}}

Arduino Logo.svg

This article applies to Ardunio boards only.

See also: Multiplatform Programming Guide

AROS

{{Platform only|AROS}}

AROS-mascotte.png

This article applies to AROS only.

See also: Multiplatform Programming Guide

AVR AVR AVR microprocessors

{{Platform only|AVR|AVR|AVR microprocessors}}

Avr logo.svg

This article applies to AVR microprocessors only.

See also: Multiplatform Programming Guide

FreeBSD

{{Platform only|FreeBSD}}

FBSD Daemon.jpg

This article applies to FreeBSD only.

See also: Multiplatform Programming Guide

GTK+ GTK Widgetsets GTK+ Widgetsets

{{Platform only|GTK+|GTK Widgetsets|GTK+ Widgetsets}}

GTK logo.svg

This article applies to GTK+ Widgetsets only.

See also: Multiplatform Programming Guide

iOS

{{Platform only|iOS}}

Apple iOS new.svg

This article applies to iOS only.

See also: Multiplatform Programming Guide

iPadOS

{{Platform only|iPadOS}}

Apple iPadOS.png

This article applies to iPadOS only.

See also: Multiplatform Programming Guide

Linux

{{Platform only|Linux}}

Crystal 128 penguin.png

This article applies to Linux only.

See also: Multiplatform Programming Guide

Mac OS Classic

{{Platform only|Mac OS Classic}}

Logo OSX.png

This article applies to Mac OS Classic only.

See also: Multiplatform Programming Guide

macOS

{{Platform only|macOS}}

macOSlogo.png

This article applies to macOS only.

See also: Multiplatform Programming Guide

MorphOS

{{Platform only|MorphOS}}

MorphOS-butterfly.png

This article applies to MorphOS only.

See also: Multiplatform Programming Guide

Qt Qt Qt widgetset

{{Platform only|Qt|Qt|Qt widgetset}}

Qt logo 2013.svg

This article applies to Qt widgetset only.

See also: Multiplatform Programming Guide

Ubuntu

{{Platform only|Ubuntu}}

Logo-ubuntu cof-orange-hex.svg

This article applies to Ubuntu only.

See also: Multiplatform Programming Guide

Windows

{{Platform only|Windows}}

Windows logo - 2012.svg

This article applies to Windows only.

See also: Multiplatform Programming Guide

WindowsXP Windows Windows XP

{{Platform only|WindowsXP|Windows|Windows XP}}

Microsoft Windows 7 logo.png

This article applies to Windows XP only.

See also: Multiplatform Programming Guide

Raspberry Pi

{{Platform only|Raspberry Pi}}

Raspberry Pi Logo.png

This article applies to Raspberry Pi only.

See also: Multiplatform Programming Guide