Difference between revisions of "User:Squizie3/sandbox/article"

From OpenGeofiction Encyclopedia
Jump to: navigation, search
(Collapsible maps)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Draft=
+
<includeonly><div style="width:max-content;position:relative;overflow:hidden;border:1px solid #a2a9b1"><div class="mw-collapsible" id="mw-customcollapsible-{{{id|100}}}"><div style="display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id|100}}}" style="line-height:0">[[File:{{{file}}}{{#if:{{{width|}}}|{{!}}{{{width}}}px|}}]]</div>
 +
<div style="z-index:1;position:absolute;top:0;left:0">[[File:{{{file}}}]]</div>
 +
<div class="mw-customtoggle-{{{id|100}}}" style="z-index:2;position:absolute;top:0;left:0;display:inline-flex;align-items:center;padding-left:7px;padding-right:7px;padding-top:2px;padding-bottom:2px">'''{{{caption|Expand}}}'''<span style="padding:3px"></span>[[File:Font Awesome 5 solid chevron-corner.svg|12px]]</div></div></includeonly><noinclude>
 +
<div style="padding:5px; background:#ECFCF4; border:1px solid #AAA;" class="plainlinks"><h1 style="margin-top:0"><span class="mw-headline" id="Template_documentation">Template documentation</span></h1>
 +
This template makes it possible to insert a collapsible image on a wiki page. This might be helpful for displaying large detailed maps without taking up too much space or having to crop the image to unreadable sizes.
 +
==Usage==
 +
Use the template as follows:
 +
<pre>
 +
{{Collapse image|file=Vinnmark map.png|width=800|caption=Map of Vinnmark|id=1}}
 +
</pre>
 +
* The <code>file</code> parameter is mandatory.
 +
* The <code>width</code> parameter specifies the expanded image's width in pixels. This parameter is optional, without it will default to the image's native size.
 +
* The <code>caption</code> parameter is also optional, without it will default to "Expand".
 +
* The <code>id</code> parameter needs to be set to a unique value for every time this template is used on the same page. All templates with the same id would otherwise collapse together when one of them is clicked. If this template only occurs once on a page, it can be omitted.
 +
==Examples==
 +
The above example would give the following result:
 +
{{User:Squizie3/sandbox/article|file=Vinnmark map.png|width=800|caption=Map of Vinnmark|id=1}}
 +
This second example <code><nowiki>{{Collapse image|file=Lentia draft.png|id=2}}</nowiki></code> would result into this:
 +
{{User:Squizie3/sandbox/article|file=Lentia draft.png|id=2}}
 +
</div>
 +
 
 +
 
 +
 
 +
{{User:Squizie3/sandbox/article|caption=Map of Vinnmark|file=Vinnmark map.png|id=}}
 +
 
 +
 
 +
{{User:Squizie3/sandbox/article|caption=Draft map of Lentia|width=100|file=Lentia draft.png|id=4}}
 +
 
 +
 
 +
{{User:Squizie3/sandbox/article|file=Lentia draft.png|width=1432|id=7}}
 +
 
 +
 
 +
{{User:Squizie3/sandbox/article|caption=Draft map of Lentia|file=Lentia draft.png|width=1432|id=8}}
 +
 
 +
 
 +
Oh la
 +
<div style="z-index: 2; position: absolute; top: 0.2em; left: 0.4em;">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</div></div>
 +
<div class="mw-customtoggle-{{{number|1}}}" style="z-index: 2; position: absolute; top: 0.2em; left: 0.4em;">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</div>
 +
 
 +
Test
 +
<div class="mw-customtoggle-6" style="background:yellow;height:20px;overflow:hidden"><div style="overflow:hidden">[[File:Lentia draft.png|200px]]</div><div class="mw-collapsible" id="mw-customcollapsible-6">d</div></div>
 +
Test
 +
 
 +
Werkt:
 +
<table cellspacing=0 cellpadding=0 style="border:1px solid #a2a9b1"><tr style="height:100%"><td style="height:100%">
 +
<div style="width: {{{width}}}px; height: 100%; position: relative;overflow: hidden"><span style="display:inline-block;padding-top:0.2em;padding-bottom:0.2em;padding-left:0.4em;padding-right:0.5em">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</span>
 +
<div style="z-index: 1; position: absolute; top: 0px; left: 0px">[[File:{{{file}}}|{{{width}}}]]</div>
 +
<div class="mw-customtoggle-{{{number|1}}}" style="z-index: 2; position: absolute; top: 0.2em; left: 0.4em;">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</div></div>
 +
</td><td style="line-height:0"><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{number|1}}}" style="height:{{{height}}}px"></span></td></tr></table>
 +
 
 +
 
 +
Werkt ook:
 +
<table cellspacing=0 cellpadding=0 style="border:1px solid #a2a9b1"><tr style="height:100%"><td style="height:100%">
 +
<div style="width: {{{width}}}px; height: 100%; position: relative;overflow: hidden"><div class="mw-collapsible" id="mw-customcollapsible-{{{number|1}}}" style="display:inline-block;padding-top:0.2em;padding-bottom:0.2em;padding-left:0.4em;padding-right:0.5em">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</div><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{number|1}}}" style="line-height:0">[[File:{{{file}}}|{{{width}}}]]</div>
 +
<div style="z-index: 1; position: absolute; top: 0px; left: 0px">[[File:{{{file}}}|{{{width}}}]]</div>
 +
<div class="mw-customtoggle-{{{number|1}}}" style="z-index: 2; position: absolute; top: 0.2em; left: 0.4em;">'''{{{caption|Expand}}}''' [[File:Font Awesome 5 solid chevron-down.svg|18px]]</div></div>
 +
</td></tr></table>
 +
 
 +
 
 +
<span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{number|1}}}" style="height:{{{height}}}px"></span>
 +
 
 +
1432x1312
 +
 
  
<div class="mw-customtoggle-2">
+
<table class="mw-customtoggle-2" cellspacing=0 cellpadding=0 style="border:1px solid #a2a9b1"><tr style="height:100%"><td style="height:100%">
<table cellspacing=0 style="background-color:lightgray><tr style="height:100%"><td style="height:100%"><div style="width: 1432px; height: 100%; position: relative; overflow: hidden;">OK
+
<div style="width: 1432px; height: 100%; position: relative; overflow: hidden;">'''Draft map of Lentia'''
 
<div style="z-index: 1; position: absolute; top: 0px; left: 0px;">[[File:Lentia draft.png]]</div>
 
<div style="z-index: 1; position: absolute; top: 0px; left: 0px;">[[File:Lentia draft.png]]</div>
<div style="z-index: 2; position: absolute; top: 0px; left: 3px;">'''Draft map of Lentia''' [[File:Font Awesome 5 solid chevron-down.svg|20px]]</div></div></td><td style="padding:0px"><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-2" style="height:1308px"></span></td></tr></table>
+
<div style="z-index: 2; position: absolute; top: 0.2em; left: 0.4em;">'''Draft map of Lentia''' [[File:Font Awesome 5 solid chevron-down.svg|20px]]</div></div>
 +
</td><td style="line-height:0"><span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-2" style="height:1312px"></span></td></tr></table>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<div style="height:30px;padding:0px;position:relative"><span style="overflow:hidden;display:inline-block;height:100%">[[File:Lentia draft.png]]</span><span style="position:absolute;left:8px;top:5px">'''Draft map of Lentia''' [[File:Font Awesome 5 solid chevron-down.svg|20px]]</span></div>
 +
 
  
 +
{| class = "wikitable"
 +
|-
 +
| '''Draft map of Lentia'''
 +
|-
 +
|
 +
|}
  
  
Line 27: Line 103:
  
 
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-B">AHA</div>
 
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-B">AHA</div>
 +
 +
 +
<span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-B">AHA</span>
  
 
{| class = "wikitable" width = "1432px"
 
{| class = "wikitable" width = "1432px"
Line 80: Line 159:
  
 
<div style="width: 1432px; height: auto; position: relative; overflow: hidden;"><div style="z-index: 1; position: absolute; top: 0px; left: 0px;">[[File:Lentia draft.png]]</div><div style="z-index: 2; position: absolute; top: 0px; left: 0px;">{{{ahahahaha}}}</div></div>
 
<div style="width: 1432px; height: auto; position: relative; overflow: hidden;"><div style="z-index: 1; position: absolute; top: 0px; left: 0px;">[[File:Lentia draft.png]]</div><div style="z-index: 2; position: absolute; top: 0px; left: 0px;">{{{ahahahaha}}}</div></div>
 +
 +
</noinclude>

Latest revision as of 05:13, 19 August 2020


Map of VinnmarkFont Awesome 5 solid chevron-corner.svg
Vinnmark map.png
Vinnmark map.png
Map of VinnmarkFont Awesome 5 solid chevron-corner.svg


Draft map of LentiaFont Awesome 5 solid chevron-corner.svg
Lentia draft.png
Lentia draft.png
Draft map of LentiaFont Awesome 5 solid chevron-corner.svg


ExpandFont Awesome 5 solid chevron-corner.svg
Lentia draft.png
Lentia draft.png
ExpandFont Awesome 5 solid chevron-corner.svg


Draft map of LentiaFont Awesome 5 solid chevron-corner.svg
Lentia draft.png
Lentia draft.png
Draft map of LentiaFont Awesome 5 solid chevron-corner.svg


Oh la

Expand Font Awesome 5 solid chevron-down.svg
</div>
Expand Font Awesome 5 solid chevron-down.svg

Test

Lentia draft.png
d

Test

Werkt:

Expand Font Awesome 5 solid chevron-down.svg
[[File:{{{file}}}|{{{width}}}]]
Expand Font Awesome 5 solid chevron-down.svg


Werkt ook:

Expand Font Awesome 5 solid chevron-down.svg
[[File:{{{file}}}|{{{width}}}]]
[[File:{{{file}}}|{{{width}}}]]
Expand Font Awesome 5 solid chevron-down.svg


1432x1312


Draft map of Lentia
Lentia draft.png
Draft map of Lentia Font Awesome 5 solid chevron-down.svg



Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-down.svg


Draft map of Lentia


AHA
OK
Lentia draft.png
Draft map of Lentia Font Awesome 5 solid chevron-down.svg
OK
Lentia draft.png
Draft map of Lentia Font Awesome 5 solid chevron-down.svg
d

Draft map of Lentia Font Awesome 5 solid chevron-down.svg

AHA


AHA

Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-down.svg
a



a
Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-down.svg
Draft map of Lentia Font Awesome 5 solid chevron-down.svgFont Awesome 5 solid chevron-up.svg
Draft map of Lentia F
<span
style="display:none"
>Font Awesome 5 solid chevron-down.svg</span>Font Awesome 5 solid chevron-up.svg
Draft map of Lentia Font Awesome 5 solid chevron-down.svgDraft map of Lentia Font Awesome 5 solid chevron-up.svg
Draft map of Lentia Font Awesome 5 solid chevron-down.svg
Draft map of Lentia Font Awesome 5 solid chevron-up.svg
wat
  1. collapse-pre-one .mw-collapsible-toggle .up,
  2. collapse-pre-one.mw-collapsed .mw-collapsible-toggle .down {
display: none;

}

  1. collapse-pre-one .mw-collapsible-toggle .down,
  2. collapse-pre-one.mw-collapsed .mw-collapsible-toggle .up {
display: block;

}

class="mw-collapsible" data-expandtext="nee" data-collapsetext="hide"

Arrow-down-dash-2.0.svg
Arrow-up-dash-2.0.svg

YESSS


Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-down.svg
Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-up.svg

Lentia draft.png Draft map of Lentia Font Awesome 5 solid chevron-down.svg

1
|style="text-align:center;color:white;padding:0px;height:100%" rowspan=3|
1
<div class="mw-collapsible" id="mw-customcollapsible-H" style="
Lentia draft.pngDraft map of Lentia Font Awesome 5 solid chevron-up.svg
Lentia draft.png
{{{ahahahaha}}}