Difference between revisions of "Template:Distro Resources/Line/doc"

From Xen
(Created page with "== Usage == This macro is intended to make the table in Template:Distro Resource more easily manageable. Use for a line in: <pre> {|class="wikitable" |style="text-align: left…")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Usage ==
 
== Usage ==
This macro is intended to make the table in [[Template:Distro Resource]] more easily manageable. Use for a line in:
+
This macro is intended to make the table in [[Template:Distro_Resources]] more easily manageable. Use, <em>class prettytable</em>, if possible. Use for a line in:
 
<pre>
 
<pre>
{|class="wikitable" |style="text-align: left; vertical-align: top;"
+
{|class="prettytable" |style="text-align: left; vertical-align: top;"
 
!style="width: 15%;"|Distro
 
!style="width: 15%;"|Distro
 
!style="width: 11%;"|Main website
 
!style="width: 11%;"|Main website
Line 14: Line 14:
 
Each line will look like:
 
Each line will look like:
 
<pre>
 
<pre>
{{Distro Resource/Line
+
{{Distro Resources/Line
 
|Arch Linux|[http://www.archlinux.org http://www.archlinux.org]
 
|Arch Linux|[http://www.archlinux.org http://www.archlinux.org]
 
|Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.|
 
|Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.|
Line 26: Line 26:
 
Which renders to
 
Which renders to
   
{|class="wikitable" |style="text-align: left; vertical-align: top;"
+
{|class="prettytable" |style="text-align: left; vertical-align: top;"
 
!style="width: 15%;"|Distro
 
!style="width: 15%;"|Distro
 
!style="width: 11%;"|Main website
 
!style="width: 11%;"|Main website
Line 32: Line 32:
 
!style="width: 40%;"|Resources
 
!style="width: 40%;"|Resources
   
{{Distro Resource/Line
+
{{Distro Resources/Line
 
|Arch Linux|[http://www.archlinux.org http://www.archlinux.org]
 
|Arch Linux|[http://www.archlinux.org http://www.archlinux.org]
 
|Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.|
 
|Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.|

Latest revision as of 22:22, 24 June 2013

Usage

This macro is intended to make the table in Template:Distro_Resources more easily manageable. Use, class prettytable, if possible. Use for a line in:

{|class="prettytable" |style="text-align: left; vertical-align: top;" 
!style="width: 15%;"|Distro
!style="width: 11%;"|Main website
!style="width: 36%;"|Description
!style="width: 40%;"|Resources

<!-- USE TEMPLATE HERE -->

|}

Each line will look like:

{{Distro Resources/Line
|Arch Linux|[http://www.archlinux.org http://www.archlinux.org]
|Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.|
* [[Arch Linux as Xen Host]]
* [[Arch Linux as Xen Guest (PV)]]
* [[Arch Linux as Xen Guest (PVHVM)]]
* [[:Category:Arch_Linux|All Arch_Linux pages]]
}}

Which renders to

Distro Main website Description Resources
Arch Linux http://www.archlinux.org Arch Linux is a lightweight and flexible Linux® distribution that tries to “keep it simple”.