Category:Templates: Difference between revisions

From Xen
Jump to navigationJump to search
(Added some common lang attributes)
 
(23 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 26: Line 20:
* {{Demo|Tick}}
* {{Demo|Tick}}
* {{Demo|Warn}}
* {{Demo|Warn}}
* {{Demo|Sortable}}
}}|{{Trail|Words|
}}|{{Trail|Words|
* {{tlb|Cl|arg}} displays {{Cl|arg}}
* {{tlb|Cl|arg}} displays {{Cl|arg}}
Line 31: 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|Buttons|
}}|{{Trail|Other Formatting|
* {{tlb|Button|url|name|styles}}
* {{tlb|Button|url|styles}}
* {{tlb|ButtonExt|exturl|name|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|
* {{tlb|Anchor}}
* {{tlb|Anchor}}
* {{tlb|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}}
* {{tlb|Morebar}}
* {{tlb|-}}
* {{tlb|-}}
* {{tlb|Clear}}
* {{tlb|Clear}}
Line 55: Line 56:
* {{tlb|Bottom}}
* {{tlb|Bottom}}
}}|{{Trail|Annotations|
}}|{{Trail|Annotations|
* {{tlb|Comment}}
* {{tlb|Action}}
* {{tlb|Action}}
* {{tlb|Foot|arg}} displays {{Foot|arg}}
* {{tlb|Footnote|arg}} displays {{Footnote|arg}}
* {{tlb|Comment}}
* {{tlb|Vote}}
* {{tlb|Vote}}
* {{tlb|VoteNo}}
* {{tlb|VoteNo}}
* {{tlb|Motion}}
* {{tlb|Resolution}}
}}}}
}}}}


== Boxes ==
{{Trailbox|Boxes|
{{Trailbox|Boxes|
|{{Trail|Special Purpose & Simple|
|{{Trail|Special Purpose & Simple|
Line 97: Line 99:
* {{tlb|Project}}
* {{tlb|Project}}
* {{tlb|GSoC 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)