Difference between revisions of "Template:Android"

m
m
 

1 Usage[edit]

The Android template is used to store, in a page, information that is related to the Android™ distribution.

It puts a message box with a "green Android" icon in the page, adds this page to the Android category.

Usage:  {{Android | <message>}}

Where <message> is the optional information related to the Android™ distribution. If this parameter is not set, the default message is "Below information is related to the Android™ distribution".

2 Basic examples[edit]

You type You get
Android without specific message
{{Android}}
Android logo.png Below information is related to the Android™ distribution
Android with specific message
{{Android | Note that the following packages are required to build an environment for Android™}}
Android logo.png Below information is related to the Android™ distribution
Note that the following packages are required to build an environment for Android™

3 More examples[edit]

You type You get
Android with a long message
{{Android | The message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
Android logo.png Below information is related to the Android™ distribution
The message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.
Check that the spaces before and after the Android message
BEFORE{{Android | Check spaces}}AFTER<br>
BEFORE
{{Android | Check spaces}}
AFTER

BEFORE

Android logo.png Below information is related to the Android™ distribution
Check spaces
AFTER

BEFORE

Android logo.png Below information is related to the Android™ distribution
Check spaces

AFTER

4 Code[edit]

Android logo.png Below information is related to the Android™ distribution
<noinclude>

==Usage==
The [[Template:Android|Android]] template is used '''to store, in a page, information that is related to the Android&trade; distribution'''.

It puts a message box with a "green Android" icon in the page, adds this page to the [[:Category:Android|Android]] category.

 Usage:  <nowiki>{{</nowiki>Android | {{HighlightParam|<message>}}}}
Where {{HighlightParam|<message>}} is the '''optional''' information related to the Android&trade; distribution. If this parameter is not set, the default message is "Below information is related to the Android&trade; distribution".

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| Android without specific message<pre style="white-space: pre-wrap;">

{{Android}}</pre>

|
{{Android}}
|-
| Android with specific message<pre style="white-space: pre-wrap;">

{{Android | Note that the following packages are required to build an environment for Android&trade;}}</pre>

|
{{Android | Note that the following packages are required to build an environment for Android&trade;}}
|}

==More examples==
{| class="st-table"
! You type !! You get
|-
| Android with a long message<pre style="white-space: pre-wrap;">

{{Android | The message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}</pre>

|
{{Android | The message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
|-
| Check that the spaces before and after the Android message<pre style="white-space: pre-wrap;">

BEFORE{{Android | Check spaces}}AFTER<br>

BEFORE
{{Android | Check spaces}}
AFTER</pre>

|
BEFORE{{Android | Check spaces}}AFTER<br>

BEFORE
{{Android | Check spaces}}
AFTER
|}

==Code==</noinclude>{| class="st-table" style="border-color: {{STLightGreen}};"
| style="border-right-width: 1px 0px 1px 1px;" | [[File:Android logo.png|40px|link=]]
| style="border-left-width: 1px 1px 1px 0px;" |  '''Below information is related to the Android&trade; distribution'''<br />{{{1|}}}
|}{{#set:Has Android messages=true}}<includeonly>[[Category:Android]]</includeonly>
Line 54: Line 54:
 
==Code==
 
==Code==
 
</noinclude>{| class="st-table" style="border-color: {{STLightGreen}};"
 
</noinclude>{| class="st-table" style="border-color: {{STLightGreen}};"
| style="border-width: 1px 0px 1px 1px;" | [[File:Android logo.png|40px|link=]]
+
| style="border-right-width: 0px;" | [[File:Android logo.png|40px|link=]]
| style="border-width: 1px 1px 1px 0px;" |  '''Below information is related to the Android&trade; distribution'''<br />{{{1|}}}
+
| style="border-left-width: 0px;" |  '''Below information is related to the Android&trade; distribution'''<br />{{{1|}}}
 
|}{{#set:Has Android messages=true}}<includeonly>[[Category:Android]]</includeonly>
 
|}{{#set:Has Android messages=true}}<includeonly>[[Category:Android]]</includeonly>

Attachments

Discussions