Jump to content

Elite Dangerous Wiki:Template index/Format: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
m Fixed tracked syntax errors (stripped tags).
 
m Protected "Elite Dangerous Wiki:Template index/Format": Pre-registration protection review: Public template catalogue ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="hatnote">This index documents local templates. Follow this wiki's local policies and guidance when using the examples.</div>
{{shortcut|WP:TM/FORMAT|WP:TM/F}}
{{Shortcut|Project:TI/F}}
'''Note: This page contains details of templates relating to formatting.'''
'''Note: This page contains details of templates relating to formatting.'''


Templates related to ''descriptions'' (such as disambiguation, spoiler, wikicode) are listed under [[Wikipedia:Template messages/General|Template messages/General]].
Templates related to ''descriptions'' (such as disambiguation, spoiler, wikicode) are listed under [[Project:Template index/General|Template messages/General]].


Templates related to '''issues and disputes with articles''', including NPOV, are listed under [[Wikipedia:Template messages/Disputes|Disputes templates]].
Templates related to '''issues and disputes with articles''', including NPOV, are listed under [[Project:Template index/Disputes|Disputes templates]].


{| border="1" cellspacing="0" cellpadding="3"
{| border="1" cellspacing="0" cellpadding="3"
Line 21: Line 22:
<code><nowiki>{{divbox|box color|title|content}}</nowiki></code>
<code><nowiki>{{divbox|box color|title|content}}</nowiki></code>


*''box color'': see [http://en.wikipedia.org/wiki/Special:Prefixindex/Template:divstyle list]
*''box color'': see [https://elite.mistflux.co.uk/wiki/Special:PrefixIndex/Template:divstyle list]
*''title'': appears '''strong''' and centered at top
*''title'': appears '''strong''' and centered at top
*''content'': any text, including markup, for which the [[m:Help:Template#Restrictions_on_parameter_values|restrictions on parameter values]] are satisfied
*''content'': any text, including markup, for which the [[m:Help:Template#Restrictions_on_parameter_values|restrictions on parameter values]] are satisfied
Line 33: Line 34:
|{{divbox|none||<code>none</code>}}
|{{divbox|none||<code>none</code>}}
|}
|}
| Anywhere;<br> '''''but''''' be aware that [[WP:UNBOX|excessive boxes may offend some users]]. Available in a range of styles; see Talk.
| Anywhere;<br> '''''but''''' be aware that [[Project:Manual of Style|excessive boxes may offend some users]]. Available in a range of styles; see Talk.
|-
|-
<!-- End DIVBOX -->
<!-- End DIVBOX -->
Line 54: Line 55:
<!-- All of the parameters are optional. -->
<!-- All of the parameters are optional. -->
}}
}}
([[Wikipedia:Userboxes|Userboxes]] inserted here)
([[Project:Template index/User namespace|Userboxes]] inserted here)
{{userboxbottom}}
{{userboxbottom}}


Line 100: Line 101:
[[Template talk:Imageframe|Talk]]<br>
[[Template talk:Imageframe|Talk]]<br>
[[Special:Whatlinkshere/Template:Imageframe|Links]]
[[Special:Whatlinkshere/Template:Imageframe|Links]]
| {{imageframe | width=175 | content= [[Image:Wiki.png|80px]] [[Image:Wiki.png|80px]] | caption=Wikipedia logos }}
| {{imageframe | width=175 | content= [[Image:Wiki.png|80px]] [[Image:Wiki.png|80px]] | caption=this wiki logos }}
| For wrapping more than one image in a single image-and-caption box
| For wrapping more than one image in a single image-and-caption box
|-
|-
Line 112: Line 113:
| {{tlx|key press|Ctrl|F5}}
| {{tlx|key press|Ctrl|F5}}
| {{key press|Ctrl|F5}}
| {{key press|Ctrl|F5}}
| To illustrate keystrokes, both in articles and Wikipedia help pages.
| To illustrate keystrokes, both in articles and Elite Dangerous Wiki help pages.
|-
|-
|
|
Line 135: Line 136:




{{Wikipedia template messages}}
{{Elite template index}}

[[Category:Wikipedia template administration]]
[[Category:Wikipedia text help]]

Latest revision as of 21:42, 31 October 2026

This index documents local templates. Follow this wiki's local policies and guidance when using the examples.

Note: This page contains details of templates relating to formatting.

Templates related to descriptions (such as disambiguation, spoiler, wikicode) are listed under Template messages/General.

Templates related to issues and disputes with articles, including NPOV, are listed under Disputes templates.

What to type What it makes Where it goes
{{divbox}}

edit
Talk
Links

Example of box, usage instructions

{{divbox|box color|title|content}}

The box has the full available width. In this example the width is reduced by the fact that the box is placed in a table.

gray
forest
red
none
Anywhere;
but be aware that excessive boxes may offend some users. Available in a range of styles; see Talk.
{{userboxtop}}

(edit Talk Links)
& {{userboxbottom}} edit Talk Links)

Collects userboxes into a single column grouping easily.

{{Col-begin}}
{{Col-break}}
This is column 1. Text is wrapped appropriately.
{{Col-break|gap=1em}}
This is column 2. Text is wrapped appropriately.
{{Col-break|gap=1em}}
This is column 3. Text is wrapped appropriately.
{{col-end}}

This is column 1. Text is wrapped appropriately.

This is column 2. Text is wrapped appropriately.

This is column 3. Text is wrapped appropriately.

This can be used anywhere. Creates multiple columns in a single row. You can have as many columns as you want. Text is wrapped appropriately, and a margin prevents text in one column from touching text in another column. You can use any Wiki markup within the columns created by these templates.

{{col-begin}}
{{col-3}}
Column 1 here
{{col-3}}
Column 2 here
{{col-3}}
Column 3 here
{{col-end}}

Column 1 here

Column 2 here

Column 3 here

{{image frame|width=175|content= [[File:Wiki.png|80px]] [[File:Wiki.png|80px]]|caption=Wiki logos}}

edit
Talk
Links

this wiki logos
For wrapping more than one image in a single image-and-caption box
{{hidden|header=TITLE|content=Body text}}

edit
Talk
Links

TITLE
Body text
Hide / show boxes
{{key press|Ctrl|F5}} Ctrl+F5 To illustrate keystrokes, both in articles and Elite Dangerous Wiki help pages.
 {{flatlist|
 * All's well that ends well 
 * Do unto others as you would have them do unto you 
 * All the world's a stage 
 * No pain, no gain 
 * Six to one, half dozen the other 
 * A stitch in time saves nine 
 * One fish, two fish, red fish, blue fish }}
  • All's well that ends well
  • Do unto others as you would have them do unto you
  • All the world's a stage
  • No pain, no gain
  • Six to one, half dozen the other
  • A stitch in time saves nine
  • One fish, two fish, red fish, blue fish
Can be used anywhere. Creates an inline list that wraps correctly (i.e., only after the delimiter)