Help:Templates
From tgaWiki
- This is a basic FAQ about templates. If you need more in depth help, visit Wikimedia's Template Guide.
A template is a piece of text (including tables, pictures, and code) that can be included into other pages without having to type it in each time. This allows that text to be edited in one place and then updated on many pages at once. It looks like a normal page, but the title starts with "Template:"
Contents |
Creating a template
To create a template, write Template:Chosenname (replace "Chosenname" with whatever name you've chosen for the template) in the search box and click the "Search" button. In the result screen click the red "Create this page" link which takes you to the edit screen. You can now start writing the code for your template. Once you have added the necessary code to the page, click the "Save page" button to save the template.
Remember to always include "Template:" before the actual template name (e.g. Template:Chosenname) or it won't work as a template.
Using a template
To use a template, you just need to type its title inside curly brackets. For example, {{chosenname}} will add the text from the page Template:Chosenname.
Various templates
Character Infobox
Template:Character is used for adding infoboxes to character pages.
You can copy the infobox code from the Test page or below. Once you enter the page, click the "edit" button, copy the relevant code from the edit screen and paste the code to your character page.
| What it looks like | What you type | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
To add a character infobox to an article, type in:
|
To add a character infobox to an article, type in:
{{character
| charname=character's name
| imagename=Placeholder.gif
| status=alive or dead
| age=here
| race=human/elf/dwarf
| gender=here
| class=here
| nation=[[here]]
| faction=[[here]]
}}
|
Conflict Infobox
Template:Conflict is used for adding infoboxes to pages about conflicts.
Note on the symbols:
- # means POW (prisoner of war)
- † means KIA (killed in action)
- #† means that the commander first became POW and then died in captivity.
| What it looks like | What you type | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
To add a conflict infobox to an article, type in:
|
To add a conflict infobox to an article, type in:
{{conflict
|conflictname={{PAGENAME}}
|date=[[Timeline|here]]
|place=[[city]], [[nation]]
|result=a faction's victory, defeat or draw
|combatant1=[[attacking faction]]
|combatant2=[[defending faction]]
|commander1=[[here]]
|commander2=[[here]]
}}
| ||||||||||||||||||||||||
Incomplete
Template:Stub is used for marking articles as incomplete.
| What it looks like | What you type |
|---|---|
|
To mark an article as "Incomplete", type this to the end of an article:
|
To mark an article as "Incomplete", type this to the end of an article:
{{stub}}
|
Quoting
Template:Q is used for quoting characters from tGA RP.
| What it looks like | What you type |
|---|---|
|
To add something in a quote block, type in:
|
To add something in a quote block, type in:
{{Q|Quote|Who said it}}
To quote '''two''' people, type in:
{{Q|Quote A"
:''"Quote B|Person A and Person B}}
To use a quote which is '''longer than two lines''', type in:
{{Q|Quote A1"
:''"Quote B"
:''"Quote A2|Person A and Person B}}
|

