Difference between revisions of "User: Scafloc/sandbox"

From A Wiki of Ice and Fire
Jump to: navigation, search
(SH*T this works!)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="collapsible collapsed wikitable"
+
==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:
 +
<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>
 +
::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"
 +
! The header || remains visible
 
|-
 
|-
! WARNING! This section contains spoilers! Press show to see them.
+
| This content || is hidden
 
|-
 
|-
| After the death of [[Jon Arryn]], King Robert travels north to visit Ned Stark at Winterfell and persuade him to become Jon's successor as Hand of the King. The king is accompanied by almost the whole court, among them Jaime and Cersei.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 4|Chapter 4]], Eddard</ref>
+
| 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.
  
While at Winterfell, Jaime and Cersei are caught having sex by [[Bran Stark]]. Bran is shocked and almost falls from the tower. Jaime pulls him up and then throws him out of the window, intending to kill him to keep the affair a secret. Bran survives but falls into a coma.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 8|Chapter 8]], Bran</ref>
+
==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.  
  
Ned Stark accepts King Robert's invitation to be Hand, and begins investigating the death of Jon Arryn.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 6|Chapter 6]], Catelyn</ref><ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 25|Chapter 25]], Eddard</ref> In this investigation he discovers Jaime and Cersei's secret relationship by piecing together the fact that every time in history a Lannister wedded a Baratheon, they produced raven haired children. Instead Cersei's children; Joffrey, Myrcella, and Tommen are all fair-haired.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 45|Chapter 45]], Eddard</ref>
+
==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
  
Meanwhile, [[Catelyn Stark]], Lady of [[Winterfell]], captures Jaime's brother Tyrion on suspicion of involvement in a botched assassination attempt on Bran Stark.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 28|Chapter 28]], Catelyn</ref> Jaime and Lannister men attack Ned and his Northmen in the streets of King's Landing, leading to numerous deaths on both sides.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 35|Chapter 35]], Eddard</ref> Jaime then flees from King's Landing and joins his father.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 39|Chapter 39]], Eddard</ref>
+
==Version 7: again using the div tag (from [http://test.wikipedia.org/wiki/User:Krinkle/CollapsingTestpageMw]==
 +
<big>''' Collapsible div '''</big>
 +
----
 +
<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>
 +
::Does not work
  
Jaime leads an army of Westermen against the River Lords, smashing [[Edmure Tully]]'s host at the Golden Tooth, and eventually besieging Riverrun.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 55|Chapter 55]], Catelyn</ref> However [[Robb Stark]] leads a Northern army to the Riverlands to relieve Riverrun. Robb surprises the Lannister army at the [[Battle of the Camps]]. Although Jaime fights bravely and manages to kill the sons of Lord [[House Karstark|Rickard Karstark]] he is captured.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 63|Chapter 63]], Catelyn</ref> Afterwards, Jaime is imprisoned in Riverrun. While there he becomes Lord Commander of the Kingsguard after Ser [[Barristan Selmy]] is dismissed.<ref>[[A Game of Thrones]], [[A Game of Thrones-Chapter 57|Chapter 57]], Sansa</ref>
+
==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>
 +
|-
 +
| 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>
 +
|-
 +
| 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