Difference between revisions of "Template:Include Timeline/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mira Gambolputty
m (typos)
imported>Droll
(clean up documentation subpage templates using AWB)
Line 1: Line 1:
 
<includeonly><div class="notice plainlinks" id="disambig">''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[Template:Include Timeline/doc]]''. <small>([{{fullurl:Template:Include Timeline/doc|action=edit}} edit] | [{{fullurl:Template:Include Timeline/doc|action=history}} history])</small>{{#ifeq:  
 
<includeonly><div class="notice plainlinks" id="disambig">''This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[Template:Include Timeline/doc]]''. <small>([{{fullurl:Template:Include Timeline/doc|action=edit}} edit] | [{{fullurl:Template:Include Timeline/doc|action=history}} history])</small>{{#ifeq:  
 
{{#expr: {{#ifexist: {{#rel2abs: /sandbox }}|1|0}} and  
 
{{#expr: {{#ifexist: {{#rel2abs: /sandbox }}|1|0}} and  
{{#ifexist: {{#rel2abs: /testcases}}|1|0}} }} |1 |<br />''This template has a [[/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} edit])</small> ''and [[/testcases|testcases]]'' for editors to experiment|<!-- do nothing when either /sandbox or /testcases exists-->}}</div></includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{#ifexist: {{#rel2abs: /testcases}}|1|0}} }} |1 |<br />''This template has a [[/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAMEE}}/sandbox|action=edit}} edit])</small> ''and [[/testcases|testcases]]'' for editors to experiment|<!-- do nothing when either /sandbox or /testcases exists-->}}</div></includeonly>{{Documentation subpage}}
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
  

Revision as of 18:44, 15 August 2010

Include this template into a page when you want to create a {{graphical timeline}}.

First use

Press preview to generate a link to the new timeline page, and brief instructions on how to create the timeline.

Once the timeline's created...

Save the article page. The template will then automatically embed the new timeline in in the article, keeping the code safely tucked away elsewhere where it can be easily edited.

Setting the timeline name

The template automatically created a link to a template page called PAGENAME graphical timeline, where the timeline is stored. If you want to change the name of the timeline, for example because you are including two timelines in an article, use {{include timeline|NAME}}, which will use the page NAME graphical timeline.