Category:Templates: Difference between revisions

From Xen
Jump to navigationJump to search
(Added some common lang attributes)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Trailbox|Templates|Templates
{{sidebar
|{{Trail|The Basics|
| name = Template
* [http://www.mediawiki.org/wiki/Help:Templates Help on Templates]

}}
| outertitlestyle = text-align: left;
| headingstyle = text-align: left;
| contentstyle = text-align: left;

| heading1 = Help
| content1 = [http://www.mediawiki.org/wiki/Help:Templates On Templates]
}}
}}


== Formatting Text ==
{{Trailbox|Formatting Text|Template_Formatting_1
{{Trailbox||Template_Formatting_1
|{{Trail|Literals & Symbols|
|{{Trail|Literals & Symbols|
* {{Demo|!(}}
* {{Demo|!(}}
Line 25: Line 19:
* {{Demo|NotDone}}
* {{Demo|NotDone}}
* {{Demo|Tick}}
* {{Demo|Tick}}
* {{Demo|Warn}}
* {{Demo|Sortable}}
}}|{{Trail|Words|
}}|{{Trail|Words|
* {{tlb|Cl|arg}} displays {{Cl|arg}}
* {{tlb|Cl|arg}} displays {{Cl|arg}}
Line 30: Line 26:
* {{tlb|Tlb|templ|arg1}} displays {{Tlb|templ|arg1}}
* {{tlb|Tlb|templ|arg1}} displays {{Tlb|templ|arg1}}
* Other <b>tl*</b> templates: {{tlb|Tl2}}, {{tlb|Tla}}, {{tlb|Tlc}}, {{tlb|Tld}}, {{tlb|Tlf}}, {{tlb|Tlg}}, {{tlb|Tlp}}, {{tlb|Tls}}, {{tlb|Tlsp}}, {{tlb|Tlsu}}, {{tlb|Tlsx}}, {{tlb|Tlu}}, {{tlb|Tlx}}, {{tlb|Tlxb}}, {{tlb|Tlxi}} and {{tlb|Tlxs}}
* Other <b>tl*</b> templates: {{tlb|Tl2}}, {{tlb|Tla}}, {{tlb|Tlc}}, {{tlb|Tld}}, {{tlb|Tlf}}, {{tlb|Tlg}}, {{tlb|Tlp}}, {{tlb|Tls}}, {{tlb|Tlsp}}, {{tlb|Tlsu}}, {{tlb|Tlsx}}, {{tlb|Tlu}}, {{tlb|Tlx}}, {{tlb|Tlxb}}, {{tlb|Tlxi}} and {{tlb|Tlxs}}
'''Formatting'''<br>
* {{tlb|Colors}}
}}|{{Trail|Phrases|
}}|{{Trail|Phrases|
* {{tlb|Demo|arg}}
* {{tlb|Demo|arg}}
* {{tlb|Pad}}
* {{tlb|Pad}}
* {{tlb|Spaces}}
* {{tlb|Spaces}}
}}|{{Trail|Other Formatting|
* {{tlb|Button|url|styles}}
* {{tlb|Category|cat}} displays {{Category|cat}}
* {{tlb|Colors}}
* {{tlb|More|url}}
}}
}}
}}
}}


== Formatting Paragraphs ==
{{Trailbox|Formatting Paragraphs|Template_Formatting_2
{{Trailbox||Template_Formatting_1
|{{Trail|Paragraphs|
|{{Trail|Paragraphs|
* [[Template:Anchor]]
* {{tlb|Anchor}}
* [[Template:Indent]]
* {{tlb|Indent}}
}}<br>{{Trail|Code|
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight <syntaxhighlight>]
* [https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/blob/master/SyntaxHighlight_GeSHi.lexers.php <syntaxhighlight lang="...">]
''Common useful lang attributes for this wiki are <b>asm</b>, <b>sh</b>, <b>c</b>, <b>diff</b> and <b>kconfig</b>.''
}}|{{Trail|Divisions & Breaks|
}}|{{Trail|Divisions & Breaks|
* {{tlb|Niceline}}
* [[Template:-]]
* {{tlb|Morebar}}
* [[Template:Clear]]
* {{tlb|-}}
* {{tlb|Clear}}
}}|{{Trail|Tables|
}}|{{Trail|Tables|
* [[Template:Top]]
* {{tlb|Top}}
* [[Template:Mid]]
* {{tlb|Mid}}
* [[Template:Bottom]]
* {{tlb|Bottom}}
}}|{{Trail|Annotations|
}}
* {{tlb|Action}}
}}
* {{tlb|Foot|arg}} displays {{Foot|arg}}
* {{tlb|Footnote|arg}} displays {{Footnote|arg}}
* {{tlb|Comment}}
* {{tlb|Vote}}
* {{tlb|VoteNo}}
* {{tlb|Resolution}}
}}}}


== Boxes ==
{{Trailbox|Boxes|
{{Trailbox|Boxes|
|{{Trail|Special Purpose & Simple|
|{{Trail|Special Purpose & Simple|
* [[Template:Error]]
* {{tlb|Error}}
* [[Template:Info]]
* {{tlb|Info}}
* [[Template:InfoLeft]]
* {{tlb|InfoLeft}}
* [[Template:Quotation]]
* {{tlb|Quotation}}
* [[Template:Warning]]
* {{tlb|Warning}}
* {{tlb|WarningLeft}}
'''Languages''':
'''Languages''':
* [[Template:Langbox]]
* {{tlb|Langbox}}
* [[Template:Languages]]
* {{tlb|Languages}}
}}|{{Trail|General Purpose|
}}|{{Trail|General Purpose|
* [[Template:Ambox]]
* {{tlb|Ambox}}
* [[Template:Asbox]]
* {{tlb|Asbox}}
* [[Template:Cmbox]]
* {{tlb|Cmbox}}
* [[Template:Dmbox]]
* {{tlb|Dmbox}}
* [[Template:Fmbox]]
* {{tlb|Fmbox}}
* [[Template:Imbox]]
* {{tlb|Imbox}}
* [[Template:Ombox]]
* {{tlb|Ombox}}
* [[Template:Tmbox]]
* {{tlb|Tmbox}}
}}|{{Trail|Complex Boxes|
}}|{{Trail|Complex Boxes|
* [[Template:Documentation]]
* {{tlb|Documentation}}
* [[Template:Infobox]]
* {{tlb|Infobox}}
* [[Template:Infobox person]]
* {{tlb|Infobox person}}
* [[Template:Quote box]]
* {{tlb|Quote box}}
* [[Template:Navbar]]
* {{tlb|Navbar}}
* [[Template:Navbox]]
* {{tlb|Navbox}}
* [[Template:Side box]]
* {{tlb|Side box}}
* [[Template:Sidebar]]
* {{tlb|Sidebar}}
* [[Template:Trail]]
* {{tlb|Trail}}
* [[Template:Trailbox]]
* {{tlb|Trailbox}}
}}|{{Trail|Project Boxes|
* {{tlb|Project}}
* {{tlb|GSoC Project}}
}}<br>
{{Trail|Table Classes|
You can use these CSS classes in [http://www.mediawiki.org/wiki/Help:Tables#class.3D.22wikitable.22 mediawiawiki tables].
* class <em>prettytable</em>
* class <em>shadedtable</em>
* class <em>wikitable</em>
* class <em>zebra</em>
* [[Table Style Examples]]
Additional attributes
* class <em>sortable</em>
* class <em>fullwidth</em>
}}
}}
}}
}}

Latest revision as of 13:16, 10 August 2016

Templates
The Basics

Formatting Text
Literals & Symbols
  • {{!(}} displays [
  • {{!(}} displays [
  • {{((}} displays {{
  • {{))}} displays }}
  • {{;}} displays ;
  • {{=}} displays =
  • {{\}} displays  /
  • {{·}} displays  ·
  • {{N/a}} displays N/A
  • {{HalfDone}} displays
  • {{NotDone}} displays
  • {{Tick}} displays
  • {{Warn}} displays Icon Ambox.png
  • {{Sortable}} displays Sortable.gif
Words
Phrases
Other Formatting

Formatting Paragraphs
Paragraphs

Code

Common useful lang attributes for this wiki are asm, sh, c, diff and kconfig.

Divisions & Breaks
Tables
Annotations

Boxes
Special Purpose & Simple

Languages:

General Purpose
Complex Boxes
Project Boxes

Table Classes

You can use these CSS classes in mediawiawiki tables.

Additional attributes

  • class sortable
  • class fullwidth

Credits


Icon Info.png Please note that many of the templates are imported from MediWiki and Wikipedia under wikipedia:CC BY 3.0. Also note that not all dependent templates have been imported. In some cases template documentation is missing: in that case, check Wikipedia and you should find a good set of documents.


Subcategories

This category has the following 2 subcategories, out of 2 total.

Pages in category "Templates"

The following 200 pages are in this category, out of 231 total.

(previous page) (next page)
(previous page) (next page)