Jump to content

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

From Elite Dangerous Wiki
Content deleted Content added
Localise template catalogue and editorial guidance for the independent wiki
Restore original template index format; localise policy references without changing tables or examples
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>
[[Project:Template index|Template index]] / Format
{{Shortcut|Project:TI/F}}
'''Note: This page contains details of templates relating to formatting.'''


Templates related to ''descriptions'' (such as disambiguation, spoiler, wikicode) are listed under [[Project:Template index/General|Template messages/General]].
Layout helpers for columns, boxes and spacing.


Templates related to '''issues and disputes with articles''', including NPOV, are listed under [[Project:Template index/Disputes|Disputes templates]].
Choose a layout that remains readable on narrow screens. Preview nesting, table closure and text contrast before saving.


{| border="1" cellspacing="0" cellpadding="3"
== Local templates ==
|-
Open a template page for its parameters and examples. These links identify existing local templates; their inclusion does not certify every imported behaviour.
! width="15%" | What to type !! width="50%" | What it makes !! Where it goes


|- <!-- Begin DIVBOX (long) -->
* [[:Template:Divbox|Divbox]] - <code><nowiki>{{Divbox}}</nowiki></code>
| {{tl|divbox}}<br>
* [[:Template:Div col|Div col]] - <code><nowiki>{{Div col}}</nowiki></code>
[{{SERVER}}{{localurl:Template:divbox|action=edit}} edit]<br>
* [[:Template:Div col end|Div col end]] - <code><nowiki>{{Div col end}}</nowiki></code>
[[Template talk:divbox|Talk]]<br>
* [[:Template:Columns-list|Columns-list]] - <code><nowiki>{{Columns-list}}</nowiki></code>
[[Special:Whatlinkshere/Template:divbox|Links]]
* [[:Template:Clear|Clear]] - <code><nowiki>{{Clear}}</nowiki></code>
|
* [[:Template:Collapse top|Collapse top]] - <code><nowiki>{{Collapse top}}</nowiki></code>
{|
* [[:Template:Collapse bottom|Collapse bottom]] - <code><nowiki>{{Collapse bottom}}</nowiki></code>
|-
|colspan="4"|{{divbox|gray|Example of box, usage instructions|
<code><nowiki>{{divbox|box color|title|content}}</nowiki></code>


*''box color'': see [http://en.wikipedia.org/wiki/Special:Prefixindex/Template:divstyle list]
== Additional catalogue entries ==
*''title'': appears '''strong''' and centered at top
Additional local templates linked from this subject catalogue. Check their documentation and wording before use.
*''content'': any text, including markup, for which the [[m:Help:Template#Restrictions_on_parameter_values|restrictions on parameter values]] are satisfied


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.
* [[:Template:Col-3|col-3]]
}}
* [[:Template:Col-begin|Col-begin]]
|-
* [[:Template:Col-begin|col-begin]]
|{{divbox|gray||<code>gray</code>}}
* [[:Template:Col-break|Col-break]]
|{{divbox|forest||<code>forest</code>}}
* [[:Template:Col-end|col-end]]
|{{divbox|red||<code>red</code>}}
* [[:Template:Flatlist|flatlist]]
|{{divbox|none||<code>none</code>}}
* [[:Template:Key press|key press]]
|}
* [[:Template:Userboxbottom|userboxbottom]]
| Anywhere;<br> '''''but''''' be aware that [[Project:Manual of Style|excessive boxes may offend some users]]. Available in a range of styles; see Talk.
* [[:Template:Userboxtop|userboxtop]]
|-
<!-- End DIVBOX -->


| {{tl|userboxtop}}
== Before saving ==
<small>([{{SERVER}}{{localurl:Template:Userboxtop|action=edit}} edit]
* Preview the result and check any required parameters.
[[Template talk:Userboxtop|Talk]]
* Use local page titles and links.
[[Special:Whatlinkshere/Template:userboxtop|Links]])</small> <br>
* Explain a maintenance notice on the relevant talk page when needed.
& {{tl|userboxbottom}}
* Do not copy example text that asserts a process or permission that does not exist here.
<small>[{{SERVER}}{{localurl:Template:userboxbottom|action=edit}} edit]
[[Template talk:Userboxbottom|Talk]]
[[Special:Whatlinkshere/Template:userboxbottom|Links]])</small>
| {{userboxtop
| align = right
| backgroundcolor = lightyellow
| bordercolor = black
| extra-css =
| textcolor =
| toptext = A place for userboxes.
<!-- All of the parameters are optional. -->
}}
([[Project:Template index/User namespace|Userboxes]] inserted here)
{{userboxbottom}}


| Collects userboxes into a single column grouping easily.
|-
| style="font-family: monospace, monospace; font-size:small" |
{{tlx|Col-begin}}<br>{{tlx|Col-break}}<br>
This is column 1. Text is wrapped appropriately.<br>
{{tlx|Col-break|gap{{=}}1em}}<br>
This is column 2. Text is wrapped appropriately.<br>
{{tlx|Col-break|gap{{=}}1em}}<br>
This is column 3. Text is wrapped appropriately.<br>
{{tlx|col-end}}
|{{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 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.
|-
| style="font-family: monospace, monospace; font-size:small" |
{{tl|col-begin}}<br>
{{tl|col-3}}<br>
Column 1 here<br>
{{tl|col-3}}<br>
Column 2 here<br>
{{tl|col-3}}<br>
Column 3 here<br>
{{tl|col-end}}
|{{col-begin}}
{{col-3}}
Column 1 here
{{col-3}}
Column 2 here
{{col-3}}
Column 3 here
{{col-end}}
|
|-
| {{tlx | 1=image frame | 2=width=175 | 3=<nowiki>content= [[File:Wiki.png|80px]] [[File:Wiki.png|80px]]</nowiki> | 4=caption=Wiki logos}} <br>
[{{SERVER}}{{localurl:Template:Imageframe|action=edit}} edit]<br>
[[Template talk:Imageframe|Talk]]<br>
[[Special:Whatlinkshere/Template:Imageframe|Links]]
| {{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
|-
| {{tlx | 1=hidden | 2=header=TITLE | 3=content=Body text}}<br>
[{{SERVER}}{{localurl:Template:Hidden|action=edit}} edit]<br>
[[Template talk:Hidden|Talk]]<br>
[[Special:Whatlinkshere/Template:Hidden|Links]]
| {{hidden |header=TITLE |content=Body text }}
| Hide / show boxes
|-
| {{tlx|key press|Ctrl|F5}}
| {{key press|Ctrl|F5}}
| To illustrate keystrokes, both in articles and Elite Dangerous Wiki help pages.
|-
|
{{tlx|flatlist|<nowiki>
* 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</nowiki>&nbsp;}}
|{{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 }}
|Can be used anywhere. Creates an inline list that wraps correctly (i.e., only after the delimiter)
|}


== Local policies and guidance ==
* [[Project:Manual of Style|Manual of Style]]


{{Elite template index}}
{{Elite template index}}

Revision as of 09:31, 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)