Difference between revisions of "User: Scafloc/sandbox"

From A Wiki of Ice and Fire
Jump to: navigation, search
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="toccolours mw-collapsible" style="width:400px">
+
==To do ==
This is text is collapsible. {{:Feature quote/1}}
+
*add links analyses of all episodes
 +
*again suggest spoiler prevention (with hide / show)
 +
*Aegon VI
 +
*add appropriate copyright info to the Narwen / Mor maps
 +
*replace gelo e fogo with game of thrones br
 +
*add italian and serbian wikis
 +
*get acces to Turkish wiki
 +
*list with contacts of all wikis
 +
*create template for age calculation. In the [[George R. R. Martin]] page the code is include as follows:
 +
<nowiki>{{#ifexpr:(  {{#time:z}} < {{#time:z |20-09-1948 }} )| {{#expr:{{#time:o}} - 1948 -1}} |{{#expr:{{#time:o}} - 1948 }}}}
 +
</nowiki>. This results in: {{#ifexpr:(  {{#time:z}} < {{#time:z |20-09-1948 }} )| {{#expr:{{#time:o}} - 1948 -1}} |{{#expr:{{#time:o}} - 1948 }}}}
 +
In the template the birthdate should be a parameter which is then used in two places.
 +
 
 +
==Checklist feature articles==
 +
*Neutral
 +
*references included
 +
*factual correct
 +
*Complete -> all major events covered
 +
*Article sections complete (appearence, family)
 +
*Images; major one as described in the books. quality of images, link to category: images of ..., link to copyright holders of image
 +
*Actor in HBO
 +
*Differences with series (focus on what is different, not what is not included)
 +
*Interlinks
 +
 
 +
Test with collabsible tables.
 +
 
 +
==Version 1: using the class "mw-collapsible" to an element.==
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px">
 +
This text is not collapsible; but the next is collapsible and hidden by default:
 +
<div class="mw-collapsible-content">Enige tekst die pas zichtbaar zou moeten worden als op Collapse wordt gedrukt</div>
 
</div>
 
</div>
 +
::Conclusion: does not work. Likely needs extra software to be installed.
  
 +
==Version 2: similar to 1 but the wikitable is used:==
 
{| class="mw-collapsible mw-collapsed wikitable"
 
{| class="mw-collapsible mw-collapsed wikitable"
 
! The header || remains visible
 
! The header || remains visible
Line 10: Line 41:
 
| at first || load time
 
| at first || load time
 
|}
 
|}
 +
::Does not work.
 +
 +
==Version 3: using wikitable class==
 +
{| class="wikitable collapsible"
 +
! Simple collapsible table
 +
|-
 +
| Lorem ipsum dolor sit amet
 +
|}
 +
::Works, though would be better if the table lines would be hidden.
 +
 +
==Version 4: using the template hidden==
 +
{{:sandbox|Title text here|Body text line 1<br/>Body text line 2}}
 +
::The idea was to use [[w:Template:Hidden]]. The code from that template was copied to the Sandbox but it does not work. Likely some declararions have to be copied to the css and js pages. Possible also extra extension have to be added for it to work.
 +
 +
==Version 5: see if it is possible to call the template from wikipedia==
 +
<nowiki>{{w:hidden|Title text here|Body text line 1<br/>Body text line 2}}</nowiki>
 +
::Copies the complete page  from wikipedia including the documentation. So it does not call the specific template on the wikipedia page but uses the complete pages as a template (=copy) and pasts it here. As the copied text was rather larger and too prominent for a test I have added "nowiki" tags to make the wiki ignore it.
 +
 +
==Version 6: modification from 3 with specification that the table border must be invisible==
 +
{| class="wikitable collapsible collapsed" border="0" cellpadding="0" cellspacing="0"
 +
! Simple collapsible table
 +
|-
 +
| Lorem ipsum dolor sit amet
 +
|}
 +
::table borders still visible
  
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px">
+
==Version 7: again using the div tag (from [http://test.wikipedia.org/wiki/User:Krinkle/CollapsingTestpageMw]==
This is text is not collapsible. But the next is collapsible and is also hidden by default:
+
<big>''' Collapsible div '''</big>
<div class="mw-collapsible-content">{{:Feature quote/2}}</div>
+
----
 +
<div class="mw-collapsible" data-collapsetext="You may collapse me by clicking here" data-expandtext="Let me back out !">
 +
En en ander aan tekst
 
</div>
 
</div>
 +
::Does not work
  
{| class="collapsible collapsed wikitable"
+
==Version 7: another modification from 3==
 +
{| class="collapsible collapsed wikitable" style="width:100%; border:0px; background:none;"
 +
! style="border:0px; solid;background:none;"|<div style="float:left">
 +
Hier de header
 +
</div> <div style="float:right">Spoiler warning  </div>
 
|-
 
|-
! This is the header cell, which is always shown
+
| style="border:0px;background:none;"|Het een en ander aan tekst
 +
|}
 +
 
 +
{| class="collapsible collapsed wikitable" style="width:100%; border:0px; background:none;"
 +
! style="border:0px; solid;background:none;"|<div style="float:left">
 +
==Version 8: now without extra header as there this exists already==
 +
</div> <div style="float:right">Spoiler warning  </div>
 
|-
 
|-
| This cell is not shown by default.
+
| style="border:0px;background:none;"|Het een en ander aan tekst
 
|}
 
|}
 +
==Different templates==
 +
{{Navbox generic
 +
| name  = HousesNorth
 +
| state  = uncollapsed
 +
| title  = Houses from [[North|the North]]
 +
 +
| style  = text-align:left; {{{style|}}}
 +
| group-style = width:100px; background-color:#ddd; white-space:nowrap; <!--text-align: right;-->
 +
| odd-style  = background-color:#F2F2F2;
 +
 +
| group1 = [[File:House_Stark.PNG|100px]]
 +
| imagestyle = width:100px;
 +
| list1 = <big>Situation at the begin of [[A Clash of Kings]]</big>
 +
 +
{{Navbox subgroup
 +
  |evenodd = swap
 +
 +
| group2 = Great House
 +
| list2  = [[House Stark|Stark]]
 +
 +
| group3 = Noble Houses
 +
| list3  = [[House Bolton|Bolton]] '''·''' [[House Cerwyn|Cerwyn]] '''·''' [[House Dustin|Dustin]] '''·''' [[House Flint of Flint's Finger|Flint of Flint's Finger]] '''·''' [[House Flint of Widow's Watch|Flint of Widow's Watch]] '''·''' [[House Hornwood|Hornwood]] '''·''' [[House Karstark|Karstark]] '''·''' [[House Locke|Locke]] '''·''' [[House Manderly|Manderly]] '''·''' [[House Mormont|Mormont]] '''·''' [[House Reed|Reed]] '''·''' [[House Ryswell|Ryswell]] '''·''' [[House Umber|Umber]]
 +
 +
| group4 = Masterly Houses
 +
| list4  = [[House Glover|Glover]] '''·''' [[House Tallhart|Tallhart]]
 +
 +
| group5 = Other Houses
 +
| list5  = [[House Ashwood|Ashwood]] '''·''' [[House Bole|Bole]] '''·''' [[House Branch|Branch]] '''·''' [[House Cassel|Cassel]] '''·''' [[House Condon|Condon]] '''·''' [[House Forrester|Forrester]] '''·''' [[House Holt (North)|Holt]] '''·''' [[House Ironsmith|Ironsmith]] '''·''' [[House Lake (North)|Lake]] '''·''' [[House Lightfoot|Lightfoot]] '''·''' [[House Long|Long]] '''·''' [[House Marsh|Marsh]] '''·''' [[House Mollen|Mollen]] '''·''' [[House Moss|Moss]] '''·''' [[House Overton|Overton]] '''·''' [[House Poole|Poole]] '''·''' [[House Redbeard|Redbeard]] '''·''' [[House Slate|Slate]] '''·''' [[House Stout|Stout]] '''·''' [[House Thenn|Thenn]] '''· ''' [[House Waterman|Waterman]] '''·''' [[House Wells (the North)|Wells]] '''·''' [[House Whitehill|Whitehill]] '''·''' [[House Woods|Woods]] '''·''' [[House Woolfield|Woolfield]]
 +
 +
| group6 = [[Northern mountain clans|Mountain Clans]]
 +
| list6  = [[House Burley|Burley]] '''·''' [[House Flint of the mountains|Flint of the Mountains]] '''·''' [[House Harclay|Harclay]] '''·''' [[House Knott|Knott]] '''·''' [[House Liddle|Liddle]] '''·''' [[House Norrey|Norrey]] '''·''' [[House Wull|Wull]]
 +
 +
| group7 = [[Crannogmen]]
 +
| list7  = [[House Blackmyre|Blackmyre]] '''·''' [[House Boggs (The Neck)|Boggs]] '''·''' [[House Cray|Cray]] '''·''' [[House Fenn|Fenn]] '''·''' [[House Greengood|Greengood]] '''·''' [[House Peat|Peat]] '''·''' [[House Quagg|Quagg]] '''·''' [[House Reed|Reed]]
 +
 +
| group8 = [[Skagosi]] Clans
 +
| list8  = [[House Crowl|Crowl]] '''·''' [[House Magnar|Magnar]] '''·''' [[House Stane|Stane]]
 +
 +
| group9  = Exiled Houses
 +
| list9  = [[House Blackwood|Blackwood]]
 +
 +
| group10 = Extinct Houses
 +
| list10  = [[House Amber|Amber]] '''·''' [[House Greenwood|Greenwood]] '''·''' [[House Fisher of the Stony Shore|Fisher]] '''·''' [[House Flint of Breakstone Hill|Flint of Breakstone Hill]] '''·''' [[House Frost|Frost]] '''·''' [[House Greystark|Greystark]] '''·''' [[House Ryder|Ryder]] '''·''' [[House Towers (North)|Towers]] '''·''' [[House Woodfoot|Woodfoot]]
 +
 +
| group11  = Future Houses
 +
| list11  = [[House Thenn|Thenn]]
 +
}}
 +
 +
| group2 = [[File:Bolton.png|100px]]
 +
| imagestyle = width:100px;
 +
| list2 = <big>Situation at the end of [[A Dance with Dragons]]</big>
 +
{{Navbox subgroup
 +
  |evenodd = swap
 +
 +
| group13 = Great House
 +
| list13  = [[House Bolton|Bolton]]
 +
 +
| group14 = Noble Houses
 +
| list14  = [[House Cerwyn|Cerwyn]] '''·''' [[House Dustin|Dustin]] '''·''' [[House Flint of Flint's Finger|Flint of Flint's Finger]] '''·''' [[House Flint of Widow's Watch|Flint of Widow's Watch]] '''·''' [[House Hornwood|Hornwood]] '''·''' [[House Karstark|Karstark]] '''·''' [[House Locke|Locke]] '''·''' [[House Manderly|Manderly]] '''·''' [[House Mormont|Mormont]] '''·''' [[House Reed|Reed]] '''·''' [[House Ryswell|Ryswell]] '''·''' [[House Umber|Umber]]
 +
 +
| group15 = Masterly Houses
 +
| list15  = [[House Glover|Glover]] '''·''' [[House Tallhart|Tallhart]]
 +
 +
| group16 = Other Houses
 +
| list16  = [[House Ashwood|Ashwood]] '''·''' [[House Bole|Bole]] '''·''' [[House Branch|Branch]] '''·''' [[House Cassel|Cassel]] '''·''' [[House Condon|Condon]] '''·''' [[House Forrester|Forrester]] '''·''' [[House Holt (North)|Holt]] '''·''' [[House Ironsmith|Ironsmith]] '''·''' [[House Lake (North)|Lake]] '''·''' [[House Lightfoot|Lightfoot]] '''·''' [[House Long|Long]] '''·''' [[House Marsh|Marsh]] '''·''' [[House Mollen|Mollen]] '''·''' [[House Moss|Moss]] '''·''' [[House Overton|Overton]] '''·''' [[House Poole|Poole]] '''·''' [[House Redbeard|Redbeard]] '''·''' [[House Slate|Slate]] '''·''' [[House Stout|Stout]] '''·''' [[House Thenn|Thenn]] '''· ''' [[House Waterman|Waterman]] '''·''' [[House Wells (the North)|Wells]] '''·''' [[House Whitehill|Whitehill]] '''·''' [[House Woods|Woods]] '''·''' [[House Woolfield|Woolfield]]
 +
 +
| group17 = [[Northern mountain clans|Mountain Clans]]
 +
| list17  = [[House Burley|Burley]] '''·''' [[House Flint of the mountains|Flint of the Mountains]] '''·''' [[House Harclay|Harclay]] '''·''' [[House Knott|Knott]] '''·''' [[House Liddle|Liddle]] '''·''' [[House Norrey|Norrey]] '''·''' [[House Wull|Wull]]
 +
 +
| group18 = [[Crannogmen]]
 +
| list18  = [[House Blackmyre|Blackmyre]] '''·''' [[House Boggs (The Neck)|Boggs]] '''·''' [[House Cray|Cray]] '''·''' [[House Fenn|Fenn]] '''·''' [[House Greengood|Greengood]] '''·''' [[House Peat|Peat]] '''·''' [[House Quagg|Quagg]] '''·''' [[House Reed|Reed]]
 +
 +
| group19 = [[Skagosi]] Clans
 +
| list19  = [[House Crowl|Crowl]] '''·''' [[House Magnar|Magnar]] '''·''' [[House Stane|Stane]]
 +
 +
| group20  = Exiled Houses
 +
| list20  = [[House Stark|Stark]]
 +
 +
| group21 = Extinct Houses
 +
| list21  = [[House Amber|Amber]] '''·''' [[House Greenwood|Greenwood]] '''·''' [[House Fisher of the Stony Shore|Fisher]] '''·''' [[House Flint of Breakstone Hill|Flint of Breakstone Hill]] '''·''' [[House Frost|Frost]] '''·''' [[House Greystark|Greystark]] '''·''' [[House Ryder|Ryder]] '''·''' [[House Towers (North)|Towers]] '''·''' [[House Woodfoot|Woodfoot]]
 +
}}
 +
}}

Latest revision as of 21:14, 22 October 2018

To do

  • add links analyses of all episodes
  • again suggest spoiler prevention (with hide / show)
  • Aegon VI
  • add appropriate copyright info to the Narwen / Mor maps
  • replace gelo e fogo with game of thrones br
  • add italian and serbian wikis
  • get acces to Turkish wiki
  • list with contacts of all wikis
  • create template for age calculation. In the George R. R. Martin page the code is include as follows:

{{#ifexpr:( {{#time:z}} < {{#time:z |20-09-1948 }} )| {{#expr:{{#time:o}} - 1948 -1}} |{{#expr:{{#time:o}} - 1948 }}}} . This results in: 75 In the template the birthdate should be a parameter which is then used in two places.

Checklist feature articles

  • Neutral
  • references included
  • factual correct
  • Complete -> all major events covered
  • Article sections complete (appearence, family)
  • Images; major one as described in the books. quality of images, link to category: images of ..., link to copyright holders of image
  • Actor in HBO
  • Differences with series (focus on what is different, not what is not included)
  • Interlinks

Test with collabsible tables.

Version 1: using the class "mw-collapsible" to an element.

This text is not collapsible; but the next is collapsible and hidden by default:

Enige tekst die pas zichtbaar zou moeten worden als op Collapse wordt gedrukt
Conclusion: does not work. Likely needs extra software to be installed.

Version 2: similar to 1 but the wikitable is used:

The header remains visible
This content is hidden
at first load time
Does not work.

Version 3: using wikitable class

Simple collapsible table
Lorem ipsum dolor sit amet
Works, though would be better if the table lines would be hidden.

Version 4: using the template hidden

House Targaryen
House Targaryen.svg
From These Beginnings
The idea was to use w:Template:Hidden. The code from that template was copied to the Sandbox but it does not work. Likely some declararions have to be copied to the css and js pages. Possible also extra extension have to be added for it to work.

Version 5: see if it is possible to call the template from wikipedia

{{w:hidden|Title text here|Body text line 1<br/>Body text line 2}}

Copies the complete page from wikipedia including the documentation. So it does not call the specific template on the wikipedia page but uses the complete pages as a template (=copy) and pasts it here. As the copied text was rather larger and too prominent for a test I have added "nowiki" tags to make the wiki ignore it.

Version 6: modification from 3 with specification that the table border must be invisible

table borders still visible

Version 7: again using the div tag (from [1]

Collapsible div


En en ander aan tekst

Does not work

Version 7: another modification from 3

Different templates