10,594
edits
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see Bharatpedia:Bharatdata) --> {{Template shortcut|Xref-print|Crossref-print}} This (probably best used by its shortcuts {{tlx|xref-print}} and {{tlx|crossref-print}}) is a convenience and "code mess reduction" template wrapper for {{tlx|crossreference|<nowiki>{{{1}}}</nowiki>|printworthy{{=}}yes}}. == Usage == This accepts the following...") |
No edit summary |
||
Line 11: | Line 11: | ||
=== Intended uses === | === Intended uses === | ||
* This is primarily intended for use in disambiguation pages, set index articles, portals, and other "user-facing content but not really an article" places where an inter-page explicit | * This is primarily intended for use in disambiguation pages, set index articles, portals, and other "user-facing content but not really an article" places where an inter-page explicit Bharatpedia self-reference should be printable because the page in question would not be useful if printed with these links suppressed as self-refs. | ||
* It should be used for cross-references in regular articles that are to another section {{em|at the same page}}; we have no reason to suppress those. | * It should be used for cross-references in regular articles that are to another section {{em|at the same page}}; we have no reason to suppress those. | ||
* It can also be used in lists when the cross-reference is to a separate article but this topic also has an entry in the list at the same name as that external article (i.e., the cross-reference will still be useful if the material is being read offline). | * It can also be used in lists when the cross-reference is to a separate article but this topic also has an entry in the list at the same name as that external article (i.e., the cross-reference will still be useful if the material is being read offline). | ||
Line 20: | Line 20: | ||
* {{tlc|crossref-print|This list does not include doodas or deedas, which are covered at <nowiki>[[Doodalidae]] and [[List of doodalids]]</nowiki>.}} | * {{tlc|crossref-print|This list does not include doodas or deedas, which are covered at <nowiki>[[Doodalidae]] and [[List of doodalids]]</nowiki>.}} | ||
* <code><nowiki>* '''Baz Quuxians''': {{crossref-print|See [[#Quux Bazians|Quux Bazians]]}}</nowiki></code> – in any page, since this is a cross-reference to the same page. | * <code><nowiki>* '''Baz Quuxians''': {{crossref-print|See [[#Quux Bazians|Quux Bazians]]}}</nowiki></code> – in any page, since this is a cross-reference to the same page. | ||
* <code><nowiki>* '''Baz Quuxians''': {{crossref-print|See [[Quux Bazians]]}}</nowiki></code> – in a list that also has a [[ | * <code><nowiki>* '''Baz Quuxians''': {{crossref-print|See [[Quux Bazians]]}}</nowiki></code> – in a list that also has a [[BP:SUMMARY|summary-style]] entry by this name: <code><nowiki>* '''Quux Bazians''': ...</nowiki></code> | ||
=== Do not use for ... === | === Do not use for ... === | ||
*General wikilinks (as in <code>She has been the CEO of <nowiki>[[XYZ124 Ltd]]</nowiki> since 2005</code>); those are always printable. | *General wikilinks (as in <code>She has been the CEO of <nowiki>[[XYZ124 Ltd]]</nowiki> since 2005</code>); those are always printable. | ||
*Self-references in regular articles that point to other pages. Use {{tlx|Crossreference}} (AKA {{tlx|xref}}, {{tlx|crossref}}) for that – it's what that template was created for. Example: <code><nowiki>...after the end of the war. {{crossref|(See [[Aftermath of the Foo–Bar War of 1817]].)}}</nowiki></code>. Inter-article cross-references {{em|should}} be suppressed, because our article content is intended to stand alone as plain text if printed; any kind of "dependency" on some other page which cannot be accessed except when you're right here at | *Self-references in regular articles that point to other pages. Use {{tlx|Crossreference}} (AKA {{tlx|xref}}, {{tlx|crossref}}) for that – it's what that template was created for. Example: <code><nowiki>...after the end of the war. {{crossref|(See [[Aftermath of the Foo–Bar War of 1817]].)}}</nowiki></code>. Inter-article cross-references {{em|should}} be suppressed, because our article content is intended to stand alone as plain text if printed; any kind of "dependency" on some other page which cannot be accessed except when you're right here at Bharatpedia is hidden from printed versions (and anything else that makes use of the printworthiness classes to "clean" the content for [[Bharatpedia:Reusing Bharatpedia content|reuse]]). | ||
== Redirects == | == Redirects == |