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)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Each page in the site should use one of the following templates; all fields are optional.
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.


'''Items - 'item', 'opinion' and 'refers to' templates:'''
==Templates for opinion items==
 
"Item" template: defines, and gives identifying information about, an opinion item. For more information, see [[Help:Items]].
<pre>
<pre>
{{item
{{item
Line 13: Line 15:
}}
}}
</pre>
</pre>
"Opinion" template: defines an opinion. An item can have any number of opinions. For more information, see [[Help:Opinions]].
<pre>
<pre>
{{opinion|TOPIC|POSITION|'for', 'against', or 'mixed'}}
{{opinion|TOPIC|POSITION|for, against, OR mixed}}
</pre>
</pre>
"Reference" template: defines the reference by one item of another. An item can have any number of references.
<pre>
<pre>
{{refers to|ITEM}}
{{reference|ITEM}}
</pre>
</pre>


'''Topics - 'topic' template:'''
==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=
|start date=
|end date=
|end date=
Line 29: Line 35:
</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=
|first name=
|last name=
|last name=
|political affiliation
|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=
|country=
|country=
|language=
|language=
Line 49: Line 62:
|url=
|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}}}