Template:NCmaterial: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
NateBumber (talk | contribs) (adding "main" override option) |
NateBumber (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
|<!--if main is unspecified-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}} | |<!--if main is unspecified-->{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}} | ||
|<!--if name of subpage = full name of page-->This page includes information about '''{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}''' | |<!--if name of subpage = full name of page-->This page includes information about '''{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}''' | ||
|<!--otherwise, we are on a subpage so do this:-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''}} | |<!--otherwise, we are on a subpage so do this:-->This subpage includes information about '''[[{{{link|{{ROOTPAGENAME}}}}}|{{{display|{{dau|{{{link|{{ROOTPAGENAME}}}}}}}}}}]]'''}}}} | ||
}} from sources that are [[Tardis:Valid sources|invalid]] or otherwise not covered on this wiki{{#if:{{{1|}}}|<nowiki />: {{{1|}}}}}.</p> | }} from sources that are [[Tardis:Valid sources|invalid]] or otherwise not covered on this wiki{{#if:{{{1|}}}|<nowiki />: {{{1|}}}}}.</p> | ||
</div><noinclude>{{documentation}}[[Category:Maintenance templates]]</noinclude> | </div><noinclude>{{documentation}}[[Category:Maintenance templates]]</noinclude> |
Revision as of 15:09, 17 November 2022
A journal of impossible things . . .
This page includes information about NCmaterial from sources that are invalid or otherwise not covered on this wiki.
Instructions for {{NCmaterial}}
{{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 invalid or otherwise not covered on this wiki: Death Comes to Time and Legacy.
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 invalid or otherwise not covered 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. }}