Template:Cite source: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Bongolium500/story cite|displayCitation}}</includeonly><noinclude>
<includeonly>{{#invoke:Bongolium500/story cite|displayCitation}}</includeonly><noinclude>
= New documentation =
= New documentation =
'''{{tlx|{{PAGENAME}}}}''' is a powerful template for generating in-universe, inline [[T:CITE|citations]]. In its most basic usage, it produces a collapsible bit of information about the source being cited, pulled directly from the infobox, intended to supplement the [[T:PREFIX|prefix]]. However, the template also has options for citing [[#Parts and episodes|specific parts and episodes]], [[#Precise citation|exact page numbers and timestamps]] and [[#Variants|variants of sources that don't have their own page]].  
'''{{tlx|{{PAGENAME}}}}''' is a powerful template for generating in-universe, inline [[T:CITE|citations]]. In its most basic usage, it produces a collapsible bit of information about the source being cited, pulled directly from the infobox, intended to supplement the [[T:PREFIX|prefix]]. However, the template also has options for citing [[#Citing parts and episodes|specific parts and episodes]], [[#Citing variants|variants of sources that don't have their own page]] and [[#Precise citations|exact page numbers and timestamps]].  


Basic usage is very simple. When citing a source, instead of linking to the source like usual, wrap in this template, like this: {{tlx|{{PAGENAME}}|source's page name}}. For example, if citing ''[[The Daleks (TV story)|The Daleks]]'', you would type:<pre>([[TV]]: {{User:Bongolium500/cite source|The Daleks (TV story)}})</pre>This produces the following:
Basic usage is very simple. When citing a source, instead of linking to the source like usual, wrap in this template, like this: <tt><nowiki>{{</nowiki>{{PAGENAME}}|source's page name}}</tt>. For example, if citing ''[[The Daleks (TV story)|The Daleks]]'', you would type:<pre>([[TV]]: {{User:Bongolium500/cite source|The Daleks (TV story)}})</pre>This produces the following:
:([[TV]]: {{User:Bongolium500/cite source|The Daleks (TV story)}})
:([[TV]]: {{User:Bongolium500/cite source|The Daleks (TV story)}})


The template will automatically strip the [[T:DAB TERM|dab term]] in the display text. To specifiy custom display text, you would type the following: {{tlx|{{PAGENAME}}|source's page name|display name}}. For example, if citing ''[[Project Lazarus (audio story)|Project: Lazarus]]'', which, for technical reasons, has the pagename <tt>Project Lazarus (audio story)</tt>, you would type:<pre>([[AUDIO]]: {{User:Bongolium500/cite source|Project Lazarus (audio story)|Project: Lazarus}})</pre>This produces the following:
The template will automatically strip the [[T:DAB TERM|dab term]] in the display text. To specifiy custom display text, you would type the following: <tt><nowiki>{{</nowiki>{{PAGENAME}}|source's page name|display name}}</tt>. For example, if citing ''[[Project Lazarus (audio story)|Project: Lazarus]]'', which, for technical reasons, has the pagename <tt>Project Lazarus (audio story)</tt>, you would type:<pre>([[AUDIO]]: {{User:Bongolium500/cite source|Project Lazarus (audio story)|Project: Lazarus}})</pre>This produces the following:
:([[AUDIO]]: {{User:Bongolium500/cite source|Project Lazarus (audio story)|Project: Lazarus}})
:([[AUDIO]]: {{User:Bongolium500/cite source|Project Lazarus (audio story)|Project: Lazarus}})


Clicking the <sup>[+]</sup> to the right of the source's name will reveal additional information about the source, intended to provide context to the reader regarding the origin of the source, allowing them to easily decide if it is something they're interested in. This information is automatically pulled from the infobox and generally requires no editor intervention (although you can [[#Customising the additional information|customise the additional information if desired]]). For this to work, the page for the source being cited '''must''' be using {{tlx|Bongolium500/Infobox Story SMW}}. If it is not, an [[#Errors and troubleshooting|error]] will be produced. Information about finetuning the text displayed here can be found in the Infobox's documentation.
Clicking the <sup>[+]</sup> to the right of the source's name will reveal additional information about the source, intended to provide context to the reader regarding the origin of the source, allowing them to easily decide if it is something they're interested in. This information is automatically pulled from the infobox and generally requires no editor intervention (although you can [[#Customising the additional information|customise the additional information if desired]]). For this to work, the page for the source being cited '''must''' be using {{tlx|Bongolium500/Infobox Story SMW}}. If it is not, an [[#Errors and troubleshooting|error]] will be produced. Information about finetuning the text displayed here can be found in the Infobox's documentation.
== Citing parts and episodes ==
''to be added''
== Citing variants ==
''to be added''
== Precise citations ==
''to be added''
== Customising the additional information ==
''to be added''
== Errors and troubleshooting ==
''to be added''
== Full parameters list ==
''to be added''
== Technical documentation ==
''to be added


= Old documentation =
= Old documentation =
Cookies help us deliver our services. By using our services, you agree to our use of cookies.