Help:Template text: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
m (Reverted edits by 216.66.149.209 (talk) to last revision by Vellex)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Each page in the site should use one of the following templates.
Almost all content in Discourse DB is based around [http://meta.wikimedia.org/wiki/Help:Template templates]. These are strings in which you enter basic information that then get expanded out into longer text. Each page in the site should use at least one of the following templates; all fields are optional.


Opinions:
==Templates for opinion items==
<includeonly>
{{Template:NewOpinionText}}
</includeonly>


"Item" template: defines, and gives identifying information about, an opinion item. For more information, see [[Help:Items]].
<pre>
{{item
|title=
|author=
|author2=
|source=
|date=
|url=
|quote=
}}
</pre>
"Opinion" template: defines an opinion. An item can have any number of opinions. For more information, see [[Help:Opinions]].
<pre>
{{opinion|TOPIC|POSITION|for, against, OR mixed}}
</pre>


Topics:
"Reference" template: defines the reference by one item of another. An item can have any number of references.
<pre>
{{reference|ITEM}}
</pre>
 
==Template for topics==
"Topic" template: defines an opinion. Start date and end date are optional. For more information, see [[Help:Topics]].
<pre>
<pre>
{{topic
{{topic
|name=
|start date=
|eventDate=
|end date=
|eventEndDate=
}}
}}
</pre>
</pre>


Authors:
==Template for positions==
"Position" template: defines a position. For more information, see [[Help:Positions]].
<pre>
{{position}}
</pre>
 
==Template for authors==
"Author" template: defines and gives identifying information about an author. The "political affliliation" field is not yet standardized, so you can use any term here. For more information, see [[Help:Authors]].
<pre>
<pre>
{{author|
{{author
name=
|first name=
politicalAffiliation=
|last name=
|political affiliation=
}}
}}
</pre>
</pre>


Sources:
==Template for sources==
"Source" template: defines and gives identifying information about a source. The value of the "type" field should be either "Newspaper", "Magazine", "Online magazine" or "Blog". Usually only one of "circulation" and "monthly unique visitors" should be entered, depending whether the source is print or online.
<pre>
<pre>
{{source|
{{source
name=
|type=
politicalAffiliation=
|country=
url=
|language=
|circulation=
|monthly unique visitors=
|url=
}}
}}
</pre>
==Miscellaneous templates==
"Wikipedia" template: displays a link to the specified Wikipedia article.
<pre>
{{wikipedia|NAME}}
{{{Source}}}
</pre>
</pre>

Latest revision as of 00:14, July 29, 2012

Almost all content in Discourse DB is based around templates. These are strings in which you enter basic information that then get expanded out into longer text. Each page in the site should use at least one of the following templates; all fields are optional.

Templates for opinion items

"Item" template: defines, and gives identifying information about, an opinion item. For more information, see Help:Items.

{{item
|title=
|author=
|author2=
|source=
|date=
|url=
|quote=
}}

"Opinion" template: defines an opinion. An item can have any number of opinions. For more information, see Help:Opinions.

{{opinion|TOPIC|POSITION|for, against, OR mixed}}

"Reference" template: defines the reference by one item of another. An item can have any number of references.

{{reference|ITEM}}

Template for topics

"Topic" template: defines an opinion. Start date and end date are optional. For more information, see Help:Topics.

{{topic
|start date=
|end date=
}}

Template for positions

"Position" template: defines a position. For more information, see Help:Positions.

{{position}}

Template for authors

"Author" template: defines and gives identifying information about an author. The "political affliliation" field is not yet standardized, so you can use any term here. For more information, see Help:Authors.

{{author
|first name=
|last name=
|political affiliation=
}}

Template for sources

"Source" template: defines and gives identifying information about a source. The value of the "type" field should be either "Newspaper", "Magazine", "Online magazine" or "Blog". Usually only one of "circulation" and "monthly unique visitors" should be entered, depending whether the source is print or online.

{{source
|type=
|country=
|language=
|circulation=
|monthly unique visitors=
|url=
}}

Miscellaneous templates

"Wikipedia" template: displays a link to the specified Wikipedia article.

{{wikipedia|NAME}}
{{{Source}}}