Forum:Does the family tree format work on ShoutWiki?

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search

Forums: Index Community help


I tried to develop a family tree page and I keep getting a broken link response. I'm wondering if this wiki supports family trees, or if I'm doing something wrong with the format.

For context, what I'm using is thus:

{{familytree/wrap|
{{familytree/start}}
{{familytree| | | | | | | |PA|~|~|RO|~|y|~|FP|PA=Alysy|RO=Roger II|FP=Jessamine
|boxstyle_PA=background-color: #cc6699;
|boxstyle_RO=background-color: #3399cc; 
|boxstyle_FP=background-color: #cc6699;}}

{{familytree| | | | | | | | | | | | | | | | |!}} 
{{familytree| | | | | | | | | | | | | | | |GA|GA=Gareth
|boxstyle_GA=background-color: #3399cc;}}

{{familytree| | | | | | | | | | | | | | | | |!}}
{{familytree| | | | | | | | | | | | | | | |UK|UK=? generations}}

{{familytree| | | | | | | | | | | | | | | | |!|}}
{{familytree| | | | | | | |NC|~|y|~|~|~|JC|JC=Jasson the Conqueror|NC=Naxen third cousin
|boxstyle_JC=background-color: #3399cc;
|boxstyle_NC=background-color: #cc6699;}}

{{familytree| | | | | | | |,|-|-|-|^|-|-|.| | | }}
{{familytree| |LN|~|y|~|PM| | | |UB|y|UW|LN=Lianne of Naxen|PM=Roald I (the Peacemaker)|UB=unnamed brother|UW=unnamed wife
|boxstyle_LN=background-color: #cc6699;
|boxstyle_PM=background-color: #3399cc;
|boxstyle_UB=background-color: #3399cc;
|boxstyle_UW=background-color: #cc6699;}}

{{familytree| | | | | |!| | | | | | | | | | |!| | | }}
{{familytree| | | | |JC|y|TY| | | | |RC|TY=Thayet|JC=Jonathan IV|RC=Duke Roger
|boxstyle_TY=background-color: #cc6699;
|boxstyle_JC=background-color: #3399cc;
|boxstyle_RC=background-color: #3399cc;}}

{{familytree| | | | | | | |!| | | | | | | | | | | | }}
{{familytree| | |,|-|-|-|-|^|-|-|v|-|-|-|-|-|-|-|-|-|-|.| }}

{{familytree| | |!| | | | | | | |!| | | | | | | | | | |!| }}
{{familytree| |RL|y|SH| |KL|y|KD| | |LM|(| |SH=Shinkokami|RL=Roald II|KL=Kalasin|KD=Kaddar|LM=Liam
|boxstyle_SH=background-color: #cc6699;
|boxstyle_RL=background-color: #3399cc;
|boxstyle_KL=background-color: #cc6699;
|boxstyle_KD=background-color: #3399cc;
|boxstyle_LM=background-color: #3399cc;}}

{{familytree| | | | |!| | | | | | | |!| | | | | | | | |!| }}
{{familytree| | | |LN|y|FM| |BN| | | | |JS|(| |LN=Lianokami|BN=Binur|JS=Jasson II|FM=Famir
|boxstyle_LN=background-color: #cc6699;
|boxstyle_JS=background-color: #3399cc;
|boxstyle_FM=background-color: #3399cc;
|boxstyle_BN=background-color: #3399cc;}}

{{familytree| | | | | | |!| | | | | | | | | | | | | | |!| }}
{{familytree| | | | | |NY|y|FA| | | | | | |LI|(| |NY=Nymeria|LI=Lianne|FA=various men
|boxstyle_NY=background-color: #cc6699;
|boxstyle_FA=background-color: #3399cc;
|boxstyle_LI=background-color: #cc6699;}}

{{familytree| | | | | | | | |!| | | | | | | | | | | | |!| }}
{{familytree| | |,|-|-|-|v|-|^|-|-|-|-|-|.| | | |VA|'| |VA=Vania
|boxstyle_VA=background-color: #3399cc;}}

{{familytree| | |!| | | |!| | | | | | | |!| | | | | | | | }}
{{familytree| |QU| |JO|y|AY| |VE| | | | | |QU=Enderquina*|JO=Jonathan V|AY=Anyana|VE=Velasco*
|boxstyle_QU=background-color: #cc6699;
|boxstyle_JO=background-color: #3399cc;
|boxstyle_AY=background-color: #cc6699;
|boxstyle_VE=background-color: #3399cc;}}

{{familytree| | | | | | | | |!| | | | | | | | | | | | | | }}
{{familytree| | |,|-|-|-|v|-|^|-|v|-|-|-|.| | | | }}

{{familytree| | |!| | | |!| | | |!| | | |!| | | | | | | | }}
{{familytree| |RJ| |JS| |RI| |RW| | | | | |RJ=Faraday|JS=Marcel|RI=Quentin|RW=Octavia
|boxstyle_RJ=background-color: #3399cc;
|boxstyle_JS=background-color: #3399cc;
|boxstyle_RI=background-color: #cc6699;
|boxstyle_RW=background-color: #3399cc;}}

{{familytree| | | | | | | | | | | | | | | | | | | | | | | }}
{{familytree| | | | | | | | | | | | | | | | | | | }}

{{familytree/end}}
}}

Thanks in advance! Nocens (talk) 04:59, 13 January 2016 (UTC)

Generally speaking, templates are interchangeable between different MediaWiki wikis. Sometimes you might need some custom CSS or JavaScript code for a template to work as intended, but usually that's about it. One somewhat ShoutWiki-specific edge case to note is the Scribunto extension: currently this extension is enabled only on request, whereas it's available by default on Wikimedia sites, such as Wikipedia or Wiktionary. This extension provides the {{#invoke:}} parser function and the Module: namespace. The main reason why you'd want to use the Scribunto extension is performance — Scribunto "modules" (which are actually written in the Lua programming language) are significantly faster than ordinary, old-school templates; and depending on who you ask, Lua code might be easier to read, write and debug.
Back to the actual problem at hand...
You wrote "I keep getting a broken link response". A red link (like this) indicates a page that doesn't yet exist. The template code you pasted above includes four separate templates, which are named:
  • Template:Familytree/wrap
  • Template:Familytree/start
  • Template:Familytree
  • Template:Familytree/end
Have you created all of these pages on your wiki? If not, that's the problem. Do you have a link to a wiki page where this family tree template is working as desired? (A Wikipedia page, perhaps?) Wikipedia's templates can be and often are notoriously complex. --Jack PhoenixShoutWiki Staff (Contact) 22:44, 14 January 2016 (UTC)