Template:NCmaterial/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Putting this here temporarily to aid with development (so that an example is included in the edit preview of the template))
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{NCmaterial|''[[Death Comes to Time (webcast)|Death Comes to Time]]''|link=Ace}}
'''{{tlx|NCmaterial}}''' is a template for indicating pages and subpages which cite sources that are [[NOTVALID]] on this wiki but are nonetheless licensed to use the topic of that page.
 
As an example of the default use of the template, consider this case for the subpage [[Ace/Non-valid sources]]:<pre><nowiki>{{NCmaterial|''[[Death Comes to Time (webcast)|]]'' and ''[[Legacy (video game)|]]''}}</nowiki></pre>
{{NCmaterial|''[[Death Comes to Time (webcast)|Death Comes to Time]]'' and ''[[Legacy (video game)|Legacy]]'' |link=Ace |sub=1}}
 
 
If the page name has a dab term and you'd like the template to omit it, use the <code>display</code> variable. For instance, for [[The Cold (Time and Relative)]],<pre><nowiki>{{NCmaterial|display=the Cold}}</nowiki></pre>
{{NCmaterial|display=the Cold |main=1}}
 
 
Other variables are available for testing purposes.
<pre style=border-radius:10px!important>
{{NCmaterial |Non-valid sources used on the page.
|display = to override the display name without changing the link.
|link    = to override both the link and display name.
|main    = 1 to override page type detection and present the "main page" version on a subpage.
|sub    = 1 to override page type detection and present the "subpage" version on a main page.
}}</pre>
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:21, 25 October 2023

{{NCmaterial}} is a template for indicating pages and subpages which cite sources that are NOTVALID on this wiki but are nonetheless licensed to use the topic of that page.

As an example of the default use of the template, consider this case for the subpage Ace/Non-valid sources:

{{NCmaterial|''[[Death Comes to Time (webcast)|]]'' and ''[[Legacy (video game)|]]''}}
A journal of impossible things . . .

This subpage includes information about Ace from sources that are not valid on this wiki: Death Comes to Time and Legacy.


If the page name has a dab term and you'd like the template to omit it, use the display variable. For instance, for The Cold (Time and Relative),

{{NCmaterial|display=the Cold}}
A journal of impossible things . . .

This page includes information about the Cold from sources that are not valid on this wiki.


Other variables are available for testing purposes.

{{NCmaterial |Non-valid sources used on the page.
|display = to override the display name without changing the link.
|link    = to override both the link and display name.
|main    = 1 to override page type detection and present the "main page" version on a subpage.
|sub     = 1 to override page type detection and present the "subpage" version on a main page.
}}