Template:Relay: Difference between revisions

From FrathWiki
Jump to navigationJump to search
(Created page with "<noinclude>A navigation footer for pages related to conlang relays (including torches), including the appropriate category. ==Parameters== # th...")
 
(simplified TOCs)
Line 15: Line 15:
==Table of contents==
==Table of contents==


You can add a table of contents to this navbox by creating the subpage /TOC of the page you specified under the '''relay''' parameter. Write the TOC as if it were inside an HTML table with 3 columns, inside a &lt;tr&gt; tag.
You can add a table of contents to this navbox by creating the subpage /TOC of the page you specified under the '''relay''' parameter.


==Example==
==Example==
Line 23: Line 23:
[[Category:Templates]]
[[Category:Templates]]


</noinclude><table style="width: 100%; border: 1px solid #5F79CC; background-color: #BEF1FF; color: black"><tr>{{ #ifeq: {{{1|}}}|||<th style="border-bottom: 1px solid #5F79CC">[[{{{1}}}|&larr; {{{1}}}]]</th>}}<th {{ colspan="{{#expr:1+{{#ifeq:{{{1|}}}||1|0}}+{{#ifeq:{{{2|}}}||1|0}}}}" style="border-bottom: 1px solid #5F79CC">{{#ifexpr:{{{link|1}}}|[[{{{relay|Conlang relay}}}]]|{{{relay|Conlang relay}}}}}</th>{{#ifeq: {{{2|}}}|||<th style="border-bottom: 1px solid #5F79CC">[[{{{1}}}|{{{1}}} &rarr;]]</th>}}</tr>{{#ifexist:{{{relay|Conlang relay}}}/TOC|<tr>{{{relay|Conlang relay}}}/TOC</tr><tr><td colspan="3" style="border-top: 1px solid #5F79CC; text-align: center">|<tr><td colspan="3" style="text-align: center">}}[[Conlang relay|What is a relay?]] • [[Conlang relay#List of relays|list of relays]] • [[:Category:Conlang relays|all pages in this category]] {{ #ifeq: {{FULLPAGENAME}} | Category:Conlang relays || [[Category:Conlang relays]] }}</td></tr></table>
</noinclude><table style="width: 100%; border: 1px solid #5F79CC; background-color: #BEF1FF; color: black"><tr>{{ #ifeq: {{{1|}}}|||<th style="border-bottom: 1px solid #5F79CC">[[{{{1}}}|&larr; {{{1}}}]]</th>}}<th colspan="{{#expr:1+{{#ifeq:{{{1|}}}||1|0}}+{{#ifeq:{{{2|}}}||1|0}}}}" style="border-bottom: 1px solid #5F79CC">{{#ifexpr:{{{link|1}}}|[[{{{relay|Conlang relay}}}]]|{{{relay|Conlang relay}}}}}</th>{{#ifeq: {{{2|}}}|||<th style="border-bottom: 1px solid #5F79CC">[[{{{1}}}|{{{1}}} &rarr;]]</th>}}</tr>{{#ifexist:{{{relay|Conlang relay}}}/TOC|<tr><td colspan="3">{{{{{relay|Conlang relay}}}/TOC}}</td></tr><tr><td colspan="3" style="border-top: 1px solid #5F79CC; text-align: center">|<tr><td colspan="3" style="text-align: center">}}[[Conlang relay|What is a relay?]] • [http://www.frontiernet.net/~scaves/relayrule.html rules] • [[Conlang relay#List of relays|list of relays]] • [[:Category:Conlang relays|all pages in this category]] {{ #ifeq: {{FULLPAGENAME}} | Category:Conlang relays || [[Category:Conlang relays]] }}</td></tr></table>

Revision as of 01:21, 28 April 2012

A navigation footer for pages related to conlang relays (including torches), including the appropriate category.

Parameters

  1. the previous article.
  2. the next article.

These two arguments are optional. If specified, they should be the name of a page on this wiki and will be shown as a link to the left of the title. You can use this on the page of a torch to link to the previous torch.

relay
the relay's name. This should be the name of the relay's page on this wiki. If the relay does not have a page on this wiki, you should specify this anyway and set the link parameter to 0. If the page is not relevant to a specific relay, do not specify this — the template will default to Conlang relay.
link
1 if the relay's name should be a link (this is the default), 0 otherwise.

Table of contents

You can add a table of contents to this navbox by creating the subpage /TOC of the page you specified under the relay parameter.

Example

This is how the template looks without any parameters:

Conlang relay
Template:Conlang relay/TOC
What is a relay?ruleslist of relaysall pages in this category