Template:Ref: Difference between revisions

From Halopedia, the Halo wiki

m (Protected "Template:Ref": High-traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Replaced content with "<includeonly>{{#if:{{{Id|{{{Name|}}}}}} |<!-- IF REFERENCE IS NAMED: -->{{#tag:ref|{{{1|{{{Text}}}}}}|group={{{Group|}}}|name={{{Id|{{{Name|}}}}}}}} |<!-- IF REFERENCE I...")
Tag: Replaced
Line 2: Line 2:
|<!-- IF REFERENCE IS NAMED:  -->{{#tag:ref|{{{1|{{{Text}}}}}}|group={{{Group|}}}|name={{{Id|{{{Name|}}}}}}}}
|<!-- IF REFERENCE IS NAMED:  -->{{#tag:ref|{{{1|{{{Text}}}}}}|group={{{Group|}}}|name={{{Id|{{{Name|}}}}}}}}
|<!-- IF REFERENCE IS UNNAMED: -->{{#tag:ref|{{{1|{{{Text}}}}}}|group={{{Group|}}}}}
|<!-- IF REFERENCE IS UNNAMED: -->{{#tag:ref|{{{1|{{{Text}}}}}}|group={{{Group|}}}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Documentation}} [[Category:Reference templates]]</noinclude>
==Referencing Templates==
{| width=100%
|style="vertical-align:top;" width=50%|
===Video Games===
*[[Template:Ref/Game|Generic game citation]] (<code><nowiki>{{Ref/Game}}</nowiki></code>)
*[[Template:Ref/Level|Campaign level]] (<code><nowiki>{{Ref/Level}}</nowiki></code>)
*[[Template:Ref/Map|Multiplayer map]] (<code><nowiki>{{Ref/Map}}</nowiki></code>)
*[[Template:Ref/FFMap|Firefight map]] (<code><nowiki>{{Ref/FFMap}}</nowiki></code>)
*[[Template:Ref/SpOps|Spartan Ops level]] (<code><nowiki>{{Ref/SpOps}}</nowiki></code>)
*[[Template:Ref/Mode|Gametype/gamemode]] (<code><nowiki>{{Ref/Mode}}</nowiki></code>)
 
===Books and Print===
*[[Template:Ref/Novel|Novels, novellas and short stories]] (<code><nowiki>{{Ref/Novel}}</nowiki></code>)
*[[Template:Ref/Comic|Comics and graphic novels]] (<code><nowiki>{{Ref/Comic}}</nowiki></code>)
*[[Template:Ref/Book|Reference books, and miscellaneous print]] (<code><nowiki>{{Ref/Book}}</nowiki></code>)
 
===Other Media===
*[[Template:Ref/Film|Film and TV]] (<code><nowiki>{{Ref/Film}}</nowiki></code>)
*[[Template:Ref/Tabletop|Board and tabletop games]] (<code><nowiki>{{Ref/Tabletop}}</nowiki></code>)
|style="vertical-align:top;" width=50%|
===External Material===
*[[Template:Ref/YouTube|YouTube videos]] (<code><nowiki>{{Ref/YouTube}}</nowiki></code>)
*[[Template:Ref/Twitter|Twitter posts]] (<code><nowiki>{{Ref/Twitter}}</nowiki></code>)
*[[Template:Ref/Site|Websites or articles]] (<code><nowiki>{{Ref/Site}}</nowiki></code>)
 
===Other===
*[[Template:Ref/Note|Notes]] (<code><nowiki>{{Ref/Note}}</nowiki></code>)
*[[Template:Ref/Reuse|Reusing sources]] (<code><nowiki>{{Ref/Reuse}}</nowiki></code>)
*[[Template:Ref/NoteReuse|Reusing notes]] (<code><nowiki>{{Ref/NoteReuse}}</nowiki></code>)
 
===Listing Sources===
*[[Template:Ref/Sources|Citation list]] (<code><nowiki>{{Ref/Sources}}</nowiki></code>)
*[[Template:Ref/Notes|Notes list]] (<code><nowiki>{{Ref/Notes}}</nowiki></code>)
*[[Template:Ref/List|Other reference group list]] (<code><nowiki>{{Ref/List}}</nowiki></code>)
|}
 
===Internal===
<small>These templates are ones that are used internally by the reference templates, to share common functionality. It is not recommended that you use them on any pages besides other reference templates.</small>
*[[Template:Ref/Format|Format reference arguments]] (<code><nowiki>{{Ref/Format}}</nowiki></code>)
 
==Usage==
This template is alternative method for citing references, replacing the traditional <code><nowiki><ref name="..." group="...">...</ref></nowiki></code> syntax. In normal circumstances, this template should not be used on pages - instead, the templates listed above should be favoured, for the sake of simplicity and standardisation.
 
{|width=100%
!width=50%|Simplified Version
!width=50%|Full Version
|-
|
<pre>
{{Ref
|
}}
</pre>
|
<pre>
{{Ref
|Name=
|Group=
|
}}
</pre>
|}
 
===Example===
Here is an example of how to use this template:
 
{|width=100%
!width=50%|Wiki Markup
!width=50%|Result
|-
|
<pre><nowiki>
Sergeant [[Avery Johnson]] was a member of the [[ORION Project]].{{Ref|Name=GNPg122|Halo Graphic Novel, Page 122}}{{Ref|Group=Note|The ORION Project is also known as the SPARTAN-I program, a name retroactively given to it after the formation of the [[SPARTAN-II program]].}}
 
==Notes==
{{Ref/Notes}}
 
==Sources==
{{Ref/Sources}}
</nowiki></pre>
|
Sergeant [[Avery Johnson]] was a member of the [[ORION Project]].{{Ref|Name=GNPg122|Halo Graphic Novel, Page 122}}{{Ref|Group=Note|The ORION Project is also known as the SPARTAN-I program, a name retroactively given to it after the formation of the [[SPARTAN-II program]].}}
 
<h2>Notes</h2>
{{Ref/Notes}}
 
<h2>Sources</h2>
{{Ref/Sources}}
|}
 
===Fields===
{| width=100% class="wikitable"
!width=12%|''Field Name''
!width=12%|''Field Aliases''
!width=12%|''Optional or Required?''
!width=auto|''Description''
!width=24%|''Example''
|-
|'''1''' {{C|Unnamed field}}
|'''Text'''
|'''Required'''
|The content of the citation.
|<code><nowiki>''[[Halo: The Flood]]'', Chapter 12</nowiki></code>
|-
|'''Id'''
|'''Name'''
|''Optional''
|A name used to refer to the citation later on, if it needs to be reused.
|<code>FloodChptr12</code>
|-
|'''Group'''
| -
|''Optional''
|The group that the citation should be placed in. If it is just a normal reference, then no group should be specified.
|<code>Note</code>
|}
[[Category:Reference templates]]</noinclude>

Revision as of 08:10, June 3, 2020