Elite Dangerous Wiki:Template index/Format: Difference between revisions
Content deleted Content added
Localise template catalogue and editorial guidance for the independent wiki |
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)) |
||
| (2 intermediate revisions by one other user not shown) | |||
Line 1:
<div class="hatnote">This index documents local templates. Follow this wiki's local policies and guidance when using the examples.</div>
{{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]].
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"
|-
! width="15%" | What to type !! width="50%" | What it makes !! Where it goes
|- <!-- Begin DIVBOX (long) -->
| {{tl|divbox}}<br>
[{{SERVER}}{{localurl:Template:divbox|action=edit}} edit]<br>
[[Template talk:divbox|Talk]]<br>
[[Special:Whatlinkshere/Template:divbox|Links]]
|
{|
|-
|colspan="4"|{{divbox|gray|Example of box, usage instructions|
<code><nowiki>{{divbox|box color|title|content}}</nowiki></code>
*''box color'': see [https://elite.mistflux.co.uk/wiki/Special:PrefixIndex/Template:divstyle list]
*''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
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.
}}
|-
|{{divbox|gray||<code>gray</code>}}
|{{divbox|forest||<code>forest</code>}}
|{{divbox|red||<code>red</code>}}
|{{divbox|none||<code>none</code>}}
|}
| 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 -->
| {{tl|userboxtop}}
<small>([{{SERVER}}{{localurl:Template:Userboxtop|action=edit}} edit]
[[Template talk:Userboxtop|Talk]]
[[Special:Whatlinkshere/Template:userboxtop|Links]])</small> <br>
& {{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. -->
}}
([[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> }}
|{{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)
|}
{{Elite template index}}
| |||