Difference between revisions of "User: Scafloc/sandbox"

From A Wiki of Ice and Fire
Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{familytree/start|style=font: 75% sans-serif;}}
+
==To do ==
{{familytree  | |AB| AB=[[Bran the Builder|Bran the <br>Builder]]}}
+
*add links analyses of all episodes
{{familytree | |:|}}
+
*again suggest spoiler prevention (with hide / show)
{{familytree  | |AB|AB=[[Theon Stark|Theon the<br>Hungry Wolf]]}}
+
*Aegon VI
{{familytree  | |:|}}
+
*add appropriate copyright info to the Narwen / Mor maps
{{familytree  | |AB|AB=[[Brandon Stark (Shipwright)|Brandon<br>the Shipwright]]}}
+
*replace gelo e fogo with game of thrones br
{{familytree | |:|}}
+
*add italian and serbian wikis
{{familytree  | |AB|AB=[[Brandon Stark (Burner)|Brandon <br>the Burner]]}}
+
*get acces to Turkish wiki
{{familytree | |:|}}
+
*list with contacts of all wikis
{{familytree  | |AB|AB=[[Dorren Stark|Dorrren]]}}
+
*create template for age calculation. In the [[George R. R. Martin]] page the code is include as follows:
{{familytree | |:|}}
+
<nowiki>{{#ifexpr:(  {{#time:z}} < {{#time:z |20-09-1948 }} )| {{#expr:{{#time:o}} - 1948 -1}} |{{#expr:{{#time:o}} - 1948 }}}}
{{familytree  | |AB|AB=[[Jon Stark|Jon]]}}
+
</nowiki>. This results in: {{#ifexpr:(  {{#time:z}} < {{#time:z |20-09-1948 }} )| {{#expr:{{#time:o}} - 1948 -1}} |{{#expr:{{#time:o}} - 1948 }}}}
{{familytree  | |:|}}
+
In the template the birthdate should be a parameter which is then used in two places.
{{familytree | |AB|AB=[[Rickard Stark|Rickard]]}}
+
 
{{familytree | |:|}}
+
==Checklist feature articles==
{{familytree  | |AB|AB=[[Rodrik Stark|Rodrik the <br>Wandering Wolf]]}}
+
*Neutral
{{familytree  | |:|}}
+
*references included
{{familytree | |AB|AB=[[Edrick Stark|Edrick]]}}
+
*factual correct
{{familytree  | |:|}}
+
*Complete -> all major events covered
{{familytree  | |AB|AB=[[Brandon Stark (Ice Eyes)|Brandon<br> Ice Eyes]]}}
+
*Article sections complete (appearence, family)
{{familytree  | |:|}}
+
*Images; major one as described in the books. quality of images, link to category: images of ..., link to copyright holders of image
{{familytree  | |AB|AB=[[Benjen Stark (Bitter)|Benjen <br>the Bitter]]}}
+
*Actor in HBO
{{familytree  | |:|}}
+
*Differences with series (focus on what is different, not what is not included)
{{familytree  | |AB|AB=[[Benjen Stark (Sweet)|Benjen <br>the Sweet]]}}
+
*Interlinks
{{familytree  | |:|}}
+
 
{{familytree  | |AB|AB=[[Eyron Stark|Eyron]]}}
+
Test with collabsible tables.
{{familytree | |:|}}
+
 
{{familytree  | |AB|AB=[[Edderion Stark|Edderion the <br>Bridegroom]]}}
+
==Version 1: using the class "mw-collapsible" to an element.==
{{familytree | |:|}}
+
<div class="toccolours mw-collapsible mw-collapsed" style="width:800px">
{{familytree | |AB|AB=[[Walton Stark|Walton the <br>Moon King]]}}
+
This text is not collapsible; but the next is collapsible and hidden by default:
{{familytree  | |:|}}
+
<div class="mw-collapsible-content">Enige tekst die pas zichtbaar zou moeten worden als op Collapse wordt gedrukt</div>
{{familytree  | |AB|AB=[[Brandon Stark (Bad)|Brandon <br>the Bad]]}}
+
</div>
{{familytree | |:|}}
+
::Conclusion: does not work. Likely needs extra software to be installed.
{{familytree  | |AB|AB=[[Jorah Stark|Jorah]]}}
+
 
{{familytree  | |:|}}
+
==Version 2: similar to 1 but the wikitable is used:==
{{familytree  | |AB|AB=[[Jonos Stark|Jonos]]}}
+
{| class="mw-collapsible mw-collapsed wikitable"
{{familytree | |:|}}
+
! The header || remains visible
{{familytree  | |AB|AB=[[Edwyn Stark|Edwyn the <br>Spring King ]]}}
+
|-
{{familytree | |:|}}
+
| This content || is hidden
{{familytree | |AB|AB=[[Torrhen Stark|Torrhen]]}}
+
|-
{{familytree  | |:|}}
+
| at first || load time
{{familytree  | |AB|AB=[[Cregan Stark|Cregan]]}}
+
|}
{{familytree  | |:|}}
+
::Does not work.
{{familytree  | |AB|AB=[[Brandon Stark (Lord)|Brandon]]}}
+
 
{{familytree  | |:|}}
+
==Version 3: using wikitable class==
{{familytree  | |AB|AB=[[Barth Stark|Barth]]}}
+
{| class="wikitable collapsible"
{{familytree  | |:|}}
+
! Simple collapsible table
{{familytree  | |AB|AB=[[Jonnel Stark|Jonnel]]}}
+
|-
{{familytree | |:|}}
+
| Lorem ipsum dolor sit amet
{{familytree  | |AB|AB=[[Rodwell Stark|Rodwell]]}}
+
|}
{{familytree | |:|}}
+
::Works, though would be better if the table lines would be hidden.
{{familytree | |AB|AB=[[Beron Stark|Beron]]}}
+
 
{{familytree | |:|}}
+
==Version 4: using the template hidden==
{{familytree  | |AB|AB=[[Donnor Stark|Donnor]]}}
+
{{:sandbox|Title text here|Body text line 1<br/>Body text line 2}}
{{familytree  | |:|}}
+
::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.
{{familytree/end}}
+
 
 +
==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
 +
 
 +
==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
 +
 
 +
==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