The wiki has recently been updated. Please contact me by talk page or email if you encounter any issues.

FrathWiki:Templates: Difference between revisions

From FrathWiki
Jump to navigationJump to search
No edit summary
Line 1: Line 1:
= What is a template? =
== What is a template? ==


The [[Wikipedia:MediaWiki|MediaWiki]] software used by FrathWiki has support for templates. This means standardized text chunks (such as [[Wikipedia:Template messages|boilerplate]] text) can be inserted into articles. For example, typing <nowiki>{{stub}}</nowiki> will appear as "{{stub}}".
The [[Wikipedia:MediaWiki|MediaWiki]] software used by FrathWiki has support for templates. This means standardized text chunks (such as [[Wikipedia:Template messages|boilerplate]] text) can be inserted into articles. For example, typing <nowiki>{{stub}}</nowiki> will appear as "{{stub}}".


==Instructions==
===Instructions===
To create a new user message, you need to make an article under the name '''Template:TEMPLATENAME'''.  
To create a new user message, you need to make an article under the name '''Template:TEMPLATENAME'''.  


Line 10: Line 10:
If you create a new user message, please keep the list below updated.
If you create a new user message, please keep the list below updated.


= Templates on this wiki =
== General-use templates ==


== ABC ==
=== ABC ===
This [[Template:ABC]] replaces the table of contents with links to the headings of an alphabetized list such as a vocabulary. To insert it type <nowiki>{{subst:ABC}} </nowiki> at the top of the edit window and save the page, then create headings named
This [[Template:ABC]] replaces the table of contents with links to the headings of an alphabetized list such as a vocabulary. To insert it type <nowiki>{{subst:ABC}} </nowiki> at the top of the edit window and save the page, then create headings named
<pre>
<pre>
Line 27: Line 27:
There's also [[Template:widetoc]] which does similar.
There's also [[Template:widetoc]] which does similar.


== Work in progress ==
=== Work in progress ===


To show that a page is under construction, under revision or otherwise incomplete you can type <nowiki>{{Workinprogress}}</nowiki> at the top of of the page and it will appear as the following boilerplate:
To show that a page is under construction, under revision or otherwise incomplete you can type <nowiki>{{Workinprogress}}</nowiki> at the top of of the page and it will appear as the following boilerplate:


"{{Workinprogress}}".
{{Workinprogress}}


Equivalent code is <nowiki>{{WIP}} or {{Wip}} or {{wip}}</nowiki>.
Equivalent code is <nowiki>{{WIP}} or {{Wip}} or {{wip}}</nowiki>.


== User page template ==
=== User page template ===


This [[Template:Userpage]] is a ripoff of [[User:Chlewey]]'s elegant user page.
This [[Template:Userpage]] is a ripoff of [[User:Chlewey]]'s elegant user page.
You can use it as a help to create your own user page.  To include it in your own page type <nowiki>{{subst:Userpage}}</nowiki> into your edit window, then save your page, then open your edit window again and edit the table that now appears.  Replace the text in UPPERCASE with information relevant to yourself.
You can use it as a help to create your own user page.  To include it in your own page type <nowiki>{{subst:Userpage}}</nowiki> into your edit window, then save your page, then open your edit window again and edit the table that now appears.  Replace the text in UPPERCASE with information relevant to yourself.


== Language template ==
== Language templates ==
 
===Language summary===


This [[Template:Language|template]] was designed by [[User:WeepingElf|Jörg]] as a base for your language descriptions.  It contains a box in the upper right corner with basic language data (location, timeline/universe, number of speakers, genealogical classification) modelled after the similar boxes found in Wikipedia language articles.  To include it in your page, type  
This [[Template:Language|template]] was designed by [[User:WeepingElf|Jörg]] as a base for your language descriptions.  It contains a box in the upper right corner with basic language data (location, timeline/universe, number of speakers, genealogical classification) modelled after the similar boxes found in Wikipedia language articles.  To include it in your page, type  
<nowiki>{{subst:Language}}</nowiki> into your edit window, then save your page, then open the edit window again and edit the table that now appears.
<nowiki>{{subst:Language}}</nowiki> into your edit window, then save your page, then open the edit window again and edit the table that now appears.
===Language summary II===


An [[Template:Infobox|alternative template]] was designed by [[User:Denihilonihil|Eugene]] for more comprehensive language summarising (what an oxymoron, truth be told), including lnguistic typology. It also uses a light grey background and smaller text than Jörg's template. To use this template, use the follwing code:
An [[Template:Infobox|alternative template]] was designed by [[User:Denihilonihil|Eugene]] for more comprehensive language summarising (what an oxymoron, truth be told), including lnguistic typology. It also uses a light grey background and smaller text than Jörg's template. To use this template, use the follwing code:
Line 50: Line 54:


Open the link above to find out what each parameter stands for.
Open the link above to find out what each parameter stands for.
===Phonology===


For a simple table to use to describe your language's phonology, try [[Template:Phonology|this template]], by using ''<nowiki>{{subst:Phonology}}</nowiki>'' in your language's page, saving the page, and editing the table that appears afterwards.
For a simple table to use to describe your language's phonology, try [[Template:Phonology|this template]], by using ''<nowiki>{{subst:Phonology}}</nowiki>'' in your language's page, saving the page, and editing the table that appears afterwards.


== Swadesh template ==
=== Swadesh template ===


This template, adapted from the [[Wiktionary:Wiktionary:Swadesh template|Wiktionary:Swadesh template]] can be used to demonstrate the vocabulary of a conlang.  It can be seen [[Template:Swadesh|here]].
This template, adapted from the [[Wiktionary:Wiktionary:Swadesh template|Wiktionary:Swadesh template]] can be used to demonstrate the vocabulary of a conlang.  It can be seen [[Template:Swadesh|here]].
To include it in your own page type <nowiki>{{subst:Swadesh}}</nowiki> into your edit window, then save your page, then open your edit window again and edit the table that now appears.
To include it in your own page type <nowiki>{{subst:Swadesh}}</nowiki> into your edit window, then save your page, then open your edit window again and edit the table that now appears.


== IPA transcription ==
=== IPA transcription ===


I have made a template [[Template:IPA]] to select fonts for displaying special characters correctly in Internet Explorer.  It will also display a tooltip saying "IPA transcription".  See [[Template talk:IPA]] for usage instructions.
I have made a template [[Template:IPA]] to select fonts for displaying special characters correctly in Internet Explorer.  It will also display a tooltip saying "IPA transcription".  See [[Template talk:IPA]] for usage instructions.
==Conworld templates==
[[User:Denihilonihil|Eugene]] has designed a [[Template:Succession box|template]]  that allows easy referencing between empires on a territory, dynasties of an empire, rulers of a dynasty, reign names of a ruler etc. Designed to be placed at the bottom of the page, although the top will do just fine as well.

Revision as of 21:34, 23 February 2006

What is a template?

The MediaWiki software used by FrathWiki has support for templates. This means standardized text chunks (such as boilerplate text) can be inserted into articles. For example, typing {{stub}} will appear as "

This article is a stub. If you can contribute to its content, feel free to do so.

".

Instructions

To create a new user message, you need to make an article under the name Template:TEMPLATENAME.

Messages can be used in two ways: {{subst:TEMPLATENAME}} and {{TEMPLATENAME}}. subst copies the user message into the text of the article you are working on. Without subst the text of the user message is retrieved from the template space each time the article is opened. {{msg:TEMPLATENAME}} does the same thing as {{TEMPLATENAME}}.

If you create a new user message, please keep the list below updated.

General-use templates

ABC

This Template:ABC replaces the table of contents with links to the headings of an alphabetized list such as a vocabulary. To insert it type {{subst:ABC}} at the top of the edit window and save the page, then create headings named

== A == 
== B == 
== C == 

etc.

A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z

There's also Template:widetoc which does similar.

Work in progress

To show that a page is under construction, under revision or otherwise incomplete you can type {{Workinprogress}} at the top of of the page and it will appear as the following boilerplate:


Equivalent code is {{WIP}} or {{Wip}} or {{wip}}.

User page template

This Template:Userpage is a ripoff of User:Chlewey's elegant user page. You can use it as a help to create your own user page. To include it in your own page type {{subst:Userpage}} into your edit window, then save your page, then open your edit window again and edit the table that now appears. Replace the text in UPPERCASE with information relevant to yourself.

Language templates

Language summary

This template was designed by Jörg as a base for your language descriptions. It contains a box in the upper right corner with basic language data (location, timeline/universe, number of speakers, genealogical classification) modelled after the similar boxes found in Wikipedia language articles. To include it in your page, type {{subst:Language}} into your edit window, then save your page, then open the edit window again and edit the table that now appears.

Language summary II

An alternative template was designed by Eugene for more comprehensive language summarising (what an oxymoron, truth be told), including lnguistic typology. It also uses a light grey background and smaller text than Jörg's template. To use this template, use the follwing code:

{{Infobox|name=|pronounce=|tu=|species=|in=|no=|script=|tree=|morph=|ms=|wo=|creator=|date=}}

Open the link above to find out what each parameter stands for.

Phonology

For a simple table to use to describe your language's phonology, try this template, by using {{subst:Phonology}} in your language's page, saving the page, and editing the table that appears afterwards.

Swadesh template

This template, adapted from the Wiktionary:Swadesh template can be used to demonstrate the vocabulary of a conlang. It can be seen here. To include it in your own page type {{subst:Swadesh}} into your edit window, then save your page, then open your edit window again and edit the table that now appears.

IPA transcription

I have made a template Template:IPA to select fonts for displaying special characters correctly in Internet Explorer. It will also display a tooltip saying "IPA transcription". See Template talk:IPA for usage instructions.

Conworld templates

Eugene has designed a template that allows easy referencing between empires on a territory, dynasties of an empire, rulers of a dynasty, reign names of a ruler etc. Designed to be placed at the bottom of the page, although the top will do just fine as well.