FrathWiki:Templates: Difference between revisions

From FrathWiki
Jump to navigationJump to search
m (Replacing page with '== What is a template? == The MediaWiki software used by FrathWiki has support for templates. This means standardized text chunks (such as [[Wikipedia:...')
 
(8 intermediate revisions by 5 users not shown)
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:
The [[Wikipedia:MediaWiki|MediaWiki]] software used by FrathWiki has support for templates. Templates are standardized text chunks (such as [[Wikipedia:Template messages|boilerplate]] text) which can be inserted into articles. They are useful for marking things and for organizing things.
 
For example, typing <nowiki>{{stub}}</nowiki> in an article will result in '''this''' appearing:


{{stub}}
{{stub}}


=== View all templates on this wiki ===
=== List of all templates on this wiki ===
 
Some templates are documented through <code><nowiki><noinclude>...</noinclude></nowiki></code> tags, some in their talk pages, but most not at all.
If you know what an undocumented template does, please add documentation in your spare time! {{-)}}
 
'''[[Special:Allpages/Template:|List of all templates]]'''
 
===Instructions===
To create a new template, you must first create an article under the name '''Template:TEMPLATENAME'''.
 
These templates can be used in two ways: <nowiki>{{subst:TEMPLATENAME}} and {{TEMPLATENAME}}</nowiki>. <tt>subst</tt> copies the user message into the text of the article you are working on. Without <tt>subst</tt> the text of the user message is retrieved from the template space each time the article is opened. <nowiki>{{msg:TEMPLATENAME}} does the same thing as {{TEMPLATENAME}}</nowiki>.
 
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 <nowiki>{{subst:ABC}} </nowiki> at the top of the edit window and save the page, then create headings named
<pre>
== A ==
== B ==
== C ==
</pre>
etc.
 
<center>
[[#A|A]] - [[#B|B]] - [[#C|C]] - [[#D|D]] - [[#E|E]] - [[#F|F]] - [[#G|G]] - [[#H|H]] - [[#I|I]] - [[#J|J]] - [[#K|K]] - [[#L|L]] - [[#M|M]] - [[#N|N]] - [[#O|O]] - [[#P|P]] - [[#Q|Q]] - [[#R|R]] - [[#S|S]] - [[#T|T]] - [[#U|U]] - [[#V|V]] - [[#W|W]] - [[#X|X]] - [[#Y|Y]] - [[#Z|Z]]
</center>
 
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 <nowiki>{{Workinprogress}}</nowiki> at the top of of the page and it will appear as the following boilerplate:
 
{{Workinprogress}}
 
Equivalent code is <nowiki>{{WIP}} or {{Wip}} or {{wip}}</nowiki>.
 
===See also===
 
This [[Template:Seealso|template]], using this code:
 
:::''<nowiki>{{Seealso|this}}</nowiki>''
 
will insert the following text:
 
{{Seealso|this}}
 
=== 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 <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.
 
===Disambiguation===
 
If ever you find the need for a disambiguation page, [[User:Denihilonihil|Eugene]] has copied the Wikipedia <nowiki>{{disambig}}</nowiki> template over to Frath, including the image.
 
== 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
<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.
 
I suggest for a posteriori conlangs to use the colour of the family used in Wikipedia.  For your own families, choose a colour that suits you.
 
===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 linguistic typology. It also uses a light grey background and smaller text than Jörg's template. To use this template, use the following code:
 
<div style="text-align: center;">''<nowiki>{{Infobox|name=|pronounce=|tu=|species=|in=|no=|script=|tree=|morph=|ms=|wo=|creator=|date=}}</nowiki>''</div>
 
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:Consonants|this template]] for consonants and [[Template:Vowels|this one]] for vowels, by using ''<nowiki>{{subst:Consonants}}</nowiki>'' or ''<nowiki>{{subst:Vowels}}</nowiki>'' in your language's page, saving the page, and editing the table that appears afterwards. The above templates are designed with spaces for the most common sounds of natural languages and the symbols thereof pre-included. As the templates are meant to be inserted by means of a ''subst:'' command line, users are free to add necessary spaces or delete extraneous ones according to their needs.
 
=== 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]].
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 ===
 
The [[Template:IPA|IPA Template]] can be used 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.
 
===Transliteration===
 
Meant for the more elaborate language designers, [[Template:Translit|this template]] alerts readers to the existence of more than one transliteration system in the article, which may be due to, depending on the article and its subject, conworld political reasons, conlang etymological reasons etc. Made by [[User:Denihilonihil|Eugene]].
 
==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.
 
== Dr. Zahar’s Ethnographical Questionnaire ==
 
'''[[Dr. Zahar’s Ethnographical Questionnaire]]''' was compiled by David Zahir to help in the description of [[conculture]]s, and was placed by him in the files section of the [http://groups.yahoo.com/group/conculture/ Conculture group at Yahoo], and adapted for the wiki by [[User:Melroch|BPJ]].


[http://wiki.frath.net/index.php?title=Special:Allpages
[[Category: Help pages]]

Latest revision as of 12:39, 21 March 2024

What is a template?

The MediaWiki software used by FrathWiki has support for templates. Templates are standardized text chunks (such as boilerplate text) which can be inserted into articles. They are useful for marking things and for organizing things.

For example, typing {{stub}} in an article will result in this appearing:

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

List of all templates on this wiki

Some templates are documented through <noinclude>...</noinclude> tags, some in their talk pages, but most not at all. If you know what an undocumented template does, please add documentation in your spare time!

List of all templates

Instructions

To create a new template, you must first create an article under the name Template:TEMPLATENAME.

These templates 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}}.

See also

This template, using this code:

{{Seealso|this}}

will insert the following text:

See also this for more information


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.

Disambiguation

If ever you find the need for a disambiguation page, Eugene has copied the Wikipedia {{disambig}} template over to Frath, including the image.

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.

I suggest for a posteriori conlangs to use the colour of the family used in Wikipedia. For your own families, choose a colour that suits you.

Language summary II

An alternative template was designed by Eugene for more comprehensive language summarising (what an oxymoron, truth be told), including linguistic typology. It also uses a light grey background and smaller text than Jörg's template. To use this template, use the following 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 for consonants and this one for vowels, by using {{subst:Consonants}} or {{subst:Vowels}} in your language's page, saving the page, and editing the table that appears afterwards. The above templates are designed with spaces for the most common sounds of natural languages and the symbols thereof pre-included. As the templates are meant to be inserted by means of a subst: command line, users are free to add necessary spaces or delete extraneous ones according to their needs.

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

The IPA Template can be used 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.

Transliteration

Meant for the more elaborate language designers, this template alerts readers to the existence of more than one transliteration system in the article, which may be due to, depending on the article and its subject, conworld political reasons, conlang etymological reasons etc. Made by Eugene.

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.

Dr. Zahar’s Ethnographical Questionnaire

Dr. Zahar’s Ethnographical Questionnaire was compiled by David Zahir to help in the description of concultures, and was placed by him in the files section of the Conculture group at Yahoo, and adapted for the wiki by BPJ.