Jump to content

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

From Elite Dangerous Wiki
Content deleted Content added
Remove source-wiki categories from the local index
Localise template catalogue and editorial guidance for the independent wiki
Line 1: Line 1:
[[Project:Template index|Template index]] / Format
<div class="hatnote">This index is adapted from Wikipedia. Examples and linked guidance may describe its processes; check that each template and its instructions apply here before using it.</div>
{{Shortcut|Project:TI/F}}
'''Note: This page contains details of templates relating to formatting.'''


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


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


== Local templates ==
{| border="1" cellspacing="0" cellpadding="3"
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


* [[:Template:Divbox|Divbox]] - <code><nowiki>{{Divbox}}</nowiki></code>
|- <!-- Begin DIVBOX (long) -->
* [[:Template:Div col|Div col]] - <code><nowiki>{{Div col}}</nowiki></code>
| {{tl|divbox}}<br>
* [[:Template:Div col end|Div col end]] - <code><nowiki>{{Div col end}}</nowiki></code>
[{{SERVER}}{{localurl:Template:divbox|action=edit}} edit]<br>
* [[:Template:Columns-list|Columns-list]] - <code><nowiki>{{Columns-list}}</nowiki></code>
[[Template talk:divbox|Talk]]<br>
* [[:Template:Clear|Clear]] - <code><nowiki>{{Clear}}</nowiki></code>
[[Special:Whatlinkshere/Template:divbox|Links]]
* [[: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>


== Additional catalogue entries ==
*''box color'': see [http://en.wikipedia.org/wiki/Special:Prefixindex/Template:divstyle list]
Additional local templates linked from this subject catalogue. Check their documentation and wording before use.
*''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


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


== Before saving ==
| {{tl|userboxtop}}
* Preview the result and check any required parameters.
<small>([{{SERVER}}{{localurl:Template:Userboxtop|action=edit}} edit]
* Use local page titles and links.
[[Template talk:Userboxtop|Talk]]
* Explain a maintenance notice on the relevant talk page when needed.
[[Special:Whatlinkshere/Template:userboxtop|Links]])</small> <br>
* Do not copy example text that asserts a process or permission that does not exist here.
& {{tl|userboxbottom}}
<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. -->
}}
([[Wikipedia:Userboxes|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}}


<div class="plainlinks" style="font-size:85%; margin-top:1em;">Adapted from [https://en.wikipedia.org/wiki/Wikipedia:Template_index/Format Wikipedia]; see its [https://en.wikipedia.org/w/index.php?title=Wikipedia%3ATemplate+index%2FFormat&action=history revision history] for contributors. Content is available under the Creative Commons Attribution-ShareAlike licence.</div>

Revision as of 09:18, 31 October 2026

Template index / Format

Layout helpers for columns, boxes and spacing.

Choose a layout that remains readable on narrow screens. Preview nesting, table closure and text contrast before saving.

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.

Additional catalogue entries

Additional local templates linked from this subject catalogue. Check their documentation and wording before use.

Before saving

  • Preview the result and check any required parameters.
  • Use local page titles and links.
  • Explain a maintenance notice on the relevant talk page when needed.
  • Do not copy example text that asserts a process or permission that does not exist here.


Local policies and guidance