Template:Tree Chart

From Support Wiki
Jump to navigation Jump to search

Tree Chart is a wiki template that displays a family tree to organize data.

Objectives

With this guide you will be able to make a basic Family Tree for your WikiGG.

How to Set?

Setup various Templates, here's a list of templates you going to set and what the code for each of then.

Doc Templates


This template is used in system messages. Changes to it can cause immediate changes to the MediaWiki user interface. To avoid large-scale disruption. [Link]

<noinclude>{{doc/start}}
<!-- Developed by AtelierPowPooh on Atelier Wiki at https://atelier.wiki.gg/ -->
To use, create a sub-page from the template called '''doc''', put {{tlx|doc/start}} at the start of your documentation, and {{tlx|doc/end}} at the end.

Go back to your main template page and put &lt;noinclude&gt;{{tlx|doc}}&lt;/noinclude&gt; on a newline after the end of the template. /doc pages will automatically be added to [[:Category:Template documentation]].

== Optional parameters ==
=== clear ===
If your main template page has floating content and you would like to stop it going over the documentation, put {{tlx|doc/start|clear}} instead of {{tlx|doc/start}} on your documentation page.<br>
This is also useful for templates not using &lt;includeonly&gt;, as it will put some space between the template and the documentation box.

=== nodoc=1 ===
If a template has no documentation and you don't know how to use it, put {{tlx|doc/start|nodoc{{=}}1}} (or if the template needs clear as well, {{tlx|doc/start|clear|nodoc{{=}}1}}) instead of {{tlx|doc/start}} on your documentation page.<br>
The documentation's background will become red to make it more noticeable, and the page will be added to [[:Category:Templates with no documentation]].

=== baddoc=1 ===
Similar to nodoc, this is used to mark templates that '''do''' have documentation, but it isn't very good. This can mean it doesn't have enough examples, doesn't explain all the functions properly, or doesn't explain the point of the template properly.<br>
The documentation's background will become yellow to make it more noticeable, and the page will be added to [[:Category:Templates with bad documentation]].

If both nodoc and baddoc are specified, baddoc will be ignored.
</div>

[[Category:Documentation templates]]
</noinclude><includeonly>{{/doc}}</includeonly>

[Link]

<!-- Developed by AtelierPowPooh on Atelier Wiki at https://atelier.wiki.gg/ -->
<includeonly><!--
-->{{#vardefine: nodoc | {{{nodoc}}} }}<!--
-->{{#vardefine: baddoc | {{{baddoc}}} }}<!--

-->{{#if: {{{1|}}} | {{#ifeq: {{SUBPAGENAME}} | doc | | <div style="height: 1em; clear: both; margin-top: 5px;"></div> }} }}<!--

--><div class="doc">
<div class="doc-header"><!--
-->[[File:Template-{{#if: {{{nodoc|}}} | no | {{#if: {{{baddoc|}}} | bad }} }}info.png|50px|bottom|link=]] <span style="font-weight: bold; font-size: 125%;">Documentation</span><!--
--><div class="plainlinks" style="float: right; margin-left: 5px">&#91;[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]&#93;</div></div><!--

-->{{#if: {{{nodoc|}}} | '''This template has no documentation. If you know how to use this template, please add some.'''<!--
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:Templates with no documentation|{{BASEPAGENAME}}]]}} |<!--
-->{{#if: {{{baddoc|}}} | '''This template's documentation has been marked as bad. Please improve or add to it.'''<!--
-->{{#ifeq: {{SUBPAGENAME}} | doc | | [[Category:Templates with bad documentation|{{BASEPAGENAME}}]]}}<!--
-->}} }}</includeonly><noinclude>[[Category:Documentation templates]]</noinclude>

[Link]

<includeonly></div>
<div class="doc-footer"><!--

-->{{#ifeq: {{SUBPAGENAME}} | doc |<!--
--><p style="margin: 0">This is the documentation page, it should be transcluded into the main template page. See [[Template:Doc]] for more information.</p>[[Category:Template documentation|{{BASEPAGENAME}}]] |<!--
--><p class="plainlinks" style="margin: 0">The above documentation is transcluded from [[{{FULLPAGENAME}}/doc]]. <small>([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small></p> }}<!--
--></div></includeonly><noinclude>[[Category:Documentation templates]]</noinclude>

Tree Templates

[Link]

This template produces one row in a "family tree"-like chart consisting of boxes and connecting lines based loosely on an ASCII art-like syntax. It is meant to be used in conjunction with family tree/start and family tree/end. The chart is displayed as HTML tables using CSS attributes, and may contain arbitrary wiki markup within the boxes. This implementation was based on the now-deprecated family tree template.

[Link]
This template is meant to be used in conjunction with Family tree and Family tree/end to create various types of charts (such as family trees). See Familytree's documentation for help on how to actually make charts.
[Link]
This template is meant to be used in conjunction with Family tree/start and Family tree to create various types of charts (such as family trees). The template should follow the last chart row specified by a Family tree template. See Family trees documentation for detailed help on how to actually make charts.

Isn't Working?

  1. Q: I set all my templates and still won't working.
    1. A: Usually takes 15 to 45 minutes to all the changes take effect on the wiki, you must wait.
  1. Q: How I use the chart, where I can follow?
    1. A: You can follow everything on the Gallery or you can check the references for more in-depth info.

Gallery

Example wikis

References

1. https://www.mediawiki.org/wiki/Template:Documentation/doc
2. https://en.wikipedia.org/wiki/Template:Tree_chart
3. https://en.wikipedia.org/wiki/Template:Tree_chart/start
4. https://en.wikipedia.org/wiki/Template:Tree_chart/end